Skip to content

Agent Session - let the extension decide whether to show the badge#3286

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/long-termite
Jan 29, 2026
Merged

Agent Session - let the extension decide whether to show the badge#3286
lszomoru merged 1 commit intomainfrom
lszomoru/long-termite

Conversation

@lszomoru
Copy link
Member

@lszomoru lszomoru commented Jan 29, 2026

Copilot AI review requested due to automatic review settings January 29, 2026 20:09
@lszomoru lszomoru enabled auto-merge January 29, 2026 20:09
@lszomoru lszomoru self-assigned this Jan 29, 2026
@lszomoru lszomoru added this to the January 2026 milestone Jan 29, 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 updates the badge display logic for chat session items to let the extension decide whether to show repository badges based on workspace context. The badges now only appear when needed to disambiguate sessions.

Changes:

  • Modified badge display logic to show repository badges only in empty windows or multi-repository workspaces
  • Unified badge visibility decision-making across Cloud and CLI session providers

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/extension/chatSessions/vscode-node/copilotCloudSessionsProvider.ts Updated getPullRequestBadge to accept repoIds parameter and return undefined for single-repository workspaces
src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts Added shouldShowBadge method and injected IGitService to determine badge visibility for CLI sessions
Comments suppressed due to low confidence (1)

src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts:170

  • Typo in property access: 'gitSevice' should be 'gitService' to match the corrected parameter name.
		const repositories = this.gitSevice.repositories

@lszomoru lszomoru added this pull request to the merge queue Jan 29, 2026
Merged via the queue into main with commit 6715c72 Jan 29, 2026
25 checks passed
@lszomoru lszomoru deleted the lszomoru/long-termite branch January 29, 2026 23:03
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.

2 participants