From cace5784c374b8288d8f725c2f47ea450cd2fe95 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Fri, 17 Apr 2026 19:53:17 -0700 Subject: [PATCH] Ignore fast mode updates for Opencode models - Skip remote fast-mode selection changes when the current provider is `opencode` - Keep existing model selection state unchanged for unsupported providers --- apps/mobile/src/features/threads/ThreadComposer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/mobile/src/features/threads/ThreadComposer.tsx b/apps/mobile/src/features/threads/ThreadComposer.tsx index 74f38eee79..011422ff9e 100644 --- a/apps/mobile/src/features/threads/ThreadComposer.tsx +++ b/apps/mobile/src/features/threads/ThreadComposer.tsx @@ -597,9 +597,13 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer } if (event.startsWith("options:fast-mode:")) { const fastMode = event.endsWith(":on"); + const nextFast = fastMode || undefined; + if (currentModelSelection.provider === "opencode") { + return; + } const updated: ModelSelection = { ...currentModelSelection, - options: { ...currentModelSelection.options, fastMode: fastMode || undefined }, + options: { ...currentModelSelection.options, fastMode: nextFast }, }; void props.onUpdateModelSelection(updated); return;