File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,10 +84,8 @@ KeyCap.displayName = "KeyCap";
8484
8585const AIWelcomeMessage = memo ( ( ) => {
8686 const modKey = isMacOS ( ) ? "⌘" : "Alt" ;
87- const fullConfig = jotai . useAtomValue ( atoms . fullConfigAtom ) ;
88- const hasCustomModes = fullConfig ?. waveai
89- ? Object . keys ( fullConfig . waveai ) . some ( ( key ) => ! key . startsWith ( "waveai@" ) )
90- : false ;
87+ const aiModeConfigs = jotai . useAtomValue ( atoms . waveaiModeConfigAtom ) ;
88+ const hasCustomModes = Object . keys ( aiModeConfigs ) . some ( ( key ) => ! key . startsWith ( "waveai@" ) ) ;
9189 return (
9290 < div className = "text-secondary py-8" >
9391 < div className = "text-center" >
Original file line number Diff line number Diff line change @@ -85,10 +85,7 @@ export class WaveAIModel {
8585 const modelMetaAtom = getOrefMetaKeyAtom ( this . orefContext , "waveai:model" ) ;
8686 return get ( modelMetaAtom ) ?? "gpt-5.1" ;
8787 } ) ;
88- this . aiModeConfigs = jotai . atom ( ( get ) => {
89- const fullConfig = get ( atoms . fullConfigAtom ) ;
90- return fullConfig ?. waveai ?? { } ;
91- } ) ;
88+ this . aiModeConfigs = atoms . waveaiModeConfigAtom ;
9289
9390
9491 this . widgetAccessAtom = jotai . atom ( ( get ) => {
You can’t perform that action at this time.
0 commit comments