Skip to content

Agents window: picker changes made right after sending the first message are lost #337981

Description

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

  1. In the Agents window, start a new session that uses a worktree, so start-up takes a few seconds.
  2. Send the first message.
  3. While the session is still starting, change a picker. For example, change the permission level, or pick a different model or agent.
  4. 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.

Activity

  1. alexdima commented on Nov 28, 2026

    @alexdima
    Member

    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).

  2. added
    bug
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

agents-new-sessionagents-windowbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions