- 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 | 598 | if (event.startsWith("options:fast-mode:")) { |
| 599 | 599 | const fastMode = event.endsWith(":on"); |
| 600 | + const nextFast = fastMode || undefined; | |
| 601 | + if (currentModelSelection.provider === "opencode") { | |
| 602 | + return; | |
| 603 | + } | |
| 600 | 604 | const updated: ModelSelection = { |
| 601 | 605 | ...currentModelSelection, |
| 602 | − options: { ...currentModelSelection.options, fastMode: fastMode || undefined }, | |
| 606 | + options: { ...currentModelSelection.options, fastMode: nextFast }, | |
| 603 | 607 | }; |
| 604 | 608 | void props.onUpdateModelSelection(updated); |
| 605 | 609 | return; |