Skip to content

Commit fb5f02f

Browse files
committed
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.
1 parent a77ea8f commit fb5f02f

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

apps/mobile/src/features/threads/ThreadComposer.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -596,10 +596,15 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer
596596
}
597597
if (event.startsWith("options:fast-mode:")) {
598598
const fastMode = event.endsWith(":on");
599-
const updated: ModelSelection = {
600-
...currentModelSelection,
601-
options: { ...currentModelSelection.options, fastMode: fastMode || undefined },
602-
};
599+
const updated: ModelSelection =
600+
currentModelSelection.provider === "claudeAgent"
601+
? {
602+
...currentModelSelection,
603+
options: { ...currentModelSelection.options, fastMode: fastMode || undefined },
604+
}
605+
: currentModelSelection.provider === "codex"
606+
? { ...currentModelSelection, options: { fastMode: fastMode || undefined } }
607+
: currentModelSelection;
603608
void props.onUpdateModelSelection(updated);
604609
return;
605610
}

0 commit comments

Comments
 (0)