Troubleshooting
This page is grounded in:
crates/tui/src/app/update/pickers.rscrates/core/src/config/resolve.rscrates/cli/src/cmd/oneshot.rscrates/provider/src/models/registry.rscrates/tui/src/app/update/core_events.rscrates/tui/src/app/update/commands.rscrates/tui/src/app/update/keys.rs
1) Auth/provider setup issues
Symptom:
- Model picker shows:
No connected providers. Run /connect to configure a provider.
Fix:
- Run
/connectin TUI. - Or configure
[providers.<name>]and[defaults]in~/.swarmie/config.toml. - For API-key providers, ensure the configured
api_key_envvariable is set.
2) OAuth provider returns unauthorized
Symptom:
- Requests fail with unauthorized/401 behavior after OAuth setup.
Fix:
- Re-run
/connectfor that provider. - Ensure provider config uses the intended
authenticationmode. - Confirm stored OAuth credentials exist (runtime resolves OAuth credentials from credential store in
resolve_runtime_provider).
3) Tools are denied in headless mode
Symptom:
swarmie promptprints warnings likepermission denied for tool ....
Fix:
- Expected default: non-interactive runs auto-deny permission requests.
- For trusted automation only, use
--dangerously-bypass-approvals.
4) Model name not behaving as expected
Symptom:
- You pass a model name, but behavior/protocol selection is not what you intended.
Fix:
- Use
/modelsin TUI to pick from known registry entries. - Prefer canonical IDs over ad-hoc names.
- Remember: unknown names pass through
resolve_model_idunchanged.
5) MCP commands show no servers
Symptom:
- Footer hint:
No MCP servers configured.
Fix:
- Add
[mcp.servers.<name>]entries in config. - Re-open
/mcpsafter config changes. - Use
/statusto verify server states once configured.
6) Session resume doesn’t restore expected history
Symptom:
- Resume reports empty/fresh behavior.
Fix:
- Use
/resumepicker orswarmie resume --last. - Confirm the selected session actually has stored messages.
- If no messages are stored, Swarmie intentionally starts fresh.
7) Context or cost grows too high
Symptom:
- Context usage keeps climbing, or session cost is higher than expected.
Fix:
- Check
/statusand footer context/cost indicators. - Run
/compactto summarize and reduce prompt load. - Lower thinking level with
Alt+Twhen a reasoning-capable model is active.