@@ -1007,6 +1007,17 @@ export default function ChatView({ threadId, mode = "default" }: ChatViewProps)
10071007 } ;
10081008 return Object . keys ( codexOptions ) . length > 0 ? { codex : codexOptions } : undefined ;
10091009 } , [ selectedCodexFastModeEnabled , selectedEffort , selectedProvider , supportsReasoningEffort ] ) ;
1010+ const providerOptionsForDispatch = useMemo ( ( ) => {
1011+ if ( ! settings . codexBinaryPath && ! settings . codexHomePath ) {
1012+ return undefined ;
1013+ }
1014+ return {
1015+ codex : {
1016+ ...( settings . codexBinaryPath ? { binaryPath : settings . codexBinaryPath } : { } ) ,
1017+ ...( settings . codexHomePath ? { homePath : settings . codexHomePath } : { } ) ,
1018+ } ,
1019+ } ;
1020+ } , [ settings . codexBinaryPath , settings . codexHomePath ] ) ;
10101021 const selectedModelForPicker = selectedModel ;
10111022 const modelOptionsByProvider = useMemo (
10121023 ( ) => getCustomModelOptionsByProvider ( settings ) ,
@@ -3038,6 +3049,9 @@ export default function ChatView({ threadId, mode = "default" }: ChatViewProps)
30383049 ...( selectedModelOptionsForDispatch
30393050 ? { modelOptions : selectedModelOptionsForDispatch }
30403051 : { } ) ,
3052+ ...( providerOptionsForDispatch
3053+ ? { providerOptions : providerOptionsForDispatch }
3054+ : { } ) ,
30413055 provider : selectedProvider ,
30423056 assistantDeliveryMode : settings . enableAssistantStreaming ? "streaming" : "buffered" ,
30433057 runtimeMode,
@@ -3315,6 +3329,9 @@ export default function ChatView({ threadId, mode = "default" }: ChatViewProps)
33153329 ...( selectedModelOptionsForDispatch
33163330 ? { modelOptions : selectedModelOptionsForDispatch }
33173331 : { } ) ,
3332+ ...( providerOptionsForDispatch
3333+ ? { providerOptions : providerOptionsForDispatch }
3334+ : { } ) ,
33183335 assistantDeliveryMode : settings . enableAssistantStreaming ? "streaming" : "buffered" ,
33193336 runtimeMode,
33203337 interactionMode : nextInteractionMode ,
@@ -3345,6 +3362,7 @@ export default function ChatView({ threadId, mode = "default" }: ChatViewProps)
33453362 runtimeMode ,
33463363 selectedModel ,
33473364 selectedModelOptionsForDispatch ,
3365+ providerOptionsForDispatch ,
33483366 selectedProvider ,
33493367 setComposerDraftInteractionMode ,
33503368 setThreadError ,
@@ -3399,8 +3417,8 @@ export default function ChatView({ threadId, mode = "default" }: ChatViewProps)
33993417 worktreePath : activeThread . worktreePath ,
34003418 createdAt,
34013419 } )
3402- . then ( ( ) =>
3403- api . orchestration . dispatchCommand ( {
3420+ . then ( ( ) => {
3421+ return api . orchestration . dispatchCommand ( {
34043422 type : "thread.turn.start" ,
34053423 commandId : newCommandId ( ) ,
34063424 threadId : nextThreadId ,
@@ -3415,12 +3433,15 @@ export default function ChatView({ threadId, mode = "default" }: ChatViewProps)
34153433 ...( selectedModelOptionsForDispatch
34163434 ? { modelOptions : selectedModelOptionsForDispatch }
34173435 : { } ) ,
3436+ ...( providerOptionsForDispatch
3437+ ? { providerOptions : providerOptionsForDispatch }
3438+ : { } ) ,
34183439 assistantDeliveryMode : settings . enableAssistantStreaming ? "streaming" : "buffered" ,
34193440 runtimeMode,
34203441 interactionMode : "default" ,
34213442 createdAt,
3422- } ) ,
3423- )
3443+ } ) ;
3444+ } )
34243445 . then ( ( ) => api . orchestration . getSnapshot ( ) )
34253446 . then ( ( snapshot ) => {
34263447 syncServerReadModel ( snapshot ) ;
@@ -3464,6 +3485,7 @@ export default function ChatView({ threadId, mode = "default" }: ChatViewProps)
34643485 runtimeMode ,
34653486 selectedModel ,
34663487 selectedModelOptionsForDispatch ,
3488+ providerOptionsForDispatch ,
34673489 selectedProvider ,
34683490 settings . enableAssistantStreaming ,
34693491 syncServerReadModel ,
@@ -5743,8 +5765,7 @@ const MessagesTimeline = memo(function MessagesTimeline({
57435765 ) }
57445766
57455767 { row . kind === "working" && (
5746- < div className = "flex items-center gap-2 py-0.5 pl-1.5" >
5747- < span className = "h-1.5 w-1.5 shrink-0 rounded-full bg-muted-foreground/30" />
5768+ < div className = "py-0.5 pl-1.5" >
57485769 < div className = "flex items-center gap-2 pt-1 text-[11px] text-muted-foreground/70" >
57495770 < span className = "inline-flex items-center gap-[3px]" >
57505771 < span className = "h-1 w-1 rounded-full bg-muted-foreground/30 animate-pulse" />
0 commit comments