# Bitbucket account-scope reproduction

Environment for all captures: Linux, Chromium web client, Vite dev app and real server from separate detached worktrees, dark theme, 1280×900 CSS viewport. Each server creates its own empty database with T3CODE_DEV_SEED=0. No database is copied. Synthetic Bitbucket credential only; unrelated account names are privacy-masked by the browser capture system. Secret inputs are omitted by the capture system.

Base: 9cd7a04797184c92a8f636ae1e918f42c139d850
Head: 7af03566d2844c1ed8a54c2c857379dae777fd4f

1. Install each checkout with `vp i`.
2. Run `node bitbucket-stub.mjs` once.
3. In each checkout run `T3CODE_DEV_SEED=0 T3CODE_BITBUCKET_API_BASE_URL=http://127.0.0.1:19865/2.0 vp run dev` and pair a browser using that server's startup pairing URL (do not publish it).
4. Set the browser to dark mode and a 1280×900 CSS viewport.
5. Open Settings → Source control, expand Bitbucket. Leave email and API token empty. Execute the exported `run(tools, tabId, origin)` in browser-driver.mjs, providing the T3 preview tools object and paired tab. The script opens the Settings route, expands and scrolls to Bitbucket, records entering the synthetic access credential and pressing Tab to save, waits for persistence and captures the resulting state twice, 500 ms apart.
6. Compare each screenshot pair pixel-for-pixel. Both pairs had zero differing pixels. Open and inspect all stills and recordings before upload.

Observed base: muted dot, disabled availability switch, “Could not verify Bitbucket. An access token is configured.”
Observed head: green dot, enabled availability switch, “Authenticated”, no account name.

The allowed API-stub alternative was used. The real server requested GET /2.0/user and received HTTP 403 on both commits. The stub supplies HTTP 200 repository responses. Live Bitbucket credentials and loading a live repository pull request were not exercised. Email/API-token account presentation was not exercised by this access-token scenario.

AI-assisted; verified with the tests and tools listed above.
