Skip to content

Test Agents window and VS Code window interop #315537

Description

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:

  1. 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
  2. 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

  1. Open VS Code with a folder/workspace
  2. Verify the 'Open in Agents' button appears in the title bar (icon + label widget)
  3. Hover over it — tooltip should read 'Open in Agents Window'
  4. Click it — Agents window should open with that folder selected
  5. Run the 'Open in Agents' command from the Command Palette — same behavior
  6. 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

  1. Open the Agents window — if the welcome view is shown, complete the welcome flow and set up a workspace
  2. After the welcome view is done, verify the workspace is correctly set and the 'Open in Editor' button appears in the title bar
  3. Click 'Open in Editor' — VS Code should open (or focus) with that workspace folder
  4. Navigate to the new session view — verify the button is hidden

Scenario 3: Open Agents Window command and keybinding from VS Code

  1. Open VS Code (no Agents window open)
  2. Press Cmd+Shift+A (macOS) / Ctrl+Shift+A (Win/Linux) — Agents window should open
  3. With Agents window already open, press the keybinding again — Agents window should be focused
  4. Run 'Open Agents Window' from the Command Palette — same behavior

Scenario 4: Open VS Code Window command and keybinding from Agents window

  1. Open the Agents window with a VS Code window already open
  2. Press Cmd+Shift+A (macOS) / Ctrl+Shift+A (Win/Linux) from inside the Agents window — VS Code window should be focused
  3. Close all VS Code windows, then press the keybinding from the Agents window — a new VS Code window should open
  4. Run 'Open VS Code Window' from the Agents window Command Palette — same behavior

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions