Real app, Chromium on Linux x86_64 and macOS 26 arm64, light theme, 1440×1080 viewport, fresh synthetic project/thread via Replay (dev), /bin/sh with PS1="$ ".

At each OSC length (4,095; 4,096; 4,097; 524,287; 524,288; 524,289 code units), print HISTORY-SENTINEL, emit an unfinished OSC, reload, then emit TAIL-LEAK + BEL + DONE. Base leaks TAIL-LEAK at every size; head suppresses it and retains the sentinel at every size.

LINUX

### Scenario: Unfinished terminal strings preserve history and suppress continuation after reload

**Proven: the scenario fails on base [2ee7a4f337](https://github.com/pingdotgg/t3code/commit/2ee7a4f33775270917e49708facd5a9bcc77c074) and passes on head [717ee6225a](https://github.com/pingdotgg/t3code/commit/717ee6225a667c9eda12c07ce08e774c65c1c06a).**

|  | Base [2ee7a4f337](https://github.com/pingdotgg/t3code/commit/2ee7a4f33775270917e49708facd5a9bcc77c074) | Head [717ee6225a](https://github.com/pingdotgg/t3code/commit/717ee6225a667c9eda12c07ce08e774c65c1c06a) |
| --- | --- | --- |
| Result | ❌ failed<br>ASSERTION_FAILED: expected [{"size":4095,"history":true,"leak":true},{"size":4096,"history":true,"leak":true},{"size":4097,"history":true,"leak":true},{"size":524287,"history":true,"leak":true},{"size":524288,"history":true,"leak":true},{"size":524289,"history":true,"leak":true}] to equal [{"size":4095,"history":true,"leak":false},{"size":4096,"history":true,"leak":false},{"size":4097,"history":true,"leak":false},{"size":524287,"history":true,"leak":false},{"size":524288,"history":true,"leak":false},{"size":524289,"history":true,"leak":false}] | ✅ passed |
| osc 4095 reattached | ![Base 2ee7a4f337: osc 4095 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/4269c8f1c13a05cc/001-osc-4095-reattached.png) | ![Head 717ee6225a: osc 4095 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/be1a8cfaa78aeb69/001-osc-4095-reattached.png) |
| osc 4096 reattached | ![Base 2ee7a4f337: osc 4096 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/173c9ec38b4980f3/002-osc-4096-reattached.png) | ![Head 717ee6225a: osc 4096 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/b4f8c3d6ff72cb2b/002-osc-4096-reattached.png) |
| osc 4097 reattached | ![Base 2ee7a4f337: osc 4097 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/116fcf5f512feffd/003-osc-4097-reattached.png) | ![Head 717ee6225a: osc 4097 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/ee1dd5e3cb3e2e3e/003-osc-4097-reattached.png) |
| osc 524287 reattached | ![Base 2ee7a4f337: osc 524287 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e4b5d8c332f73993/004-osc-524287-reattached.png) | ![Head 717ee6225a: osc 524287 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/109b78aa96c2d7d5/004-osc-524287-reattached.png) |
| osc 524288 reattached | ![Base 2ee7a4f337: osc 524288 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/c335d75058d1f0fb/005-osc-524288-reattached.png) | ![Head 717ee6225a: osc 524288 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/332c76e42b0330d5/005-osc-524288-reattached.png) |
| osc 524289 reattached | ![Base 2ee7a4f337: osc 524289 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/fe0cc4b0818f1fcd/006-osc-524289-reattached.png) | ![Head 717ee6225a: osc 524289 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/71990f72ebc20487/006-osc-524289-reattached.png) |
| failure | ![Base 2ee7a4f337: failure](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a2a968a765005e12/007-failure.png) |  |

MAC

### Scenario: Unfinished terminal strings preserve history and suppress continuation after reload

**Proven: the scenario fails on base [2ee7a4f337](https://github.com/pingdotgg/t3code/commit/2ee7a4f33775270917e49708facd5a9bcc77c074) and passes on head [717ee6225a](https://github.com/pingdotgg/t3code/commit/717ee6225a667c9eda12c07ce08e774c65c1c06a).**

|  | Base [2ee7a4f337](https://github.com/pingdotgg/t3code/commit/2ee7a4f33775270917e49708facd5a9bcc77c074) | Head [717ee6225a](https://github.com/pingdotgg/t3code/commit/717ee6225a667c9eda12c07ce08e774c65c1c06a) |
| --- | --- | --- |
| Result | ❌ failed<br>ASSERTION_FAILED: expected [{"size":4095,"history":true,"leak":true},{"size":4096,"history":true,"leak":true},{"size":4097,"history":true,"leak":true},{"size":524287,"history":true,"leak":true},{"size":524288,"history":true,"leak":true},{"size":524289,"history":true,"leak":true}] to equal [{"size":4095,"history":true,"leak":false},{"size":4096,"history":true,"leak":false},{"size":4097,"history":true,"leak":false},{"size":524287,"history":true,"leak":false},{"size":524288,"history":true,"leak":false},{"size":524289,"history":true,"leak":false}] | ✅ passed |
| osc 4095 reattached | ![Base 2ee7a4f337: osc 4095 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/bf3d9ec503e42ae5/001-osc-4095-reattached.png) | ![Head 717ee6225a: osc 4095 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/51f819cc0ddddd54/001-osc-4095-reattached.png) |
| osc 4096 reattached | ![Base 2ee7a4f337: osc 4096 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e76731778aeca0a2/002-osc-4096-reattached.png) | ![Head 717ee6225a: osc 4096 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/008b5deb226e4294/002-osc-4096-reattached.png) |
| osc 4097 reattached | ![Base 2ee7a4f337: osc 4097 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/420d7fed02fd37e3/003-osc-4097-reattached.png) | ![Head 717ee6225a: osc 4097 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/48a85db8346d9867/003-osc-4097-reattached.png) |
| osc 524287 reattached | ![Base 2ee7a4f337: osc 524287 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e7c93afb35f50970/004-osc-524287-reattached.png) | ![Head 717ee6225a: osc 524287 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/e689a45a65042933/004-osc-524287-reattached.png) |
| osc 524288 reattached | ![Base 2ee7a4f337: osc 524288 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d758450a9d090713/005-osc-524288-reattached.png) | ![Head 717ee6225a: osc 524288 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a258deffc56261b8/005-osc-524288-reattached.png) |
| osc 524289 reattached | ![Base 2ee7a4f337: osc 524289 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/d97b51875c741557/006-osc-524289-reattached.png) | ![Head 717ee6225a: osc 524289 reattached](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/a0db27d4172694eb/006-osc-524289-reattached.png) |
| failure | ![Base 2ee7a4f337: failure](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/bacd988501f46244/007-failure.png) |  |

