From fb5f02f8461efe006945df443d2553e764eb8c9e Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 14 Apr 2026 07:18:50 +0000 Subject: [PATCH] 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. --- apps/mobile/src/features/threads/ThreadComposer.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/apps/mobile/src/features/threads/ThreadComposer.tsx b/apps/mobile/src/features/threads/ThreadComposer.tsx index 32c10bcfd7..6ddb438e39 100644 --- a/apps/mobile/src/features/threads/ThreadComposer.tsx +++ b/apps/mobile/src/features/threads/ThreadComposer.tsx @@ -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; }