# Preview annotation question-answer proof

Both runs use Linux Electron 44.10.1 under headless-desktop, a 1440×960 window,
light theme, isolated T3 homes with synthetic data, and Replay (dev), model question.
Base: [e94db17ead](https://github.com/pingdotgg/t3code/commit/e94db17ead0e52813b38c0b67537843b44634d44).
Head: [3922102182](https://github.com/pingdotgg/t3code/commit/3922102182552f8872d1aed7d952f7de630c2023).

## Fixture and observation

Run setup.py with the checkout path and the Node executable path. It creates the
isolated `.t3/desktop-proof` settings with real providers disabled and Replay configured.
It removes the enum from the recorded ACP elicitation, exactly as triage did, so the
question accepts free text. It also makes the replay agent echo the exact content
of the elicitation response it receives into its assistant message. It does not
change the answer, annotation, composer, serialization, transport, or persistence code.
The same instrumentation is applied to both commits.

The other temporary changes set a synthetic environment label, disable the desktop
supervisor's pattern-based cleanup, and add --no-sandbox --disable-gpu to Electron.
None is committed.

## Preparation

Install each checkout with `vp i`; install Electron with
`node node_modules/electron/install.js` from apps/desktop. Run `setup.py CHECKOUT NODE`.
Start the desktop from the checkout using `headless-desktop env T3CODE_DEV_SEED=0
T3CODE_DESKTOP_REMOTE_DEBUGGING_PORT=PORT T3CODE_AUTO_BOOTSTRAP_PROJECT_FROM_CWD=0
XDG_CONFIG_HOME=CHECKOUT/.t3/config XDG_DATA_HOME=CHECKOUT/.t3/data
vp run dev:desktop --home-dir CHECKOUT/.t3/desktop-proof`.
Use a separate debug port and profile for each side.

Create an empty synthetic Git project and register it with the app's CLI:
`node apps/server/src/bin.ts project add PROJECT --title 'Annotation demo' --base-dir .t3/desktop-proof`.
Start its question with `node apps/server/src/bin.ts thread start PROJECT
'Please ask for my design notes.' --title 'Preview annotation answer' --provider devReplay
--model question --json --base-dir .t3/desktop-proof`.
Finish desktop onboarding, then open that thread by its environment/thread link.

Run page.cjs to serve the synthetic Product preview on 127.0.0.1:18463.
Collapse the sidebar, open the right panel, choose Browser, and enter that URL.
Connect a named agent-browser session to the desktop debug port. Main app is tab t1;
the preview guest is tab t2. Resize the X11 app window to 1440×960 at 0,0.

## Recorded interaction

Run drive.py with SESSION, OUT_DIR, DISPLAY and XAUTHORITY for that instance.
It types 'Here are my notes: ', clicks Annotate, selects section#features, enters
the long FIRST NOTE comment, expands the annotation editor, and presses Enter.
It captures the annotation chip inside the question answer, clicks Submit, waits
for the replay's completion, and captures the received answer.

Run inspect-answer.py with the same environment to scroll the response heading
into view and take the final readable still. During both scripts, record the X11
window with ffmpeg x11grab at 15 fps. The delivered videos concatenate submission
and a final inspection segment from that same running app.

Stills are accepted only after two pixel-identical screenshots 500 ms apart.
Pre-submit stills crop the top 200 pixels containing the continuously animated
pending-status icon; final received-answer stills show the full 1440×960 window.

## Observed result

Before: only the truncated annotation label and a t3-context link reach the agent.
After: the complete 250-character comment, selected section, #features selector,
HTML and styles reach the agent in a t3_context envelope.
