Skip to content

sessions: Disable unavailable session type picker - #333603

Merged
Megan Rogge (meganrogge) merged 2 commits into
mainfrom
agents/cloud-pill-selection-issue-fix
Aug 31, 2026
Merged

sessions: Disable unavailable session type picker#333603
Megan Rogge (meganrogge) merged 2 commits into
mainfrom
agents/cloud-pill-selection-issue-fix

Conversation

@meganrogge

@meganrogge Megan Rogge (meganrogge) commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator
Image

Summary

  • keep the sole session type pill visible when a selected repository supports no alternatives
  • render the pill as disabled and remove it from keyboard navigation
  • restore interaction automatically when another session type becomes available

Testing

  • npm run transpile-client
  • ./scripts/test.sh --run src/vs/sessions/contrib/chat/test/browser/sessionTypePicker.test.ts (26 passing)

Fixes #333605

Keep the sole session type visible for context while preventing interaction when no alternative can be selected. Re-enable the picker reactively when another type becomes available.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 31, 2026 17:49
@meganrogge
Megan Rogge (meganrogge) marked this pull request as ready for review August 31, 2026 17:52
@meganrogge
Megan Rogge (meganrogge) marked this pull request as draft August 31, 2026 17:53
@meganrogge
Megan Rogge (meganrogge) marked this pull request as ready for review August 31, 2026 17:53

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

Review tier: Balanced
Findings: 1 Medium severity

New issues introduced by this change (1)
Severity Finding
Medium severity src/​vs/​sessions/​contrib/​chat/​browser/​sessionTypePicker.ts — Keeping this target visible exposes it to the V2 onboarding tour: newSessionViewV2Tour.ts's…
What changed in this PR

Keeps a sole session-type pill visible while disabling interaction until alternatives become available.

Changes:

  • Adds disabled styling, ARIA state, and keyboard behavior.
  • Adds regression coverage for disabled-to-enabled transitions.
  • Removes web-only hiding behavior.
File Description
sessionTypePicker.ts Updates pill visibility and interactivity.
sessionTypePicker.test.ts Tests single- and multiple-type states.

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/vs/sessions/contrib/chat/browser/sessionTypePicker.ts
Gate the V2 harness spotlight on the picker interaction context so a visible but disabled sole session type is not presented as an actionable tour step.\n\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@meganrogge
Megan Rogge (meganrogge) merged commit aa5dc47 into main Aug 31, 2026
37 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/cloud-pill-selection-issue-fix branch August 31, 2026 19:33
@vs-code-engineering vs-code-engineering Bot added this to the 1.137.0 milestone Aug 31, 2026
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.

Agents: Cloud session type pill appears interactive when no alternative is available

3 participants