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
This commit is contained in:
Julius Marminge committed 2026-04-17 19:53:17 -07:00
1 parent 1985d2c2ef
commit cace5784c3
1 file changed
+5 -1
@@ -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;