Skip to content

handle tap and click properly#311604

Merged
rebornix merged 2 commits intomainfrom
rebornix/manual-ptarmigan
Apr 21, 2026
Merged

handle tap and click properly#311604
rebornix merged 2 commits intomainfrom
rebornix/manual-ptarmigan

Conversation

@rebornix
Copy link
Copy Markdown
Member

Co-authored-by: Copilot copilot@github.com

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 21, 2026 05:21
@rebornix rebornix self-assigned this Apr 21, 2026
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

Improves input handling for picker triggers so they respond reliably to both mouse clicks and touch taps (notably on iOS), aligning the pickers’ behavior across the workbench chat model picker and the Sessions window pickers.

Changes:

  • Switch workbench chat model picker trigger to addDisposableGenericMouseDownListener so iOS uses pointerdown where mousedown can be unreliable.
  • Add touch Gesture targeting and listen for both CLICK and Tap on several Sessions window picker triggers.
  • Keep existing keyboard activation behavior (Enter/Space) unchanged.
Show a summary per file
File Description
src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Use generic mouse down listener to get pointer events on iOS for opening the model picker.
src/vs/sessions/contrib/copilotChatSessions/browser/permissionPicker.ts Add Gesture + tap handling so the permission picker opens on touch.
src/vs/sessions/contrib/copilotChatSessions/browser/modelPicker.ts Add Gesture + tap handling so the model picker opens on touch.
src/vs/sessions/contrib/copilotChatSessions/browser/modePicker.ts Add Gesture + tap handling so the mode picker opens on touch.
src/vs/sessions/contrib/copilotChatSessions/browser/isolationPicker.ts Add Gesture + tap handling so the isolation picker opens on touch.
src/vs/sessions/contrib/copilotChatSessions/browser/claudePermissionModePicker.ts Add Gesture + tap handling so the Claude permission mode picker opens on touch.
src/vs/sessions/contrib/copilotChatSessions/browser/branchPicker.ts Add Gesture + tap handling so the branch picker opens on touch.
src/vs/sessions/contrib/chat/browser/sessionWorkspacePicker.ts Add Gesture + tap handling so the workspace picker opens on touch.
src/vs/sessions/contrib/chat/browser/sessionTypePicker.ts Add Gesture + tap handling so the session type picker opens on touch.

Copilot's findings

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

Comment thread src/vs/workbench/contrib/chat/browser/widget/input/chatModelPicker.ts Outdated
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 21, 2026

Screenshot Changes

Base: 938f78a9 Current: 2f814a66

Changed (5)

chat/aiCustomizations/aiCustomizationManagementEditor/McpBrowseMode/Dark
Before After
before after
agentSessionsViewer/CompletedUnread/Dark
Before After
before after
agentSessionsViewer/CompletedUnread/Light
Before After
before after
agentSessionsViewer/WithMarkdownBadge/Dark
Before After
before after
agentSessionsViewer/WithMarkdownBadge/Light
Before After
before after

Co-authored-by: Copilot <copilot@github.com>
@rebornix rebornix marked this pull request as ready for review April 21, 2026 06:28
@rebornix rebornix merged commit d844c09 into main Apr 21, 2026
40 of 41 checks passed
@rebornix rebornix deleted the rebornix/manual-ptarmigan branch April 21, 2026 08:12
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 21, 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