Skip to content

fix(normalize): treat ready container-slot models as loaded (cutover routing)#678

Merged
thinmintdev merged 1 commit into
mainfrom
fix/loaded-models-include-container-slots
Jun 9, 2026
Merged

fix(normalize): treat ready container-slot models as loaded (cutover routing)#678
thinmintdev merged 1 commit into
mainfrom
fix/loaded-models-include-container-slots

Conversation

@thinmintdev

Copy link
Copy Markdown
Contributor

Why

hal0/agent served the chat model. Root cause: _normalize_loaded_models built the "loaded" set from lemond's health snapshot only. Container slots aren't lemond-managed, so chadrock-35b-ace-saber / qwopus3.6-27b-v2 were never "loaded" — and resolve_chain only matches a role whose model is loaded, so every hal0/* name fell back to the configured primary (chat). hal0/chat worked by coincidence; hal0/agent wrongly resolved to chat.

Fix

Union lemond's loaded set with the catalogs advertised by ready container remotes (kind="remote" + slot_name). Genuine external remotes (no slot_name, e.g. OpenRouter) are excluded.

Tests

TDD: test_loaded_models_includes_ready_container_slots (+ excludes a real remote). 45 passed; ruff clean.

Completes correct hal0/agent resolution. Relates to #652, #662.

🤖 Generated with Claude Code

Cutover (#662) final routing gap. _normalize_loaded_models derived the
"loaded" set purely from lemond's health snapshot. Container slots aren't
lemond-managed, so their models (chadrock-35b-ace-saber, qwopus3.6-27b-v2)
never appeared loaded — and resolve_chain only matches a role whose model is
loaded, so EVERY hal0/* name fell back to the configured primary (chat).
hal0/chat only "worked" by coincidence; hal0/agent wrongly served chat.

Union the lemond loaded set with the models advertised by ready container
remotes (kind="remote" + slot_name). Genuine external remotes (no slot_name,
e.g. OpenRouter) are excluded — they aren't local slots.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@thinmintdev thinmintdev merged commit dcffa7e into main Jun 9, 2026
4 checks passed
@thinmintdev thinmintdev deleted the fix/loaded-models-include-container-slots branch June 9, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant