Skip to content

Sessions - branch picker should show active branch name when using folder sessions#307282

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/ugliest-swift
Apr 2, 2026
Merged

Sessions - branch picker should show active branch name when using folder sessions#307282
lszomoru merged 1 commit intomainfrom
lszomoru/ugliest-swift

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Apr 1, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 1, 2026 23:17
@lszomoru lszomoru enabled auto-merge (squash) April 1, 2026 23:17
@lszomoru lszomoru self-assigned this Apr 1, 2026
@lszomoru lszomoru added this to the 1.115.0 milestone Apr 1, 2026
Copy link
Copy Markdown
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

Updates the Copilot Chat Sessions (Agents window) branch selection behavior so that when using Folder sessions (workspace isolation), the branch picker reflects the repository’s currently active branch rather than a stale/default value. This aligns the UI with the fact that folder sessions run against whatever branch is currently checked out.

Changes:

  • Add an autorun that observes the git repository state and updates the session’s selected branch when in workspace (folder) isolation mode.
  • Update setIsolationMode('workspace') to set the branch to the repository’s current HEAD branch name (fallback to default branch).

@lszomoru lszomoru merged commit 810e63a into main Apr 2, 2026
33 of 34 checks passed
@lszomoru lszomoru deleted the lszomoru/ugliest-swift branch April 2, 2026 01:30
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.

3 participants