HERMES-GIELIE/api
BonyFish f82a763dfb fix: support list format for custom_providers.models in model dropdown
The get_available_models() function only handled dict-format models
(`{model_id: {}}`) for custom_providers entries, silently dropping
models specified as YAML lists (`[model1, model2]`) or list of dicts
(`[{id: ..., label: ...}]`).

This caused users who define their custom providers with list-format
model declarations to see zero or incomplete model entries in both
Settings → Preferences → Default Model dropdown and the chat
interface model picker.

The fix adds an `elif isinstance(_cp_models_dict, list)` branch with
support for three list sub-formats:
  - Plain string list: `models: [m1, m2]`
  - Dict list: `models: [{id: m1, label: ...}]`
  - Mixed: `models: [m1, {id: m2}]`

Refs: hermes-agent issue where YAML list models were invisible
2026-05-16 05:43:09 +00:00
..
__init__.py
agent_health.py fix(agent-health): treat stale running gateway as unknown 2026-05-11 23:13:09 +00:00
agent_sessions.py fix: reconcile stale sidebar display titles 2026-05-14 16:18:53 +08:00
auth.py fix: serve PWA manifest from session routes 2026-05-14 11:52:12 -07:00
background.py
clarify.py
commands.py fix(security): drop unsafe-eval + add jsdelivr to CSP, sanitize plugin error 2026-05-11 17:53:02 +00:00
compression_anchor.py docs: clarify compression anchor helpers 2026-05-12 01:43:16 -07:00
config.py fix: support list format for custom_providers.models in model dropdown 2026-05-16 05:43:09 +00:00
dashboard_probe.py
extensions.py
gateway_watcher.py
goals.py
helpers.py stage-348: apply Opus SHOULD-FIX-pre-merge — add '://' to _SENSITIVE_LOWER_MARKERS 2026-05-13 16:54:36 +00:00
kanban_bridge.py
metering.py
models.py Keep recovered pending turns in context 2026-05-16 04:07:02 +00:00
oauth.py
onboarding.py Classify onboarding DNS probe failures consistently 2026-05-15 08:51:30 +08:00
profiles.py Revert "Merge pull request #2323 into stage-362" 2026-05-15 23:22:44 +00:00
providers.py fix(providers): avoid caching transient quota probe failures 2026-05-13 19:01:47 -06:00
request_diagnostics.py
rollback.py
routes.py stage-364: Opus-caught live SSE event_id fix (side-channel approach) 2026-05-16 03:58:54 +00:00
run_journal.py Address run journal replay review 2026-05-16 02:58:34 +00:00
session_ops.py
session_recovery.py fix: audit turn journal terminal collisions 2026-05-12 05:20:06 -07:00
startup.py
state_sync.py
streaming.py stage-364: Opus-caught live SSE event_id fix (side-channel approach) 2026-05-16 03:58:54 +00:00
system_health.py
terminal.py
turn_journal.py fix: lock turn journal appends 2026-05-15 16:39:45 -07:00
updates.py Keep unknown update summary bullets 2026-05-15 09:16:39 +08:00
upload.py fix: clean session attachment and stream recovery leftovers 2026-05-15 13:30:46 -07:00
workspace.py refactor: reduce stale workspace recovery fix 2026-05-12 06:28:35 -06:00
worktrees.py Harden worktree removal safeguards 2026-05-13 09:49:15 +08:00