feat(settings): add model selection combobox for OpenCode agent configuration

Replace plain text inputs for model and small_model with searchable
combobox dropdowns that list models from configured providers, while
still supporting custom text entry on blur.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-07 10:55:42 +08:00
parent a3d5335e7f
commit faf8ff0731
11 changed files with 152 additions and 28 deletions

View File

@@ -555,7 +555,10 @@
"modelId": "モデル ID",
"modelName": "モデル名",
"deleteModel": "モデル {modelId} を削除",
"nativeJsonConfig": "OpenCode ネイティブ JSON 設定"
"nativeJsonConfig": "OpenCode ネイティブ JSON 設定",
"mainModel": "メインモデル",
"smallModel": "スモールモデル",
"noMatchingModels": "一致するモデルがありません"
},
"openClaw": {
"gatewayConfig": "Gateway 設定",