In the TUI, you can swap the model for the current agent at any time through the model picker. Over docker agent serve api that's not possible — there's no endpoint for it.
The plumbing already exists on the runtime side (runtime.SetAgentModel, SupportsModelSwitching, AvailableModels), and App.SetCurrentAgentModel shows how to apply + persist the override. It would just need to be exposed, e.g.:
GET /api/sessions/:id/models to list available models
PATCH /api/sessions/:id/model to set/clear the override for the current agent
Pairs naturally with #2780.
In the TUI, you can swap the model for the current agent at any time through the model picker. Over
docker agent serve apithat's not possible — there's no endpoint for it.The plumbing already exists on the runtime side (
runtime.SetAgentModel,SupportsModelSwitching,AvailableModels), andApp.SetCurrentAgentModelshows how to apply + persist the override. It would just need to be exposed, e.g.:GET /api/sessions/:id/modelsto list available modelsPATCH /api/sessions/:id/modelto set/clear the override for the current agentPairs naturally with #2780.