feat(cli): add --model/--provider flags and /model /provider TUI commands #144

Merged
jason.woltje merged 1 commits from feat/p7-018-cli-model-switch into main 2026-03-15 18:41:37 +00:00
Owner
No description provided.
jason.woltje added 1 commit 2026-03-15 18:41:28 +00:00
feat(cli): add --model/--provider flags and /model /provider TUI commands (#129)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
a138435b03
- Add `--model <modelId>` and `--provider <provider>` flags to `mosaic tui`
- Pass initial model/provider selection through to TuiApp as props
- Fetch available models from gateway `/api/providers/models` on startup
- Show active model/provider in TUI header status bar
- Implement `/model`, `/provider`, and `/help` slash commands for mid-session switching
- `/model` with no args lists available models; `/model <id>` or `/model <p>/<id>` switches
- `/provider` with no args lists providers; `/provider <name>` switches and auto-selects first model
- Send `provider` and `modelId` fields in every WebSocket `message` emit
- Extract gateway REST client to `packages/cli/src/tui/gateway-api.ts`

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
jason.woltje merged commit 6a4c020179 into main 2026-03-15 18:41:37 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#144