Real app: Chromium 156 on Linux x86_64 and macOS 26 arm64; light theme, 1440×1080; fresh synthetic projects and Replay (dev) threads; /bin/sh, plain prompt, echo disabled.

Run the four reported seq commands five times per commit; DONE has a unique trial suffix to avoid stale-output detection. Reload during unfinished OSC at 4,095/4,096/4,097 and 524,287/524,288/524,289 code units, then send TAIL-LEAK + BEL + DONE. Also reload after the two-million-line OSC terminates.

Base leaks the unfinished continuation at all six sizes and loses earlier history after the large OSC terminates. Head suppresses the continuation and preserves history in every case on both operating systems.

| Capture | Before [2ee7a4f337](https://github.com/pingdotgg/t3code/commit/2ee7a4f33775270917e49708facd5a9bcc77c074) | After [717ee6225a](https://github.com/pingdotgg/t3code/commit/717ee6225a667c9eda12c07ce08e774c65c1c06a) |
| --- | --- | --- |
| linux: unfinished OSC 524,288, after reload | ![Before: sentinel retained but TAIL-LEAK leaks](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/c335d75058d1f0fb/005-osc-524288-reattached.png) | ![After: sentinel retained and no continuation leak](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/332c76e42b0330d5/005-osc-524288-reattached.png) |
| linux: completed large OSC, after reload | ![Before: earlier history sentinel is missing](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/62d3dfbbf9492dab/002-completed-osc-after-reattach.png) | ![After: earlier history sentinel survives](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/1c209b5f949ed072/002-completed-osc-after-reattach.png) |
| mac: unfinished OSC 524,288, after reload | ![Before: sentinel retained but TAIL-LEAK leaks](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d758450a9d090713/005-osc-524288-reattached.png) | ![After: sentinel retained and no continuation leak](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a258deffc56261b8/005-osc-524288-reattached.png) |
| mac: completed large OSC, after reload | ![Before: earlier history sentinel is missing](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/0cd1126840e83969/002-completed-osc-after-reattach.png) | ![After: earlier history sentinel survives](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b8222765099d8bf9/002-completed-osc-after-reattach.png) |

| Recording | Before [2ee7a4f337](https://github.com/pingdotgg/t3code/commit/2ee7a4f33775270917e49708facd5a9bcc77c074) | After [717ee6225a](https://github.com/pingdotgg/t3code/commit/717ee6225a667c9eda12c07ce08e774c65c1c06a) |
| --- | --- | --- |
| linux OSC boundary reloads (final cases) | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a62561bfbeebee83/linux-base-boundary-final.mp4) | [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/acd9872b5e9d65f2/linux-head-boundary-final.mp4) |
| linux completed OSC reattachment | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/5dd0c1dc69d4e743/linux-base-completed.mp4) | [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/bcd3c675fc7267f2/linux-head-completed-safe.mp4) |
| linux CSI sample trial | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/cd3eab61f6e44649/linux-base-csi-final.mp4) | [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2b4e4cf72fe862e8/linux-head-csi-final.mp4) |
| linux OSC sample trial | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/c2a9d07afc727db6/linux-base-osc-final.mp4) | [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f5b954cd1d6ed215/linux-head-osc-final.mp4) |
| mac OSC boundary reloads (final cases) | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/944bd176fe272783/mac-base-boundary-final.mp4) | [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/7133d349183dd4f1/mac-head-boundary-final.mp4) |
| mac completed OSC reattachment | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/ffd7b34d36aceda9/mac-base-completed.mp4) | [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/61e2b8d0f24e06dc/mac-head-completed.mp4) |
| mac CSI sample trial | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a722a79cc31c8a0f/mac-base-csi-final.mp4) | [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/1d21a30ba1dc25aa/mac-head-csi-final.mp4) |
| mac OSC sample trial | [Before](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/22f4e9dfbd6029c4/mac-base-osc-final.mp4) | [After](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/584ac746bce607ed/mac-head-osc-final.mp4) |

Timing clips show an uncut interval from one trial and hold its recorded DONE frame for two seconds. Five-run median Enter-dispatch-to-DONE-selection times (automation/polling overhead included; not exact frame timestamps):

| OS | 200k plain | 200k CSI | 2m plain | 2m OSC |
| --- | --- | --- | --- | --- |
| Linux, before → after | 0.534 → 0.680 s | 10.261 → 0.649 s | 2.687 → 3.360 s | 35.216 → 1.699 s |
| macOS, before → after | 0.196 → 0.181 s | 15.135 → 0.281 s | 1.801 → 1.831 s | 22.445 → 1.923 s |

Fresh-process RSS samples, one CSI then one OSC trial, sampled every 100 ms: combined peak Linux 2,039 → 600 MiB; macOS 2,656 → 712 MiB. This measures the entire server and does not establish an asymptotic heap bound. The head uses a 4,096-code-unit snapshot replay threshold and a separate 524,288-code-unit held-sequence cap.

[All six boundary pairs on both operating systems](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b49b38c46b524956/boundary-evidence.md) · [Boundary scenario](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/bf58a33d0bf16d5d/unfinished-terminal-sequence.e2e.ts) · [macOS boundary scenario](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b826e3f6e43d1e9d/macos-unfinished-terminal-sequence.e2e.ts) · [Completed-OSC scenario](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/23b7f9ee718f2f2b/completed-osc-history.e2e.ts) · [Timing/RSS driver](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/6b2a45b095eaba34/terminal-output-timing.e2e.ts) · [All timing observations](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/2ce6c2cdfe52d18b/timing-observations.json) · [RSS observations](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/35cb5dabe9f090fb/memory-observations.json) · [Capture and sanitized transcript archive](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4016698de1660d88/capture-and-transcript-archive.zip)