When entering plan mode while the session is streaming, #applyPlanModeModel defers the switch into #pendingModelSwitch and snapshots the previous model. On exit, the snapshot was restored but the deferred switch was left queued, so the next agent_end flush landed the session on the plan-role model after the user had already left plan mode. Drop the pending switch in #exitPlanMode when its target matches the plan-role resolution; leave any other queued switch alone. Fixes #816
@oh-my-pi/pi-coding-agent
Core implementation package for the omp coding agent in the oh-my-pi monorepo.
For installation, setup, provider configuration, model roles, slash commands, and full CLI reference, see:
Package-specific references: