Compare commits

...
Author SHA1 Message Date
Cursor Agent fb5f02f846 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.
2026-04-14 07:18:50 +00:00
@@ -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;
}