fix: propagate model/provider changes to agents#139
Merged
jlia0 merged 3 commits intoTinyAGI:mainfrom Mar 2, 2026
Merged
Conversation
…ents `tinyclaw model` wrote to `settings.models` but at runtime each agent's own provider/model fields were used instead, making the command a no-op for any user who ran setup. Now both commands propagate to matching agents: - `tinyclaw model <x>` updates all agents sharing that provider - `tinyclaw provider <p> --model <m>` switches agents from old provider - `tinyclaw provider <p>` (no --model) still only sets the global default - Display commands show per-agent breakdown alongside the global default - Docs updated: README, AGENTS.md, TROUBLESHOOTING.md
The UPDATED_COUNT for `provider --model` was computed after the jq write, filtering on the new provider — which included agents already on that provider. Now computed before mutation, filtering on OLD_PROVIDER.
Updated jlia0/tinyclaw URLs to TinyAGI/tinyclaw per upstream rename.
This was referenced Mar 3, 2026
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
tinyclaw modelandtinyclaw provider --modelnow propagate changes to all matching agents insettings.json, fixing the issue where these commands were effectively no-ops because agent-level config overrides the globalmodelssection at runtime.tinyclaw model/tinyclaw providerwith no args) now show a per-agent breakdown alongside the global default.docs/AGENTS.md, anddocs/TROUBLESHOOTING.md.Test plan
tinyclaw model opus→ only anthropic agents updated, openai agent untouchedtinyclaw model gpt-5.3-codex→ only openai agent updatedtinyclaw provider openai --model gpt-5.3-codex→ agents matching old provider switch to new provider+modeltinyclaw provider anthropic(no--model) → no agent changes.agentssection still works (globalmodelsused alone)