Skip to content

fix(pty): match the echo shapes a real tty actually produces - #16542

Merged
nwparker merged 1 commit into
mainfrom
nwparker/fix-reply-echo-projections
Aug 26, 2026
Merged

nwparker merged 1 commit into
mainfrom
nwparker/fix-reply-echo-projections

Conversation

@nwparker

@nwparker nwparker commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​333 $\color{#cf222e}{\Huge{\mathbf{−}}}$​2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​331
Prod 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​76 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​65

The one-liner

When a program asks Orca's terminal a question, Orca's answer sometimes got typed onto your shell prompt as garbage. We had code to clean that up. It didn't recognise the theme answer, so that one always leaked.

What you'd have seen

You're at a bash prompt, you switch light/dark, and suddenly:

$ 997;1n

You didn't type it. Orca did.

Why that happens at all

Programs ask the terminal questions — "what's your background colour?", "is the theme dark or light?" Normally the program reads the answer and you never see it.

Two ways it ends up on your prompt instead:

  1. The program gave up before Orca replied. (fish listens for the theme answer for about 1 millisecond while drawing your prompt. Orca's reply crosses two process boundaries to get there.)
  2. A TUI exited without unsubscribing, so it's still marked as "wants theme updates" — and the next time you flip the theme, Orca sends the update to your shell.

Orca already had a cleanup step: remember what we sent, watch for it coming back, delete it before you see it.

The bug

To delete the echo, Orca must predict exactly what the echoed text looks like — the terminal rewrites it on the way back. Both predictions were written from the spec rather than from watching a real terminal.

The one users hit: the readline prediction only handled colour answers (ESC ]). Theme answers are a different shape (ESC [ ?), so there was no prediction for them at all — the theme answer was never cleaned up at a bash prompt, ever.

The other one: the cooked-mode prediction only caret-encoded ESC, but a terminal caret-encodes every control byte, so a trailing bell should be ^G. The old prediction contained a raw bell — a string no terminal produces.

Why nobody caught it: the existing test built the echo using the same wrong assumption as the code. Test and bug agreed, so it passed.

Honest scoping — please read

These two are not equally important, and I don't want to oversell:

Fix Reachable today?
Theme answer at a readline prompt Yes. This is the real user-facing fix.
Bell-terminated colour answer, cooked No. Hardening only.

The second one is hardening because every colour answer Orca produces today ends with ST, not a bell (terminal-osc-color-reply.ts:112, and xterm's own reply path) — and the ST shape already matched. A bell-terminated answer can only arrive from an older or third-party terminal on the mixed-version path.

An earlier revision of this PR claimed both halves fixed live leaks. That was wrong and is corrected here.

How it was found

Ran a real terminal (node-pty + real bash), sent it each answer, recorded the exact bytes that came back — at a normal prompt and at a read prompt. Then made the predictions match the recording.

Every echo string in the new test is a transcript, not a guess.

Also re-ran across bash, zsh, and sh: cooked-mode echo is byte-identical in all three (it's the kernel, not the shell), and stty -echoctl gives the verbatim form the third prediction already covers.

Before / after

                          before      after
DSR 997 / readline         NONE ->  COMPLETE   <- the real fix
DSR 996 / readline         NONE ->  COMPLETE
OSC 11  / cooked (BEL)     NONE ->  COMPLETE   <- hardening
OSC 11  / cooked (ST)  COMPLETE     COMPLETE   <- what we actually emit
OSC 11  / readline     COMPLETE     COMPLETE
DSR 997 / cooked       COMPLETE     COMPLETE

Why this doesn't regress the thing the gate was protecting

The OSC-only restriction was deliberate (#13160 review), and worth explaining since I'm removing it.

replaceAll('\x1b]', …) on a CSI reply is a no-op — it produced a prediction still starting with ESC. An ESC-initial prediction is dangerous: a read ending on a bare ESC looks like the start of it, so it gets held for 500ms, stealing that ESC from the query parser and potentially losing a query.

The replacement produces \x07 + residue — BEL-initial, so the hazard doesn't apply. The invariant is now asserted directly for every shape (holdPartial iff the needle doesn't start with ESC), which nothing did before.

Blast radius

  • The theme answer's cooked prediction is byte-identical before and after (it contains no control but ESC)
  • The colour answer's cooked prediction changed only its trailing byte, from a shape no tty emits to the one they all emit — it cannot un-match anything
  • The new readline prediction is purely additive

Known gap, not addressed here

zsh's line editor doesn't rewrite the sequence — it redraws the line with cursor motion, so no prediction matches it. Confirmed on a live pty. This was equally true before this PR; readline coverage is bash/sh.

Testing

  • New pty-startup-reply-echo-shapes.test.ts — 35 tests, all from the live-pty transcript
  • Verified the tests fail without the fix: 10 of 35 fail on the old code
  • 13,457 tests pass across src/shared, src/main/daemon, src/relay, src/main/providers, src/renderer/.../terminal-pane
  • Registered in the terminal-input.cooked-reply-queue reliability gate with a fresh evidence run; manifest check passes
  • Typecheck and lint clean

Follow-ups, deliberately not bundled

  • zsh line-editor echo shape has no prediction
  • The 256KB search budget and 64-echo cap are two further real ways cleanup can miss

Cross-checked against other terminal implementations

The cooked-mode rule (^ + code+0x40, DEL → ^?) is confirmed by four independent implementations, including the BSD vis(3) ancestor of the notation. No dissent found.

Two hardening notes came out of that check and are now in the diff:

  • TAB/LF/CR are exempt — the kernel passes those through literally, so caret-encoding them would over-predict. No reply grammar carries one today, so this is a guard, not a fix.
  • DEL → ^?, per the same convention.

Both are pinned by a table test.

The readline rule is only modelled by one other project, and our version is the more accurate of the two. Theirs swallows a fixed 3 bytes after ESC; ours swallows 2 for OSC and 3 for CSI. They agree exactly on the CSI case and differ by one byte on OSC — ours is right, because ESC [ is a bound prefix in readline's keymap (arrow keys) while ESC ] is not, so readline dings one byte earlier.

That difference is invisible in their product because they only detect the echo; it would be visible in ours because we remove it — using their constant would leave a stray 1 on the prompt.

Everyone else sidesteps the problem entirely: predictive-echo implementations give up on control bytes rather than model them, and terminal test suites set stty raw -echo so the echo never happens. So there's no second reference implementation to check the shipped behaviour against — which is the main reason the tests here are a live transcript rather than a spec reading.

@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated PTY reply echo modeling to caret-encode all C0 control characters and DEL. Added readline projections for OSC and private DSR replies. Added live PTY fixtures and tests for POSIX echo forms, ConPTY behavior, Windows WSL suppression, and query-reply suppression. Added the tests to reliability-gate and shell-contract test commands.

Merge Risk: 🔵 Low · up to 95a97

The PR improves terminal echo cleanup but still accepts malformed private-DSR parameters that could suppress unintended input in a bounded edge case; it is mergeable with explicit owner awareness and a follow-up validation fix.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description gives a detailed explanation of the problem, implementation, scope, testing, and known gaps. However, it does not provide the required Linked Issue entry, the required Visual Proof sec… Add the required Linked Issue reference after "Fixes #". Add the Visual Proof section and provide before/after attachments, or write "N/A" with a brief reason if there is no visual or interaction change. Complete the required Testing, AI Di…
Docstring Coverage ⚠️ Warning Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 5 files. (1 skipped: 1… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the primary change: aligning PTY echo suppression with real terminal echo shapes.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description gives a detailed explanation of the problem, implementation, scope, testing, and known gaps. However, it does not provide the required Linked Issue entry, the required Visual Proof section with N/A or attachments, or the template checklist confirmations.

Resolution

Add the required Linked Issue reference after "Fixes #". Add the Visual Proof section and provide before/after attachments, or write "N/A" with a brief reason if there is no visual or interaction change. Complete the required Testing, AI Disclosure, Agent skill upstream boundary, Notes, and Checklist sections as applicable, including explicit confirmations or explanations for unchecked items.

Full details: Docstring Coverage

Explanation

Docstring coverage is 60.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 5 functions across 5 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nwparker
nwparker force-pushed the nwparker/fix-reply-echo-projections branch 2 times, most recently from a1732d1 to f6f15c4 Compare August 26, 2026 05:05
Reply echo suppression modelled two echo shapes from the spec rather than from
a tty. Captured under node-pty against real bash, at a readline prompt and
under `read`:

  - Readline mangles CSI replies, not just OSC: `ESC [ ?` becomes BEL and the
    residue echoes. The projection was gated on an OSC introducer, so a private
    DSR echo was never matched at a readline prompt. This is the reachable one:
    a mode-2031 theme push (`CSI ?997;1n`) left latched by an exited TUI paints
    `997;1n` on a bash prompt (#9993's scenario).
  - ECHOCTL carets EVERY control, not just ESC. A BEL-terminated OSC reply
    echoes as `^G`, but the needle kept a literal BEL — a string no tty
    produces. Hardening only: every in-tree OSC reply is ST-terminated
    (terminal-osc-color-reply.ts:112, xterm's own reply), so the changed byte
    is unreachable except from a foreign or older emulator.

Why this is not the CSI projection #13160 review dropped: that one was the
identity (`replaceAll('\x1b]', …)` is a no-op on a CSI reply), so it was
ESC-led and 500ms-held bare-ESC tails away from the query parser. This one is
BEL-led. The rule is now asserted for every shape rather than implied by the
gate: holdPartial iff the needle does not start with ESC.

The readline branch is keyed on the private-DSR grammar with a non-empty
parameter list, plus a floor on needle length. The containment grammar admits
`CSI ? n`, and `answerLiveQueryReply` takes client-supplied bytes on the relay
path, so a peer could otherwise arm a two-byte `BEL n` needle and delete the
first bell-then-`n` in ordinary output. #61c65151129 proved this system can eat
real output when a needle outlives its budget; a length floor is cheap.

Live coverage: pty-reply-echo-shapes.node-pty.test.ts writes a reply to a real
bash master and feeds back what it echoes, so a shell or libc change fails the
suite instead of silently disarming suppression. Registered in the
shell-contracts lane. The transcript tests and the caretEcho helpers that
encoded the same ESC-only assumption are corrected alongside.

Suppression is display-only. This does not change what reaches the child's
stdin — the reply is written to the master either way, in call order.
@nwparker
nwparker force-pushed the nwparker/fix-reply-echo-projections branch from f6f15c4 to 95a9779 Compare August 26, 2026 06:07
@nwparker

Copy link
Copy Markdown
Contributor Author

Heads-up: #16123 and this PR are rewriting the same function

Flagging before either merges, because whichever lands second will silently undo the other.

Both change replyEchoProjections in src/shared/pty-startup-reply-echo-shapes.ts:

  • fix(terminal): contain plain-shell startup color replies #16123 adds a source: 'pty' | 'line-editor' discriminator to EchoProjection, threads it through PtyStartupReplyEchoMatch, adds two zsh ZLE shapes, and adds a preferLongestAtSameOffset argument to locateEcho.
  • This PR corrects the two existing shapes: the kernel needle now caret-encodes every control rather than only ESC, and the readline needle is also produced for private DSR replies rather than OSC only.

The two are complementary in intent and conflicting in text. Specifically:

Suggested order: land this one first (it is a narrow correction to two existing shapes, plus tests), then rebase #16123 on top. #16123's restructuring absorbs a corrected pair cleanly; the reverse means re-deriving the corrections inside a changed shape of the function.

One thing worth carrying across either way: #16123's zsh shapes are BEL-initial, same as the readline needle here. This PR adds a minimum-length floor and requires a non-empty DSR parameter list, because answerLiveQueryReply takes client-supplied bytes on the relay path and the containment grammar admits CSI ? n — which would otherwise arm a two-byte BEL n needle. Worth applying the same floor to the ZLE shapes if the OSC payload can be short.

Context for why this matters more than usual here: 61c65151129 (never landed) diagnosed a case where a needle outliving its budget silently deleted spans of ordinary output. Needle breadth wasn't the cause there, but it is the same blast radius.

cc @brennanb2025

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 5fa5792f-e42e-448b-8d3e-ae65cb269b49

📥 Commits

Reviewing files that changed from the base of the PR and between f6f15c4046b36e06cca961568e566229122652a8 and 95a9779.

📒 Files selected for processing (6)
  • .github/workflows/pr.yml
  • src/renderer/src/components/terminal-pane/pty-input-write-queue.test.ts
  • src/shared/pty-reply-echo-shapes.node-pty.test.ts
  • src/shared/pty-startup-ingress-live-query-reply.test.ts
  • src/shared/pty-startup-reply-echo-shapes.test.ts
  • src/shared/pty-startup-reply-echo-shapes.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.

Comment on lines +24 to +25
/* oxlint-disable-next-line no-control-regex -- terminal reply grammars are control sequences */
const PRIVATE_DSR_RE = new RegExp('^\\u001b\\[\\?[0-9][0-9;]*n$')

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Reject empty private-DSR parameter components. PRIVATE_DSR_RE accepts \x1b[?9;n and \x1b[?9;;1n, which can arm suppression from malformed client input; require digits after every ; and add regression cases.

Proposed fix
-const PRIVATE_DSR_RE = new RegExp('^\\u001b\\[\\?[0-9][0-9;]*n$')
+const PRIVATE_DSR_RE = new RegExp('^\\u001b\\[\\?[0-9]+(?:;[0-9]+)*n$')
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
/* oxlint-disable-next-line no-control-regex -- terminal reply grammars are control sequences */
const PRIVATE_DSR_RE = new RegExp('^\\u001b\\[\\?[0-9][0-9;]*n$')
/* oxlint-disable-next-line no-control-regex -- terminal reply grammars are control sequences */
const PRIVATE_DSR_RE = new RegExp('^\\u001b\\[\\?[0-9]+(?:;[0-9]+)*n$')

@nwparker
nwparker merged commit d1a11b3 into main Aug 26, 2026
48 checks passed
dallascrilley pushed a commit to dallascrilley/orca that referenced this pull request Aug 27, 2026
…i#16542)

Reply echo suppression modelled two echo shapes from the spec rather than from
a tty. Captured under node-pty against real bash, at a readline prompt and
under `read`:

  - Readline mangles CSI replies, not just OSC: `ESC [ ?` becomes BEL and the
    residue echoes. The projection was gated on an OSC introducer, so a private
    DSR echo was never matched at a readline prompt. This is the reachable one:
    a mode-2031 theme push (`CSI ?997;1n`) left latched by an exited TUI paints
    `997;1n` on a bash prompt (stablyai#9993's scenario).
  - ECHOCTL carets EVERY control, not just ESC. A BEL-terminated OSC reply
    echoes as `^G`, but the needle kept a literal BEL — a string no tty
    produces. Hardening only: every in-tree OSC reply is ST-terminated
    (terminal-osc-color-reply.ts:112, xterm's own reply), so the changed byte
    is unreachable except from a foreign or older emulator.

Why this is not the CSI projection stablyai#13160 review dropped: that one was the
identity (`replaceAll('\x1b]', …)` is a no-op on a CSI reply), so it was
ESC-led and 500ms-held bare-ESC tails away from the query parser. This one is
BEL-led. The rule is now asserted for every shape rather than implied by the
gate: holdPartial iff the needle does not start with ESC.

The readline branch is keyed on the private-DSR grammar with a non-empty
parameter list, plus a floor on needle length. The containment grammar admits
`CSI ? n`, and `answerLiveQueryReply` takes client-supplied bytes on the relay
path, so a peer could otherwise arm a two-byte `BEL n` needle and delete the
first bell-then-`n` in ordinary output. #61c65151129 proved this system can eat
real output when a needle outlives its budget; a length floor is cheap.

Live coverage: pty-reply-echo-shapes.node-pty.test.ts writes a reply to a real
bash master and feeds back what it echoes, so a shell or libc change fails the
suite instead of silently disarming suppression. Registered in the
shell-contracts lane. The transcript tests and the caretEcho helpers that
encoded the same ESC-only assumption are corrected alongside.

Suppression is display-only. This does not change what reaches the child's
stdin — the reply is written to the master either way, in call order.
rahuljangirworks pushed a commit to rahuljangirworks/veer that referenced this pull request Aug 27, 2026
…i#16542)

Reply echo suppression modelled two echo shapes from the spec rather than from
a tty. Captured under node-pty against real bash, at a readline prompt and
under `read`:

  - Readline mangles CSI replies, not just OSC: `ESC [ ?` becomes BEL and the
    residue echoes. The projection was gated on an OSC introducer, so a private
    DSR echo was never matched at a readline prompt. This is the reachable one:
    a mode-2031 theme push (`CSI ?997;1n`) left latched by an exited TUI paints
    `997;1n` on a bash prompt (stablyai#9993's scenario).
  - ECHOCTL carets EVERY control, not just ESC. A BEL-terminated OSC reply
    echoes as `^G`, but the needle kept a literal BEL — a string no tty
    produces. Hardening only: every in-tree OSC reply is ST-terminated
    (terminal-osc-color-reply.ts:112, xterm's own reply), so the changed byte
    is unreachable except from a foreign or older emulator.

Why this is not the CSI projection stablyai#13160 review dropped: that one was the
identity (`replaceAll('\x1b]', …)` is a no-op on a CSI reply), so it was
ESC-led and 500ms-held bare-ESC tails away from the query parser. This one is
BEL-led. The rule is now asserted for every shape rather than implied by the
gate: holdPartial iff the needle does not start with ESC.

The readline branch is keyed on the private-DSR grammar with a non-empty
parameter list, plus a floor on needle length. The containment grammar admits
`CSI ? n`, and `answerLiveQueryReply` takes client-supplied bytes on the relay
path, so a peer could otherwise arm a two-byte `BEL n` needle and delete the
first bell-then-`n` in ordinary output. #61c65151129 proved this system can eat
real output when a needle outlives its budget; a length floor is cheap.

Live coverage: pty-reply-echo-shapes.node-pty.test.ts writes a reply to a real
bash master and feeds back what it echoes, so a shell or libc change fails the
suite instead of silently disarming suppression. Registered in the
shell-contracts lane. The transcript tests and the caretEcho helpers that
encoded the same ESC-only assumption are corrected alongside.

Suppression is display-only. This does not change what reaches the child's
stdin — the reply is written to the master either way, in call order.
paidaxingyo666 pushed a commit to paidaxingyo666/Manta that referenced this pull request Aug 28, 2026
…i#16542)

Reply echo suppression modelled two echo shapes from the spec rather than from
a tty. Captured under node-pty against real bash, at a readline prompt and
under `read`:

  - Readline mangles CSI replies, not just OSC: `ESC [ ?` becomes BEL and the
    residue echoes. The projection was gated on an OSC introducer, so a private
    DSR echo was never matched at a readline prompt. This is the reachable one:
    a mode-2031 theme push (`CSI ?997;1n`) left latched by an exited TUI paints
    `997;1n` on a bash prompt (stablyai#9993's scenario).
  - ECHOCTL carets EVERY control, not just ESC. A BEL-terminated OSC reply
    echoes as `^G`, but the needle kept a literal BEL — a string no tty
    produces. Hardening only: every in-tree OSC reply is ST-terminated
    (terminal-osc-color-reply.ts:112, xterm's own reply), so the changed byte
    is unreachable except from a foreign or older emulator.

Why this is not the CSI projection stablyai#13160 review dropped: that one was the
identity (`replaceAll('\x1b]', …)` is a no-op on a CSI reply), so it was
ESC-led and 500ms-held bare-ESC tails away from the query parser. This one is
BEL-led. The rule is now asserted for every shape rather than implied by the
gate: holdPartial iff the needle does not start with ESC.

The readline branch is keyed on the private-DSR grammar with a non-empty
parameter list, plus a floor on needle length. The containment grammar admits
`CSI ? n`, and `answerLiveQueryReply` takes client-supplied bytes on the relay
path, so a peer could otherwise arm a two-byte `BEL n` needle and delete the
first bell-then-`n` in ordinary output. #61c65151129 proved this system can eat
real output when a needle outlives its budget; a length floor is cheap.

Live coverage: pty-reply-echo-shapes.node-pty.test.ts writes a reply to a real
bash master and feeds back what it echoes, so a shell or libc change fails the
suite instead of silently disarming suppression. Registered in the
shell-contracts lane. The transcript tests and the caretEcho helpers that
encoded the same ESC-only assumption are corrected alongside.

Suppression is display-only. This does not change what reaches the child's
stdin — the reply is written to the master either way, in call order.

(cherry picked from commit d1a11b3)
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
…i#16542)

Reply echo suppression modelled two echo shapes from the spec rather than from
a tty. Captured under node-pty against real bash, at a readline prompt and
under `read`:

  - Readline mangles CSI replies, not just OSC: `ESC [ ?` becomes BEL and the
    residue echoes. The projection was gated on an OSC introducer, so a private
    DSR echo was never matched at a readline prompt. This is the reachable one:
    a mode-2031 theme push (`CSI ?997;1n`) left latched by an exited TUI paints
    `997;1n` on a bash prompt (stablyai#9993's scenario).
  - ECHOCTL carets EVERY control, not just ESC. A BEL-terminated OSC reply
    echoes as `^G`, but the needle kept a literal BEL — a string no tty
    produces. Hardening only: every in-tree OSC reply is ST-terminated
    (terminal-osc-color-reply.ts:112, xterm's own reply), so the changed byte
    is unreachable except from a foreign or older emulator.

Why this is not the CSI projection stablyai#13160 review dropped: that one was the
identity (`replaceAll('\x1b]', …)` is a no-op on a CSI reply), so it was
ESC-led and 500ms-held bare-ESC tails away from the query parser. This one is
BEL-led. The rule is now asserted for every shape rather than implied by the
gate: holdPartial iff the needle does not start with ESC.

The readline branch is keyed on the private-DSR grammar with a non-empty
parameter list, plus a floor on needle length. The containment grammar admits
`CSI ? n`, and `answerLiveQueryReply` takes client-supplied bytes on the relay
path, so a peer could otherwise arm a two-byte `BEL n` needle and delete the
first bell-then-`n` in ordinary output. #61c65151129 proved this system can eat
real output when a needle outlives its budget; a length floor is cheap.

Live coverage: pty-reply-echo-shapes.node-pty.test.ts writes a reply to a real
bash master and feeds back what it echoes, so a shell or libc change fails the
suite instead of silently disarming suppression. Registered in the
shell-contracts lane. The transcript tests and the caretEcho helpers that
encoded the same ESC-only assumption are corrected alongside.

Suppression is display-only. This does not change what reaches the child's
stdin — the reply is written to the master either way, in call order.
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.

1 participant