Repository navigation
fix(channels): resolve provider from model_routes on /model, preserve context - #3198
Merged
theonlyhennygod merged 2 commits intoMar 11, 2026
Conversation
… context - `/model <name>` now auto-resolves provider from configured model_routes by matching model name or hint, fixing 404 when switching to models on different providers (e.g. `/model kimi-k2.5` with anthropic default) - Conversation history is no longer cleared on `/model` or `/models` — users can explicitly reset via `/new` - Matrix channel now supports `/model`, `/models`, and `/new` commands - `/model` (no args) lists configured model routes with hints Co-Authored-By: Claude Opus 4.6 <[email protected]>
panviktor
force-pushed
the
fix/channel-model-switch-resolve-routes
branch
from
March 11, 2026 15:13
191f593 to
0ee3b6d
Compare
theonlyhennygod
requested review from
JordanTheJet and
SimianAstronaut7
as code owners
March 11, 2026 17:32
lantrinh1999
pushed a commit
to lantrinh1999/zeroclaw-1
that referenced
this pull request
Mar 18, 2026
…l-switch-resolve-routes fix(channels): resolve provider from model_routes on /model, preserve context
belumume
pushed a commit
to belumume/zeroclaw
that referenced
this pull request
Oct 9, 2026
…l-switch-resolve-routes fix(channels): resolve provider from model_routes on /model, preserve context
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
master/model <name>sets model but does not resolve provider frommodel_routes→ 404 when switching to models on different providers (e.g./model kimi-k2.5withanthropicdefault). History cleared on every switch. Matrix does not support/modelat all./models+/modeltwo-step; context lost on every switch/modelauto-resolves provider+model frommodel_routes(by model name or hint); history preserved on/modeland/models; Matrix added to supported channels;/model(no args) lists configured routes/newstill clears history; provider init logic; agent-level RouterProvider; Telegram/Discord existing behavior for unrouted modelsLabel Snapshot (required)
risk: mediumsize: Schannelchannel: matrix,channel: telegram,channel: discordChange Metadata
bugchannelLinked Issue
Supersede Attribution (required when
Supersedes #is used)N/A
Validation Evidence (required)