# Delivered queued message cache restore proof

Environment: Linux web client, Chrome, 1280x800, light appearance, Replay (dev) / question. Each commit ran from its own checkout against a fresh server-created database. No real user data was used.

Base: [784da01b29](https://github.com/pingdotgg/t3code/commit/784da01b2906aca88918c6221cb86fe332ab0f60)
Head: [3632f421bc](https://github.com/pingdotgg/t3code/commit/3632f421bceeff741d526741691a30012f8a2c8e)

1. Start the commit's real server and Vite through `T3CODE_DEV_SEED=0 node scripts/scenarios/start-app.ts web <fresh-home> 127.0.0.1 <free-port>`.
2. Place manual-proof-seed.ts under scripts/, run `node scripts/manual-proof-seed.ts <fresh-home>`, and pair an incognito Browser panel to that server. This seeds a project, a control thread and a Replay question thread through the real CLI/API.
3. Open the question thread by its environment/thread URL. Run `node scripts/manual-proof-seed.ts <fresh-home> send <thread-id>`; it prints `Queued.`.
4. Click `Strict schemas (Recommended)` once. The single-choice answer submits automatically. Verify the queued row disappears and the marker is in a timeline row.
5. Touch `apps/server/src/bin.ts` in that checkout to ask its owned dev watcher to restart the server. Wait for the cancellation message and for the browser cache to persist the delivered item and its cancelled run with non-null startedAt. Cache writes can lag the rendered cancellation; inspect the IndexedDB entry before proceeding.
6. Navigate to /settings. Evaluate manual-proof-browser.js in the Browser panel, then call `seedLegacyVisibility({threadId: '<thread-id>', marker: 'QUEUED-MARKER delivered queued message'})`. This recreates the legacy schemaVersion 5 visibility omission only. The run, item, server data and snapshot sequence are unchanged. The historical older client was not run to generate this cache.
7. Start recording. Open the thread by a page navigation and capture the disk restore. Click the Other thread sidebar row, wait for its reply, click Delivered queued message, press Ctrl+F, and search QUEUED-MARKER. Blur the search input and capture the retained restore/search result. Stop recording.
8. On each side, compare two stills taken at least 500 ms apart and use the stable captures. Inspect every capture and the recordings before upload.

Observed on base: marker absent after both restores, despite find reporting 1/1.
Observed on head: marker visible after both restores; find highlights it.

The two MP4s contain the complete recorded restore/switch/find interaction, with no cuts. Setup happened before recording. The manual Browser-panel pass is the evidence; the scenario runner did not produce a completed comparison verdict.
