fix: stop masking runtime failures

This commit is contained in:
chengyongru authored and chengyongru committed 2026-07-21 11:44:52 +08:00
1 parent afc65c086e
commit dfc3919b52
22 files changed
+446 -300

No files matched your search

+1 -5
View File
@@ -758,11 +758,7 @@ def settings_payload(
config = load_config()
defaults = config.agents.defaults
active_preset_name = defaults.model_preset or "default"
try:
effective_preset = config.resolve_preset()
except Exception:
effective_preset = config.resolve_default_preset()
active_preset_name = "default"
effective_preset = config.resolve_preset()
provider_name = (
config.get_provider_name(effective_preset.model, preset=effective_preset)