bug: provider-side model switch is lost on reload (config.model stays at creation-time model)
What's broken
A model switch that comes from the provider side of an ACP session (e.g. the agent's own /model, a config_option_update / current_model_update notification, or another client of the same provider session) updates the agent's runtimeInfo.model, but never agent.config.model. config.model keeps the creation-time value.
On the next reloadAgentSession (manual reload, paseo agent reload, daemon restart), the resumed session is built from that stale config.model, and ACPAgentSession.applyConfiguredOverrides() calls setModel() with it, so the live session is switched back to the old model. The user sees their chat silently revert to the model it was created with.
thinking_option_changed already writes agent.config.thinkingOptionId; model_changed doesn't do the equivalent. Same class of bug as #5141 (mode), for model.
Steps to reproduce
- Create an ACP agent with model A.
- Switch the model to B from the provider side (not through Paseo's picker), so Paseo receives a
model_changedevent.paseo inspectshows B. paseo agent reload <id>.- The session is switched back to A (daemon log shows the configured-override
setModelwith A); the stored agent JSON still hasconfig.model = A.
Where did this happen
Daemon
Paseo version
0.6.1 (also reproduced against main @ dffde6a with a unit test)
OS version
macOS 27.0
Agent provider
ACP (Hermes)
Source: getpaseo/paseo