Skip to content

Conversation

@DonJayamanne
Copy link
Collaborator

@DonJayamanne DonJayamanne self-assigned this Jan 28, 2026
@DonJayamanne DonJayamanne marked this pull request as ready for review January 28, 2026 21:17
Copilot AI review requested due to automatic review settings January 28, 2026 21:17
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 28, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the workspace folder tracking logic for Copilot CLI agent sessions to fix how folder names are displayed in the agent session window. The changes move the tracking logic from the request handler into the getOrCreateSession method and add a fallback to track folder names when the working directory is not part of a workspace.

Changes:

  • Moved workspace folder tracking logic from the request handler to the getOrCreateSession method, ensuring it only executes for new sessions
  • Added fallback behavior to track the folder basename when getWorkspaceFolder returns undefined
  • Nested the worktree properties tracking within the isNewSession condition for better code organization

@DonJayamanne DonJayamanne added this pull request to the merge queue Jan 28, 2026
Merged via the queue into main with commit eba2917 Jan 28, 2026
19 checks passed
@DonJayamanne DonJayamanne deleted the don/rotten-catshark branch January 28, 2026 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect folder name displayed in background agents when using agents window

4 participants