Skip to content

[0.0.25] Confirm pending paste with Enter (keep P0-AC-008 gate) #2265

Closed

Description

@Xuepoo

Priority: P2 | Area: area:input | Labels: feat,P2,area:input | Milestone: 0.0.25 | RFC: P0-AC-008 | Task: pending

Problem

A multi-line paste requires pressing Ctrl+Shift+V a second time to confirm. That is ergonomically awkward, and it is the only explicit-confirmation chord available.

Constraint

P0-AC-008 requires confirmation for C0/NUL/ESC/CR/embedded newline/suspicious Unicode and a bypass-resistant gate with no silent delivery path. A config switch to disable confirmation is out of scope and must not be added.

Proposal

  • Allow Enter to confirm the pending paste (same confirm_pending_paste path, same audit/diagnostic).
  • Keep Esc cancel and keep "paste again" as an equivalent confirm.
  • Banner text: Paste 4 lines, 40B [newline] … (Enter to confirm, Esc to cancel).
  • No new capability; no change to trigger classes.

Acceptance

Enter confirms exactly once and delivers the same bytes as the paste-again path; Enter with no pending paste is unchanged; Esc still cancels; tests prove every suspicious class still requires the gate.

Activity

  1. added this to the 0.0.25 milestone on Oct 19, 2026
  2. added
    feat
    P2
    on Oct 19, 2026
  3. modified the milestones: 0.0.25, 0.0.24 on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2area:inputfeat

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions