-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
Description
Description
Switching agent modes (Build / Plan / Docs) resets the thinking variant to default. For example, selecting "Max thinking" then switching from Build to Plan reverts thinking to the default level.
Reproduced in the desktop app (v1.2.26). agent.set() in packages/app/src/context/local.tsx overwrites the entire per-session state with the new agent's defaults instead of merging. Since most agents don't configure a model or variant, the user's selection is replaced with undefined.
OpenCode version
1.2.26
Steps to reproduce
- Select a model with thinking variants (e.g. Claude Sonnet)
- Set thinking level to "Max thinking"
- Switch agent mode from Build to Plan
- Thinking level resets to default
Operating System
Windows 11
Reactions are currently unavailable