Skip to content

Test: terminal chat agent cwd awareness #249664

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks
meganrogge opened this issue May 23, 2025 · 0 comments
Open
3 tasks

Test: terminal chat agent cwd awareness #249664

meganrogge opened this issue May 23, 2025 · 0 comments

Comments

@meganrogge
Copy link
Contributor

meganrogge commented May 23, 2025

Refs #17486

  • Windows
  • macOS
  • Linux

Complexity: 4

Authors: @meganrogge, @roblourens


Terminal Chat Agent: cwd Awareness

We've introduced current working directory (cwd) awareness to the terminal chat agent this iteration to address issues like #17486. Note that this only applies to non-background terminals.

Key Changes

  • Terminal and chat session tracking has been refactored.
  • This refactor and other changes enable the agent to accurately understand the terminal's cwd when shell integration is active and a Copilot terminal is present.

Test Instructions

  1. Open a new terminal with shell integration enabled.
    • You can confirm shell integration is working by hovering over the terminal tab and checking that it says Shell Integration: Rich (see screenshot below).
  2. Run terminal commands via the chat agent in agent mode.
  3. Verify that:
    • The command executes in the correct working directory.
    • Chat accurately reflects the current directory in its responses or logic.
    • Closing sessions closes the terminals.
    • Reloading the window persists Copilot terminals.

💡 This feature depends on shell integration, so please ensure it’s active during testing.

Shell Integration: Rich example
@vs-code-engineering vs-code-engineering bot added this to the May 2025 milestone May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant