Skip to content

Linux engine: a paste longer than a terminal's screen is always answered unconfirmed #276

Open

Description

@SSFSKIM

Problem & intent

#171 M4 T7 (fix 4) confirms a paste into a terminal whose text scrolls (VTE, families.rs text_scrolls) by reading the field whole and checking the strict scrolled rule: the after-text must equal the observed text with the paste at the caret less a prefix that ends at an observed line start, and no shorter reading may explain it. A paste longer than what the terminal's screen exposes can never be read whole. gnome-terminal's harness screen holds about 1,350 characters. So such a paste is always answered unconfirmed, even when it landed: a 64 KiB paste into a full screen landed 3/3 and was answered unconfirmed 3/3. That answer is the design's safe one, since it never permits a retry, but the model cannot tell that a long paste into a terminal (a script, a heredoc) arrived.

Intent: a long paste into a terminal that landed is confirmed on AT-SPI evidence, under the same strictness: no wrong confirm, and anything ambiguous stays unconfirmed.

Seams: the Linux engine's paste confirmation (native/linux-engine/src/engine/paste.rs, src/paste.rs, src/field.rs); the focus-timer experiment's terminal key-then-paste scenario in scripts/linux-engine-diff/.

Constraints

Success criteria

  • A paste longer than the screen into gnome-terminal, idle and at twice the load, that landed is answered confirmed in 30 consecutive runs.
  • The negative controls stay unconfirmed: the paste not landing, a partial paste, the same text arriving from another source during the confirmation, and shell output interleaved.
  • Short-paste results in every family equal T7's.

Decision log

  • 2026-11-04: declared at T7 fix 4 (e56f15d, aad090b) by the plan-executor and registered by the design session, under the owner's rule that every declared limit is tracked.

Sources

Activity

  1. added
    enhancement
    status:ready-for-architect
    priority:P3
    on Nov 4, 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

    enhancementpriority:P3status:ready-for-architect

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions