# Right-panel resize proof

Both commits were built independently with vp i and vp run build:desktop, then run as the real desktop app on the same Windows Server 2025 Datacenter x64 machine (build 26100), Electron 44.10.1 / Chromium 152.0.7977.169. Native window 1600x900; renderer viewport 1584x892; DPR 1; light theme. No CPU throttling. Tracing and video capture were off during measurement. Only one side ran at a time, after both builds finished.

Base: [2b7b085254](https://github.com/pingdotgg/t3code/commit/2b7b08525433d84288ebf2347aa72253c7f5f883). Head: [d15225b347](https://github.com/pingdotgg/t3code/commit/d15225b347c15c79e971576bd5d5b90ff10a4b5b).

Use fresh .t3/proof-home and .t3/profile folders per checkout. Set T3CODE_DEV_SEED=0, T3CODE_HOME to the checkout's .t3/proof-home, and APPDATA to its .t3/profile. Ensure Electron with node apps/desktop/scripts/ensure-electron-runtime.mjs. Start the real app from apps/desktop with node_modules/electron/dist/electron.exe dist-electron/main.cjs --remote-debugging-port=9222 --no-sandbox on the logged-in desktop.

Run node seed.cjs <checkout> <side>. It creates 72 synthetic TypeScript files with 70 original lines and 20 added lines each, and registers the project through T3's CLI. Copy seed-thread.ts into the checkout's scripts folder and run node scripts/seed-thread.ts <checkout>/.t3/proof-home <project-id-from-seed-output> from the checkout root while its desktop backend runs. This persists an empty thread through authenticated RPC; no provider turn or real user data is used.

Run node driver.cjs <checkout> <fresh-output-directory> <mode>, awaiting each process. First run setup, open-diff, prepare, and uncommitted. These open the thread, hide the sidebar and thread-details card, dismiss the unavailable-provider notice, select the Uncommitted diff, and expand all files. The native window is resized to 1600x900 before measurement. If restarting, resume opens the saved thread directly. Wait for the diff to finish rendering.

Run measure: one unmeasured warm-up, then five measured drags. Each drag has one pointer-down, 80 pointer moves (77 distinct requested widths linearly spaced from 395 to 685 px, followed by 620, 540, 539), one requestAnimationFrame after every move, and pointer-up. CDP Performance.getMetrics supplies style, layout, and script duration deltas. A continuous rAF callback records frame gaps. All five final widths are 539 px.

Run record separately: the same drag is captured with CDP screencast, then Toggle right panel closes and reopens it. behavior.json records the closed state, restored 539 px geometry and retained Uncommitted scope. stable.png is saved only after two screenshots 500 ms apart match byte for byte. encode.py preserves screencast timestamps when producing resize.mp4.

Run control to restore files 6 through 72 to their committed contents and refresh the diff. It retains the same first five changed files (+100 lines). Repeat measure and record. Each side uses its own server-created database.

The raw JSON files are the measurement outputs. summary.json contains their medians and ranges. Scripts and captures are scratch evidence, not committed source changes. The long 120-turn conversation and Windows 11-specific stutter figures were not reproduced; the measured renderer used an empty persisted thread on Windows Server 2025.

Work performed with gpt-6.1-sol through the Codex harness.
