History

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

Julius Marminge committed 7 months ago

Commit cace5781 parent 1985d2c1 file · +5 −1Browse files

Unified · Split

apps/mobile/src/features/threads/ThreadComposer.tsx+5−1
@@ -597,9 +597,13 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer · 596 unmodified lines
597597 }
598598 if (event.startsWith("options:fast-mode:")) {
599599 const fastMode = event.endsWith(":on");
600+ const nextFast = fastMode || undefined;
601+ if (currentModelSelection.provider === "opencode") {
602+ return;
603+ }
600604 const updated: ModelSelection = {
601605 ...currentModelSelection,
602− options: { ...currentModelSelection.options, fastMode: fastMode || undefined },
606+ options: { ...currentModelSelection.options, fastMode: nextFast },
603607 };
604608 void props.onUpdateModelSelection(updated);
605609 return;