# Mobile layout proof driver

Run each checkout separately with `T3CODE_DEV_SEED=0 vp run dev --host 0.0.0.0` and its own fresh `.t3`. Start Metro from apps/mobile with the staging Connect environment loaded, `REACT_NATIVE_PACKAGER_HOSTNAME=$PROOF_METRO_HOST vp run dev:client --port $PROOF_METRO_PORT`. Install the cached native client with `vp run mobile:install` and use leased agent-device sessions.

The seed script records the synthetic project/thread setup used here; `rpc.mjs` calls the real server. Give both sides the same synthetic worktree path. `inspect.mjs` signs into the staging Clerk account through its real SDK (credentials come only from environment variables). `stage-fixtures.mjs` creates twelve publish-only synthetic environment records through the real staging relay API; its cleanup argument removes them. These records intentionally show publish-only warnings. No UI styles or layout state are patched.

Pixel Tablet: Android API 36, landscape 2560x1600, light theme. Open Worktree layout check, Git controls, More (Commit, files, branches). Pan up until the final Worktree section stops. Change Settings > System > Navigation mode from gesture to 3-button, return and pan up three more times. Record each side with agent-device record start/stop. At the end, base clips the path; head reveals the entire card with spacing.

Open `t3code-dev://connections/new` signed out and pan at x1600 from y1350 to650 three times. Base hides Sign in to T3 Connect beneath the taskbar; head shows it. Open `t3code-dev://connect-onboarding` signed in with the twelve synthetic environments and pan the list to its end three times; base hides Don't show this again and head reveals it.

Galaxy Z Fold 8: Android API36, unfolded landscape2448x1848. Repeat Git overview and pan x2200 fromy1600 toy500 three times in gesture and3-button modes. Capture both states on each commit.

iPhone18Pro: iOS27.2, portrait402x874, light theme. Open the same three routes with the same twelve staging fixtures for Add and Connect. Refresh the real relay discovery service if sign-in's initial discovery has not run. Open the thread using threads/<environmentId>/<threadId>, then Git controls > More. For Add use scroll bottom and five upward swipes x200,y720 to420 (base capture used three additional swipes, both sides reached their resting maximum). Git uses five swipes x200,y730 to450. Connect uses scroll bottom. All three show matching final spacing on base/head.

When iOS native header omits Refresh environments, the equivalent real command used was:
`(()=>{const ex=n=>__r([...__r.getModules()].find(([k,m])=>m.publicModule?.exports?.[n])[0]);ex("runAtomCommand").runAtomCommand(ex("appAtomRegistry").appAtomRegistry,ex("relayEnvironmentDiscovery").relayEnvironmentDiscovery.refresh,undefined);return true})()`

`capture.py SESSION LABEL` waits for two pixel-identical screenshots separated by at least500ms. Crop to affected content while retaining system bottom: TabletGit(2024,0,2560,1600), Add(640,514,1920,1600), Connect(640,128,1920,1600); FoldGit(1752,0,2448,1848); iOSGit/Connect(0,385,402,874), Add(0,310,402,874). Videos use the same respective crops. Crops exclude unrelated machine labels. Upload only synthetic captures and these credential-free drivers.
