Skip to content

Ctrl+A, drag-to-select, and copy don't work in the agent pane #779

Description

Steps to reproduce

  1. Open an agent pane and let it produce some output.
  2. Press Ctrl+A.
  3. Click and drag across the pane text.
  4. Try to copy the result.

Expected Behavior

Selection and copy work the same way they do in a normal terminal pane.

Actual Behavior

Nothing selects. The pane is a TermControl running the wta-helper TUI in mouse-tracking mode, so drag events are consumed by the app and Ctrl+A is not bound. Paste already has a dedicated path (EnableAgentPasteShortcutFallback); selection has no equivalent. See AgentPaneContent.cpp around lines 430-442.

Proposed fix

Add an agent-pane selection path alongside the existing paste fallback:

  • Bind Ctrl+A to selectAll in the agent pane.
  • Allow plain drag to select by auto-applying the shift-bypass of mouse mode.
  • Add right-click Copy.

Status

Right-click copy/paste landed in PR #642. Ctrl+A / selectAll is still outstanding.

Related: this belongs under the #518 Agent Pane UX umbrella. #128 (closed) covered general mouse friendliness; #465 (closed) covered selection styling.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Area-AgentPaneThe agent pane UX, ?<prompt> delegation, command palette AI entriesIssue-BugSomething is broken or behaves incorrectlyNeeds-TriageAwaiting first review by the teamStatus-In-ProgressActively being worked on

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions