# Real-app reproduction

Run each commit from its own checkout with dependencies installed and T3CODE_DEV_SEED=0 vp run dev. Use fresh server databases; do not copy user state.

Use the same synthetic repository on branch pr43419-emoji-tail, one commit ahead of main, published with no unpushed changes. Its change adds a greet helper to greet.js. The seed driver takes the checkout and repository as arguments, writes an ignored emit.py, adds the project, and starts the Codex gpt-6-luna thread. emit.py emits U+1F600 followed by 1,999 b characters without a newline.

Configure Grok with grok-wrapper.py as its binary path, XAI_API_KEY from the environment's provider setup, and PROOF_CAPTURE pointing to a new output filename for each side. The wrapper advertises the xai.api_key and cached_token authentication methods and forwards authentication to the real Grok CLI. It does not change session/prompt. Confirm a plain Grok 4.3 thread replies normally, then choose Grok 4.3 as the source control writer model.

Open the emoji tail thread directly by its link. In the web client at 1280x800, light appearance, collapse the sidebar, open thread details, and click Create MR. The environment label alone was hidden for privacy in the recordings and screenshots.

Base: generated prompt starts its cut output with [truncated] followed by U+DE00. Grok replies -32602, Invalid params, lone leading surrogate in hex escape. The app displays the text generation failure.

Head: generated prompt starts its cut output with [truncated] followed by b, with no lone surrogate. Real Grok returns the title add greet helper and a JSON body, and the app advances to Creating merge request. It then fails in GitLab CLI. No MR was created, confirmed through a read-only MR list query. Successful MR creation is unverified.

A head-only PROOF_STOP_BEFORE_FORGE=1 attempt held the final session/prompt response to avoid a forge write. It did not stop T3: an earlier xAI completion notification let the app advance. The capture records this limitation. Prompt and generated content were not substituted or repaired.

The source-command-output.json file contains the real stored command input/output and exit code on each side. The protocol files contain the real outgoing prompts and incoming error or generated content; thought chunks are omitted. Both final stills were checked against a second identical screenshot taken over 500 ms later. Both recordings were visually inspected.
