Repository navigation
Description
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
- The confirmation stays strict (Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 M4 T7 ruling): a wrong confirm is worse than a false unconfirmed, and the confirmation budget is not raised.
- Candidate signal to measure first: the target's
object:text-changed:insertevents during the confirmation. VTE emits them with the inserted text. The check is whether their concatenation, at the caret, equals the paste exactly once, with no other insert interleaved. Measure whether VTE emits them for pasted text, at what grain, and whether any are lost under twice the gate's load. - Library rule: OpenAI's crate graph only.
- Spawned by Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 (M4 T7, declared limit). Parent N/A; blocked-by N/A.
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
- Independence 4b: cua's own Linux native engine (replace sky_linux), after #117's macOS engine #171 spec, M4 T7 row and its Decision Log entries (the scrolled rule, fix 3 and fix 4); evidence
m4/focus-timer/.
Activity