Skip to content

Agents: disable response-selection pop-ups on mobile web - #342053

Merged
Ulugbek Abdullaev (ulugbekna) merged 1 commit into
mainfrom
ulugbekna/agents/disable-interactive-widget-agents
Oct 16, 2026
Merged

Ulugbek Abdullaev (ulugbekna) merged 1 commit into
mainfrom
ulugbekna/agents/disable-interactive-widget-agents

Conversation

@ulugbekna

Copy link
Copy Markdown
Contributor

Disable the Agents-window response-selection pop-ups on mobile web so that selecting text uses the browser's native selection and copy controls without opening an additional question input or action menu.

Changes

  • Suppress both the Ask Question input and the experimental selection action menu on mobile web, without changing desktop behavior.
  • Keep the selection controller active so native transcript selections continue to pause auto-scroll while responses stream.
  • Use one shared availability predicate in the widget and both accessibility-help providers.
  • Add regression coverage for platform gating, both pop-up variants, native selection and scroll-hold cleanup, and accessibility help.

Validation

All checks passed on the final changes:

  • Client build: npm run build-fast -- --client-only - passed.

  • Module and type layers: npm run valid-layers-check - passed.

  • Changed-file lint:

    npm run eslint -- src/vs/workbench/contrib/chat/browser/chat.ts src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.ts src/vs/workbench/contrib/chat/test/browser/accessibility/chatAccessibilityHelp.test.ts src/vs/sessions/contrib/chat/browser/chatView.ts src/vs/sessions/contrib/chat/browser/responseSelectionSideChatController.ts src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts src/vs/sessions/contrib/chat/test/browser/responseSelectionSideChatController.test.ts src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts

    Result: passed for all eight changed TypeScript files.

  • Focused regression tests:

    ./scripts/test.sh --reporter dot --run src/vs/sessions/contrib/chat/test/browser/responseSelectionSideChatController.test.ts --run src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts --run src/vs/sessions/contrib/chat/test/browser/chatView.test.ts --run src/vs/workbench/contrib/chat/test/browser/accessibility/chatAccessibilityHelp.test.ts --grep 'ResponseSelectionSideChatController|SessionsChatAccessibilityHelp|switching chats on one view|Chat Accessibility Help'

    Result: 168 tests passed.

Real-device iOS/Android browser testing was not performed.

Preserve native text selection and transcript auto-scroll protection while suppressing selection pop-ups on mobile web. Keep both accessibility-help paths aligned with the available controls.

Co-authored-by: Copilot <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 16, 2026 12:45

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.

🟢 Approval recommended

The narrow platform gate preserves selection lifecycle and desktop behavior, with focused regression coverage and no unresolved findings.

0 open findings

What changed in this PR

Disables Agents-window response-selection pop-ups on mobile web while preserving native selection, streaming scroll protection, and desktop behavior.

Changes:

  • Shares a platform predicate across the widget and accessibility help.
  • Suppresses both pop-up variants without disabling selection tracking.
  • Adds regression coverage for platform gating, selection cleanup, and help content.

No blocking issues identified. Real-device iOS/Android testing remains unperformed.

File Description
src/​vs/​workbench/​contrib/​chat/​test/​browser/​accessibility/​chatAccessibilityHelp.test.ts Tests mobile-web help suppression.
src/​vs/​workbench/​contrib/​chat/​browser/​chat.ts Adds shared availability predicate.
src/​vs/​workbench/​contrib/​chat/​browser/​actions/​chatAccessibilityHelp.ts Gates selection help by availability.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​sessionsChatAccessibilityHelp.test.ts Tests help for both pop-up variants.
src/​vs/​sessions/​contrib/​chat/​test/​browser/​responseSelectionSideChatController.test.ts Tests gating, native selection, and cleanup.
src/​vs/​sessions/​contrib/​chat/​browser/​sessionsChatAccessibilityHelp.ts Hides unsupported selection instructions.
src/​vs/​sessions/​contrib/​chat/​browser/​responseSelectionSideChatController.ts Suppresses pop-ups while retaining scroll protection.
src/​vs/​sessions/​contrib/​chat/​browser/​chatView.ts Passes platform availability to the controller.

🧠 Review effort: Balanced


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

@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 1b3cae0f Current: 1fd1ad47

Changed (1)

sessions/sessionToolbar/sessionToolbar/SubmenuOpen/Light
Before After
before after

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