Skip to content

Use per-action min-widths for short agent-host pickers#318502

Open
roblourens wants to merge 1 commit into
mainfrom
agents/see-the-chat-input-part-where-there-s-27822501
Open

Use per-action min-widths for short agent-host pickers#318502
roblourens wants to merge 1 commit into
mainfrom
agents/see-the-chat-input-part-where-there-s-27822501

Conversation

@roblourens
Copy link
Copy Markdown
Member

In the chat input's secondary toolbar, agent-host pickers report a smaller actionMinWidth (22px) so they can collapse to icon-only and stay visible instead of overflowing into the menu. The tunnel-sharing toggle has no chevron, so 22px is still too wide — it should collapse further to 16px.

getActionMinWidth only accepts a number | undefined, so the existing Set<string> is replaced with a Map<string, number> mapping each action id to its own min-width:

  • sessions.tunnelHost.toggleSharing → 16
  • Other agent-host pickers → 22 (unchanged)

Unlisted actions fall through to the default actionMinWidth: 48.

(Written by Copilot)

Convert the agent-host short-picker set to a map so each picker can have
its own min-width. The tunnel-sharing toggle has no chevron, so it
collapses to 16px instead of 22px.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 27, 2026 03:56
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

Adjusts responsive overflow behavior for the chat input’s secondary (permissions) toolbar so agent-host pickers can collapse to icon-only more aggressively, keeping them visible instead of being pushed into the overflow menu.

Changes:

  • Replaces a Set<string> of “short picker” action IDs with a Map<string, number> so each action can report its own getActionMinWidth.
  • Keeps agent-host picker min-width at 22px while reducing sessions.tunnelHost.toggleSharing to 16px.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatInputPart.ts Introduces per-action min-widths for secondary-toolbar pickers via getActionMinWidth to improve responsive collapsing behavior.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

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