- Skip remote fast-mode selection changes when the current provider is `opencode` - Keep existing model selection state unchanged for unsupported providers
Unified · Split
| @@ -597,9 +597,13 @@ export const ThreadComposer = memo(function ThreadComposer(props: ThreadComposer · 596 unmodified lines | |||
| 597 | } | 597 | } |
| 598 | if (event.startsWith("options:fast-mode:")) { | 598 | if (event.startsWith("options:fast-mode:")) { |
| 599 | const fastMode = event.endsWith(":on"); | 599 | const fastMode = event.endsWith(":on"); |
| 600 | const nextFast = fastMode || undefined; | ||
| 601 | if (currentModelSelection.provider === "opencode") { | ||
| 602 | return; | ||
| 603 | } | ||
| 600 | const updated: ModelSelection = { | 604 | const updated: ModelSelection = { |
| 601 | ...currentModelSelection, | 605 | ...currentModelSelection, |
| 602 | options: { ...currentModelSelection.options, fastMode: fastMode || undefined }, | 606 | options: { ...currentModelSelection.options, fastMode: nextFast }, |
| 603 | }; | 607 | }; |
| 604 | void props.onUpdateModelSelection(updated); | 608 | void props.onUpdateModelSelection(updated); |
| 605 | return; | 609 | return; |