Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 9, 2026

The Agent Sessions section in the status bar was showing "GitHub Copilot coding agent in progress" for background sessions instead of "Background Agent in progress". This happened because reportInProgress was using the contribution's displayName rather than the short provider name.

Changes:

  • Modified reportInProgress in chatSessions.contribution.ts to use explicit localized display names for known session types
  • Background sessions now show "Background Agent"
  • Cloud sessions now show "Cloud Agent"
  • Local sessions now show "Local Agent"
  • Unknown session types fall back to contribution displayName
if (chatSessionType === AgentSessionProviders.Local) {
    displayName = localize('chat.session.inProgress.local', "Local Agent");
} else if (chatSessionType === AgentSessionProviders.Background) {
    displayName = localize('chat.session.inProgress.background', "Background Agent");
} else if (chatSessionType === AgentSessionProviders.Cloud) {
    displayName = localize('chat.session.inProgress.cloud', "Cloud Agent");
} else {
    displayName = this._contributions.get(chatSessionType)?.contribution.displayName;
}
Original prompt

This section details on the original issue you should resolve

<issue_title>Duplicate entries in Agent Sessions section of status bar</issue_title>
<issue_description>

Ref https://github.com/microsoft/vscode-internalbacklog/issues/6527

  • Kick off a few agent sessions (cloud and background)
  • See the in-progress icon on the Copilot status bar entry and I click on it
  • ❓ I see 2 entries about cloud agents being in progress
    • Cloud Agent in progress
    • GitHub Copilot coding agent in progress
      • Image

</issue_description>

<agent_instructions>The label is wrong for the background session, it should be background session not GitHub Copilot</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix duplicate entries in agent sessions section Fix incorrect label for background sessions in Agent Sessions status bar Jan 9, 2026
Copilot AI requested a review from bpasero January 9, 2026 11:22
@bpasero bpasero marked this pull request as ready for review January 9, 2026 13:50
Copilot AI review requested due to automatic review settings January 9, 2026 13:50
@bpasero bpasero enabled auto-merge (squash) January 9, 2026 13:50
@bpasero bpasero added this to the January 2026 milestone Jan 9, 2026
alexr00
alexr00 previously approved these changes Jan 9, 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 fixes an issue where the Agent Sessions status bar was displaying incorrect labels for background sessions. The background session was showing "GitHub Copilot coding agent in progress" instead of "Background Agent in progress" because the code was using the contribution's displayName rather than appropriate short labels for known agent session types.

Key Changes:

  • Modified reportInProgress method to use explicit localized display names for known session types (Local, Background, and Cloud agents)
  • Added import of AgentSessionProviders enum to properly identify agent session types
  • Each known agent type now displays with consistent "Agent" suffix: "Local Agent", "Background Agent", "Cloud Agent"

@bpasero bpasero merged commit 759266a into main Jan 9, 2026
22 checks passed
@bpasero bpasero deleted the copilot/fix-duplicate-agent-entries branch January 9, 2026 14:38
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.

Duplicate entries in Agent Sessions section of status bar

4 participants