Skip to content

Agents: Session scoping #311029

Open
Open

Description

In the recent study one participant started a local workspace session. Once they were done with that they started working on a cloud repo but reused the session. As a result, while the agent was able to read and write to the cloud repo, the file list was not updated with the new context. This meant that it was difficult for the participant to see new files that were created or browse the files that had been modified. Also, the agent committed directly to main, rather than creating a PR.

Activity

  1. added this to the Backlog milestone on Apr 17, 2026
  2. vs-code-engineering commented on Apr 17, 2026

    @vs-code-engineering
    Contributor

    Hi Steven Clarke (@stevencl). As a member of the team, you can help us triage this issue by referring to https://github.com/microsoft/vscode-copilot/wiki/Copilot-Inbox-Tracker and assigning an owner directly.

  3. bamurtaugh commented on Apr 17, 2026

    @bamurtaugh
    Member

    Thanks for filing this! Do you have more details (i.e. a screenshot(s) or example steps) on how they started work on a cloud repo but reused a different session?

  4. alexdima commented on Nov 11, 2026

    @alexdima
    Member

    I tried this on VS Code Insiders 1.146.0 on macOS, with a local session:

    1. Opened a new local session on repo A and asked it to create alpha.txt. Changes showed alpha.txt.
    2. In the same session, asked it to create beta.txt in a second repo (B), giving its absolute path, and commit it there.
    3. The agent did it: beta.txt exists in repo B and repo B has a new commit add beta on its current branch.
    4. The Changes panel still lists only alpha.txt, the Files panel shows only repo A, and the title bar still shows repo A. Nothing in the window shows what the agent changed or committed in repo B.

    So the file list not following the agent into another repo still happens. In my run the commit went straight to the current branch because I asked for a commit; nothing in the session warns that the work is outside its folder.

    311029-session-scoping.mp4

    311029-agent-editing-repo-b.png

    🤖 Authored with GitHub Copilot on behalf of Alexandru Dima (@alexdima).

  5. added
    feature-request
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agents-windowfeature-requestux

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions