Skip to content

fix: propagate model/provider changes to agents#139

Merged
jlia0 merged 3 commits intoTinyAGI:mainfrom
axonstone:fix/model-provider-agent-propagation
Mar 2, 2026
Merged

fix: propagate model/provider changes to agents#139
jlia0 merged 3 commits intoTinyAGI:mainfrom
axonstone:fix/model-provider-agent-propagation

Conversation

@axonstone
Copy link
Copy Markdown
Contributor

Summary

  • tinyclaw model and tinyclaw provider --model now propagate changes to all matching agents in settings.json, fixing the issue where these commands were effectively no-ops because agent-level config overrides the global models section at runtime.
  • Display commands (tinyclaw model / tinyclaw provider with no args) now show a per-agent breakdown alongside the global default.
  • Documentation updated in README, docs/AGENTS.md, and docs/TROUBLESHOOTING.md.

Test plan

  • tinyclaw model opus → only anthropic agents updated, openai agent untouched
  • tinyclaw model gpt-5.3-codex → only openai agent updated
  • tinyclaw provider openai --model gpt-5.3-codex → agents matching old provider switch to new provider+model
  • tinyclaw provider anthropic (no --model) → no agent changes
  • Backward compat: settings with no .agents section still works (global models used alone)
  • shellcheck passes clean

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants