Skip to content

Refine new chat issue/PR pills - #333200

Merged
Megan Rogge (meganrogge) merged 4 commits into
mainfrom
agents/remove-plus-from-agents-pill
Aug 28, 2026
Merged

Refine new chat issue/PR pills#333200
Megan Rogge (meganrogge) merged 4 commits into
mainfrom
agents/remove-plus-from-agents-pill

Conversation

@meganrogge

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

Copy link
Copy Markdown
Collaborator

Summary

  • hide the add icon from the Issue/PR pill when context is attached
  • restore the add icon when all issue and pull request attachments are cleared
  • reduce new-chat category pill height from 32px to 24px
  • cover attached and cleared states in the workspace picker test

Testing

  • npm run transpile-client
  • npm run stylelint -- src/vs/sessions/contrib/chat/browser/media/chatWidget.css
  • ./scripts/test.sh --run src/vs/sessions/contrib/chat/test/browser/sessionWorkspacePicker.test.ts --grep "keeps a folder selected and counts multiple GitHub context attachments"

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings August 28, 2026 16:38
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@meganrogge Megan Rogge (meganrogge) changed the title Remove add icon from attached issue/PR pill Refine new chat issue/PR pills Aug 28, 2026

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/​sessionWorkspacePicker.ts — The new icon state can remain stale when a GitHub attachment is introduced by synchronizing the…
What changed in this PR

Refines new-chat workspace pills by hiding the add icon after GitHub context is attached and reducing pill height.

Changes:

  • Adds conditional icon visibility for attached context.
  • Restores the icon after attachments are cleared.
  • Reduces category pill height and updates tests.
File Description
sessionWorkspacePicker.test.ts Tests attached and cleared icon states.
sessionWorkspacePicker.ts Adds conditional trigger-icon rendering.
newChatWidget.ts Enables icon hiding for Issue/PR.
chatWidget.css Reduces category pill height.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/vs/sessions/contrib/chat/browser/sessionWorkspacePicker.ts
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

github-actions Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: d5ceefbe Current: b1d68375

Changed (29)

sessions/chat/newWidget/newChatWidget/NewSessionDefault/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionDefault/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionWorkspacePicker/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionWorkspacePicker/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionGitHubContextPicker/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionGitHubContextPicker/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionAttachedContext/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionAttachedContext/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionRemoteWorkspace/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionRemoteWorkspace/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionNarrow/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionNarrow/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionComments/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionComments/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionTip/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/NewSessionTip/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsLoading/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsLoading/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsStandard/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsStandard/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsGitHubMixed/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsGitHubMixed/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsSelected/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsSelected/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsEditedDisabled/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsEditedDisabled/Light
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsNarrow/Dark
Before After
before after
sessions/chat/newWidget/newChatWidget/PromptOptionsNarrow/Light
Before After
before after
chat/aiCustomizations/aiCustomizationManagementEditor/McpServersSearch/Dark
Before After
before after

Refresh the 8 blocks-ci screenshot hashes affected by reducing the
Agents Window new-chat category pill height from 32px to 24px and
hiding the Issue/PR pill plus icon once an item is attached. Hashes
copied from CI run 33191423140 job 98917675161 (ubuntu-latest); not
regenerated locally.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@meganrogge
Megan Rogge (meganrogge) merged commit 47d9a62 into main Aug 28, 2026
37 checks passed
@meganrogge
Megan Rogge (meganrogge) deleted the agents/remove-plus-from-agents-pill branch August 28, 2026 18:55
@vs-code-engineering vs-code-engineering Bot added this to the 1.136.0 milestone Aug 28, 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.

3 participants