fix: align channel runtime and settings UI

This commit is contained in:
lofyer
2026-08-09 21:54:25 +08:00
parent 66b098ae36
commit 1cc969317d
17 changed files with 288 additions and 1528 deletions
@@ -80,6 +80,12 @@ export function repairChannelRuntimeSelection(
if (selection.provider === 'auto') {
return defaultDirectSelection
}
if (
selection.provider === 'opencode' ||
selection.provider === 'continue'
) {
return { provider: selection.provider }
}
const repaired = repairAgentRuntimeSelection(selection, settings)
if (repaired.provider !== 'model') {
return repaired