diff --git a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx index b6fedb722e..1a00f8def6 100644 --- a/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx +++ b/autogpt_platform/frontend/src/app/(platform)/copilot/components/ChatInput/ChatInput.tsx @@ -218,18 +218,24 @@ export function ChatInput({ onFilesSelected={handleFilesSelected} disabled={isBusy} /> - {showModeToggle && !isStreaming && ( - - )} - {showModeToggle && !isStreaming && ( - - )} + {showModeToggle && + !isStreaming && + (!hasSession || copilotChatMode === "extended_thinking") && ( + + )} + {showModeToggle && + !isStreaming && + (!hasSession || copilotLlmModel === "advanced") && ( + + )} {showDryRunToggle && (!hasSession || isDryRun) && ( void; + readOnly?: boolean; } -export function ModeToggleButton({ mode, onToggle }: Props) { +export function ModeToggleButton({ mode, onToggle, readOnly = false }: Props) { const isExtended = mode === "extended_thinking"; return (