File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
apps/array/src/renderer/features
message-editor/components Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ export function EditorToolbar({
3232
3333 // Check if current model is Anthropic
3434 const isAnthropicModel = AVAILABLE_MODELS . some (
35- ( m ) => m . id === activeModel && m . provider === "anthropic"
35+ ( m ) => m . id === activeModel && m . provider === "anthropic" ,
3636 ) ;
3737
3838 // Thinking state for this task
3939 const thinkingEnabled = useThinkingStore ( ( state ) =>
40- taskId ? state . getThinking ( taskId ) : false
40+ taskId ? state . getThinking ( taskId ) : false ,
4141 ) ;
4242 const toggleThinking = useThinkingStore ( ( state ) => state . toggleThinking ) ;
4343
Original file line number Diff line number Diff line change @@ -49,20 +49,23 @@ export const useThinkingStore = create<ThinkingState & ThinkingActions>()(
4949 const defaultEnabled =
5050 useSettingsStore . getState ( ) . defaultThinkingEnabled ;
5151 set ( ( state ) => ( {
52- thinkingByTask : { ...state . thinkingByTask , [ taskId ] : defaultEnabled } ,
52+ thinkingByTask : {
53+ ...state . thinkingByTask ,
54+ [ taskId ] : defaultEnabled ,
55+ } ,
5356 } ) ) ;
5457 }
5558 } ,
5659 } ) ,
5760 {
5861 name : "thinking-storage" ,
59- }
60- )
62+ } ,
63+ ) ,
6164) ;
6265
6366// Hook to get thinking state for a specific task
6467export function useThinkingForTask ( taskId : string | undefined ) {
6568 return useThinkingStore ( ( state ) =>
66- taskId ? state . getThinking ( taskId ) : false
69+ taskId ? state . getThinking ( taskId ) : false ,
6770 ) ;
6871}
You can’t perform that action at this time.
0 commit comments