Complexity: 3
Create Issue
Create Issue
Test the window interoperability features between the VS Code window and the Agents window.
Two distinct features are covered:
-
Folder-aware buttons — open the current folder in the other window:
- Open in Agents button (VS Code title bar): opens the workspace folder in the Agents window
- Open in Editor button (Agents window title bar): opens the active session's workspace folder in VS Code
-
Window-switching commands — switch focus between windows without folder context:
- Open Agents Window command (from VS Code window)
- Open VS Code Window command (from Agents window)
Scenario 1: Open in Agents button in VS Code title bar
- Open VS Code with a folder/workspace
- Verify the 'Open in Agents' button appears in the title bar (icon + label widget)
- Hover over it — tooltip should read 'Open in Agents Window'
- Click it — Agents window should open with that folder selected
- Run the 'Open in Agents' command from the Command Palette — same behavior
- Open VS Code with no folder — verify the button still appears but opens the Agents window without a folder
Scenario 2: Open in Editor button in Agents window title bar
- Open the Agents window — if the welcome view is shown, complete the welcome flow and set up a workspace
- After the welcome view is done, verify the workspace is correctly set and the 'Open in Editor' button appears in the title bar
- Click 'Open in Editor' — VS Code should open (or focus) with that workspace folder
- Navigate to the new session view — verify the button is hidden
Scenario 3: Open Agents Window command and keybinding from VS Code
- Open VS Code (no Agents window open)
- Press Cmd+Shift+A (macOS) / Ctrl+Shift+A (Win/Linux) — Agents window should open
- With Agents window already open, press the keybinding again — Agents window should be focused
- Run 'Open Agents Window' from the Command Palette — same behavior
Scenario 4: Open VS Code Window command and keybinding from Agents window
- Open the Agents window with a VS Code window already open
- Press Cmd+Shift+A (macOS) / Ctrl+Shift+A (Win/Linux) from inside the Agents window — VS Code window should be focused
- Close all VS Code windows, then press the keybinding from the Agents window — a new VS Code window should open
- Run 'Open VS Code Window' from the Agents window Command Palette — same behavior
Complexity: 3
Create Issue
Create Issue
Test the window interoperability features between the VS Code window and the Agents window.
Two distinct features are covered:
Folder-aware buttons — open the current folder in the other window:
Window-switching commands — switch focus between windows without folder context:
Scenario 1: Open in Agents button in VS Code title bar
Scenario 2: Open in Editor button in Agents window title bar
Scenario 3: Open Agents Window command and keybinding from VS Code
Scenario 4: Open VS Code Window command and keybinding from Agents window