feat(omo): add model/variant dropdowns from enabled providers

Replace model text inputs with Select dropdowns sourced from enabled
OpenCode providers, add thinking-level variant selection, and prevent
auto-enabling newly added OMO providers.
This commit is contained in:
YoVinchen
2026-02-08 23:07:49 +08:00
parent 5490a540f1
commit da27e22f77
4 changed files with 386 additions and 30 deletions
+2 -4
View File
@@ -166,10 +166,8 @@ impl ProviderService {
if matches!(app_type, AppType::OpenCode) {
// OMO providers use exclusive mode and write to dedicated config file.
if provider.category.as_deref() == Some("omo") {
state
.db
.set_omo_provider_current(app_type.as_str(), &provider.id)?;
crate::services::OmoService::write_config_to_file(state)?;
// Do not auto-enable newly added OMO providers.
// Users must explicitly switch/apply an OMO provider to activate it.
return Ok(true);
}
write_live_snapshot(&app_type, &provider)?;