Fix fast mode option being applied to all providers indiscriminately
Guard the fast-mode handler in ThreadComposer to only apply fastMode to claudeAgent and codex providers, matching the existing logic in NewTaskDraftScreen. Other providers are left unchanged.
This commit is contained in:
1 file changed
+9
-4
@@ -596,10 +596,15 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer
|
||||
}
|
||||
if (event.startsWith("options:fast-mode:")) {
|
||||
const fastMode = event.endsWith(":on");
|
||||
const updated: ModelSelection = {
|
||||
...currentModelSelection,
|
||||
options: { ...currentModelSelection.options, fastMode: fastMode || undefined },
|
||||
};
|
||||
const updated: ModelSelection =
|
||||
currentModelSelection.provider === "claudeAgent"
|
||||
? {
|
||||
...currentModelSelection,
|
||||
options: { ...currentModelSelection.options, fastMode: fastMode || undefined },
|
||||
}
|
||||
: currentModelSelection.provider === "codex"
|
||||
? { ...currentModelSelection, options: { fastMode: fastMode || undefined } }
|
||||
: currentModelSelection;
|
||||
void props.onUpdateModelSelection(updated);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user