Skip to content

Test: Move Chats in the Agents window: worktrees, sessions without a workspace and New Nested Session #343779

Closed

Description

Complexity: 4

Authors: Sandeep Somavarapu (@sandy081)

Create Issue


1.144 lets you move chats in the Agents window, including chats in worktrees and in sessions without a workspace. This test checks these moves and the New Nested Session composer.

Setup

  1. Update to the latest Insiders (1.144).

  2. Create a disposable Git repository with one commit, for example mkdir tpi-move-repo && cd tpi-move-repo && git init && echo hi > README.md && git add . && git commit -m init. Also create a plain folder that isn't a Git repository, for example tpi-plain-folder.

  3. Launch Insiders with a fresh test profile folder, ~/tpi-move-chats-data (Windows: %USERPROFILE%\tpi-move-chats-data), opening the Agents window directly:

    OS Command
    macOS "/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code-insiders" --user-data-dir ~/tpi-move-chats-data --agents
    Windows (cmd) "%LOCALAPPDATA%\Programs\Microsoft VS Code Insiders\bin\code-insiders.cmd" --user-data-dir %USERPROFILE%\tpi-move-chats-data --agents
    Linux code-insiders --user-data-dir ~/tpi-move-chats-data --agents

    Your normal Insiders can stay open: an Insiders started with a different --user-data-dir runs as a separate instance.

  4. Sign in to GitHub. Claude and Codex are on by default in Insiders. If chat.agentHost.claudeAgent.enabled or chat.agentHost.codexAgent.enabled is greyed out in Settings (Cmd+, / Ctrl+,), your organization manages it: skip that harness.

Create the sessions with New Session (Cmd+N / Ctrl+N), and nested sessions with + on a session's row (New Nested Session, also in its context menu, Cmd+T / Ctrl+T). Rename... them (context menu) so you can recognize them. To see which folder a chat works in, ask it "run pwd".

Only move sessions you created in this test. The test profile can list sessions you didn't create.

How to test

Run all scenarios with Copilot sessions. Then do a quick sanity pass with Claude and Codex sessions: pick a few steps from each scenario (for example a promote in a worktree, a move into a session without a workspace, and the New Nested Session composer). There's no need to do every step for every harness. An agent that supports only one folder offers only the session's folder in the New Nested Session composer.

Scenario 1: Chats in worktrees

  1. Create a session W in the repository with New Worktree, and ask "create a file wt.txt containing hello, don't commit it". Then create a nested session W2 in W, keeping the preselected folder and Branch, and ask it "run pwd".
    • Expected: W2 works in W's worktree folder.
  2. Right-click W2 > Promote to Session.
    • Expected: W2 is its own session and shows as a worktree session of the repository, on W's branch. "run pwd" shows the same worktree folder.
  3. Right-click W > Mark as Done, and wait a few seconds.
    • Expected: the worktree folder still exists (git worktree list in the repository lists it), because W2 still uses it. Ask W2 to "append a line to wt.txt": it works.
  4. Mark as Done W2, and wait a few seconds.
    • Expected: now the worktree folder is gone, and its branch exists with a commit of the uncommitted changes (git log <branch>).
  5. Create two sessions in the repository folder, R and R3 (Branch, not New Worktree). In R, create a nested session R2 with New Worktree in the composer's isolation picker, and ask it "run pwd". Drag R2 onto R3's row.
    • Expected: R2 moves into R3 and still works in its own worktree ("run pwd" shows the same folder).
  6. Create a single-chat session W4 with New Worktree, send a message, and drag it onto R's row.
    • Expected: W4 is nested in R and still works in its worktree.

Scenario 2: The New Nested Session composer

  1. Click + on R's row. Then open New Session and compare.
    • Expected: the nested composer looks like New Session: the folder picker above the centered input, the tip banner (unless you dismissed it earlier), and the isolation picker in the same place. It has no agent or environment picker. The folder picker preselects R's folder.
  2. Open the folder picker.
    • Expected: R's folder first, then recent folders, then No Workspace, a separator and Open Folder.... Each row shows the folder name and its parent folder, not a long full path. Folders of R's other nested sessions (like R2's worktree) aren't listed unless they are recent folders.
  3. Open the isolation picker and pick New Worktree, then Branch. Also go through the pickers with Tab and the arrow keys.
    • Expected: New Worktree shows the branch picker; Branch hides it. The keyboard order is folder, isolation, branch (for New Worktree), as in New Session.
  4. Pick the plain folder with Open Folder..., and send "run pwd".
    • Expected: no isolation or branch picker for that folder, and the nested session works in the plain folder.
  5. Open New Nested Session in R again, pick No Workspace, and send "run pwd".
    • Expected: the nested session works in its own temporary folder, not in the repository.

Scenario 3: Sessions without a workspace (quick chats)

  1. Open New Session, pick No workspace in the workspace picker (it's labelled Chat in some picker layouts), and ask "create notes.txt containing hello, then run pwd". Call it Q.
    • Expected: Q is listed in the Chats section.
  2. Create a nested session Q2 in Q, and ask "create q2.txt, then run pwd".
    • Expected: the composer preselects No Workspace. Q2 works in its own temporary folder, not Q's.
  3. Drag Q2 onto R's row. Ask Q2 "run pwd and list the files".
    • Expected: Q2 moves into R, and still works in its own folder with q2.txt.
  4. Right-click Q2 > Promote to Session.
    • Expected: Q2 is its own session in the Chats section, still in its folder.
  5. Drag a nested session of R (one that works in the repository) onto Q's row. Ask it "run pwd".
    • Expected: it moves into Q and still works in the repository. Q stays in the Chats section.
  6. Create a single-chat quick chat Q3 (ask it "create q3.txt") and drag it onto R's row.
    • Expected: Q3 is nested in R and still works in its own folder with q3.txt.
  7. Quit Insiders and launch it again with the same command. Send a message in Q2 and Q3.
    • Expected: both are where you left them and still work in their own folders.

What to report

For each problem, include the scenario and step, the agent (Copilot, Claude or Codex), the folder each chat worked in before and after (the output of "run pwd"), and before/after screenshots of the sessions list. Attach the logs from Developer: Export Agent Host Debug Logs.... If that fails, attach agenthost.log from Developer: Open Logs Folder (the newest folder).

When you're done, delete ~/tpi-move-chats-data, the disposable repository with its worktrees, and the plain folder.

Activity

  1. changed the title [-]Test: Move Chats in the Agents window: worktrees, sessions without a workspace, New Nested Session and the move_session tool[/-] [+]Test: Move Chats in the Agents window: worktrees, sessions without a workspace and New Nested Session[/+] on Oct 23, 2026
  2. removed their assignment
    on Oct 23, 2026
  3. benvillalobos commented on Oct 23, 2026

    @benvillalobos
    Member

    Great work! 👌

  4. osortega commented on Oct 23, 2026

    @osortega
    Contributor

    Overall really polished experience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions