Repository navigation
Description
- macOS Osvaldo Ortega (@osortega)
- linux TylerLeonhardt
- windows Ben Villalobos (@benvillalobos)
Complexity: 4
Authors: Sandeep Somavarapu (@sandy081)
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
-
Update to the latest Insiders (1.144).
-
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 exampletpi-plain-folder. -
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 --agentsWindows (cmd) "%LOCALAPPDATA%\Programs\Microsoft VS Code Insiders\bin\code-insiders.cmd" --user-data-dir %USERPROFILE%\tpi-move-chats-data --agentsLinux code-insiders --user-data-dir ~/tpi-move-chats-data --agentsYour normal Insiders can stay open: an Insiders started with a different
--user-data-dirruns as a separate instance. -
Sign in to GitHub. Claude and Codex are on by default in Insiders. If
chat.agentHost.claudeAgent.enabledorchat.agentHost.codexAgent.enabledis 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
- 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.
- 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.
- Right-click W > Mark as Done, and wait a few seconds.
- Expected: the worktree folder still exists (
git worktree listin the repository lists it), because W2 still uses it. Ask W2 to "append a line to wt.txt": it works.
- Expected: the worktree folder still exists (
- 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>).
- Expected: now the worktree folder is gone, and its branch exists with a commit of the uncommitted changes (
- 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).
- 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
- 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.
- 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.
- 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.
- 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.
- 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)
- 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.
- 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.
- 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.
- Right-click Q2 > Promote to Session.
- Expected: Q2 is its own session in the Chats section, still in its folder.
- 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.
- 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.
- 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
[-]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[/+]benvillalobos commentedon Oct 23, 2026
Great work! 👌
osortega commentedon Oct 23, 2026
Overall really polished experience!