You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agents window: picker changes made right after sending the first message are lost #337981
In the Agents window, if you change a picker right after sending the first message of a new session, the change is lost once the session has finished starting.
This affects the permission level, mode and sandbox pickers, and the model and agent pickers.
Steps to reproduce
In the Agents window, start a new session that uses a worktree, so start-up takes a few seconds.
Send the first message.
While the session is still starting, change a picker. For example, change the permission level, or pick a different model or agent.
Wait until the session has started, then switch to another session and back.
Expected
The session keeps what you picked, and the agent uses it.
Actual
The picker goes back to the value from before you sent the message, and the agent really uses that old value:
Permission level, mode, sandbox: the new value is never sent to the agent host. The picker shows it for a moment, then jumps back to the old value.
Model and agent: the session and your follow-up messages use the model or agent from before the first message.
Why it happens
When you send the first message, your current picks are sent along with it. While the session is still starting, new picks only update a local draft. When the session is ready, the app restores the picks from before the message instead of your latest ones, and never tells the agent host about the changed settings.
Reproduced on Insiders 1.147.0 (944d79c): I started a new session with New Worktree isolation, sent the first message, and switched permissions to Allow all while the worktree was being created. Once the session started, the picker went back to Manual permissions (even before switching sessions), and it stayed that way after switching to another session and back. #337982 is still open.
Activity
alexdima commentedon Nov 28, 2026
Reproduced on Insiders 1.147.0 (944d79c): I started a new session with New Worktree isolation, sent the first message, and switched permissions to Allow all while the worktree was being created. Once the session started, the picker went back to Manual permissions (even before switching sessions), and it stayed that way after switching to another session and back. #337982 is still open.
337981-permission-reverts.mp4
🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).