# R3 warm-same-branch

Evidence for [#33263](https://git.cafe/pingdotgg/t3code/pull/33263). Control unchanged: A remote payload is byte-for-byte equal before/after the local edit; only localUpdated is published.

The only fetch is the initial warming full refresh; local-only refresh starts no remote read.

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

| Before | After |
|---|---|
| [4c361199f4](https://git.cafe/pingdotgg/t3code/commit/4c361199f47f6ea32a2c14835df392640d0f7c63) | [456327574c](https://git.cafe/pingdotgg/t3code/commit/456327574c52ad1c7624083bb97eaf382edd1732) |
| [Full timestamped log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/f61fe492119c6ccc/R3-before.log) | [Full timestamped log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/49e226436ed958c7/R3-after.log) |

Before environment: Linux 6.8.0-117-generic x64; Node v26.12.1; `T3CODE_DEV_SEED=0 node apps/server/src/bin.ts serve --host 127.0.0.1 --port 41861 --base-dir /tmp/lead-33263-r1/evidence-capture/2026-11-10T07-14-21.253Z-before-R3/t3 --no-browser --log-level warn --dev-url http://127.0.0.1:41861`; settings: `automaticGitFetchInterval=30 seconds`. Fresh explicit base dir; Replay provisioned by `--dev-url`; forwarding git wrapper first on PATH. No dev runner or live-data seeding.

After environment: Linux 6.8.0-117-generic x64; Node v26.12.1; `T3CODE_DEV_SEED=0 node apps/server/src/bin.ts serve --host 127.0.0.1 --port 42047 --base-dir /tmp/lead-33263-r1/evidence-capture/2026-11-10T07-14-21.288Z-after-R3/t3 --no-browser --log-level warn --dev-url http://127.0.0.1:42047`; settings: `automaticGitFetchInterval=30 seconds`. Fresh explicit base dir; Replay provisioned by `--dev-url`; forwarding git wrapper first on PATH. No dev runner or live-data seeding.

The recordings below preserve action/event order independently in each column. Rows align by event ordinal, not wall-clock synchronization. Full payloads, command traces, and server completion spans are in the linked logs. Bounded windows establish only the recorded absence of an update, not a full 30-second delay.

| Before recording | After recording |
|---|---|
| `2026-11-10T07:14:21.785Z +532ms` SYNTHETIC_SEED {"facts":{"A":{"status":"## feature/A...origin/feature/A [ahead 1]","divergence":"1\t0"},"B":{"status":"## feature/B...origin/feature/B [ahead 2, behind 1]","divergence":"2\t1"}}} | `2026-11-10T07:14:21.798Z +509ms` SYNTHETIC_SEED {"facts":{"A":{"status":"## feature/A...origin/feature/A [ahead 1]","divergence":"1\t0"},"B":{"status":"## feature/B...origin/feature/B [ahead 2, behind 1]","divergence":"2\t1"}}} |
| `2026-11-10T07:14:21.796Z +543ms` SERVER_SPAWNED {"pid":289195} | `2026-11-10T07:14:21.805Z +516ms` SERVER_SPAWNED {"pid":289196} |
| `2026-11-10T07:14:28.646Z +7393ms` RPC_SEND server.updateSettings automaticGitFetchInterval=30000ms | `2026-11-10T07:14:28.567Z +7278ms` RPC_SEND server.updateSettings automaticGitFetchInterval=30000ms |
| `2026-11-10T07:14:28.918Z +7665ms` RPC_RESULT server.updateSettings {"automaticGitFetchInterval":{"_id":"Duration","_tag":"Millis","millis":30000}} | `2026-11-10T07:14:28.838Z +7549ms` RPC_RESULT server.updateSettings {"automaticGitFetchInterval":{"_id":"Duration","_tag":"Millis","millis":30000}} |
| `2026-11-10T07:14:28.919Z +7666ms` RPC_SEND vcs.refreshStatus localOnly=False | `2026-11-10T07:14:28.849Z +7560ms` RPC_SEND vcs.refreshStatus localOnly=False |
| `2026-11-10T07:14:31.654Z +10401ms` RPC_RESULT vcs.refreshStatus branch=feature/A remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null | `2026-11-10T07:14:31.677Z +10388ms` RPC_RESULT vcs.refreshStatus branch=feature/A remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null |
| `2026-11-10T07:14:31.655Z +10402ms` SUBSCRIBE passive-1 includeRemote=False | `2026-11-10T07:14:31.678Z +10389ms` SUBSCRIBE passive-1 includeRemote=False |
| `2026-11-10T07:14:31.745Z +10492ms` VCS_EVENT passive-1 snapshot {"isRepo":true,"refName":"feature/A","isDefaultRef":false,"hasPrimaryRemote":true,"hasWorkingTreeChanges":false,"branchChanges":{"baseRef":"origin/main","insertions":1,"deletions":0}} worktree={"insertions":0,"deletions":0,"files":[]} remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null | `2026-11-10T07:14:31.745Z +10456ms` VCS_EVENT passive-1 snapshot {"isRepo":true,"refName":"feature/A","isDefaultRef":false,"hasPrimaryRemote":true,"hasWorkingTreeChanges":false,"branchChanges":{"baseRef":"origin/main","insertions":1,"deletions":0}} worktree={"insertions":0,"deletions":0,"files":[]} remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null |
| `2026-11-10T07:14:31.746Z +10493ms` EXTERNAL_EDIT {"file":"edit.txt"} | `2026-11-10T07:14:31.746Z +10457ms` EXTERNAL_EDIT {"file":"edit.txt"} |
| `2026-11-10T07:14:31.746Z +10493ms` RPC_SEND vcs.refreshStatus localOnly=True | `2026-11-10T07:14:31.746Z +10457ms` RPC_SEND vcs.refreshStatus localOnly=True |
| `2026-11-10T07:14:32.755Z +11502ms` VCS_EVENT passive-1 localUpdated {"isRepo":true,"refName":"feature/A","isDefaultRef":false,"hasPrimaryRemote":true,"hasWorkingTreeChanges":true,"branchChanges":{"baseRef":"origin/main","insertions":2,"deletions":0}} worktree={"insertions":0,"deletions":0,"files":[{"path":"edit.txt","insertions":0,"deletions":0}]} | `2026-11-10T07:14:32.779Z +11490ms` VCS_EVENT passive-1 localUpdated {"isRepo":true,"refName":"feature/A","isDefaultRef":false,"hasPrimaryRemote":true,"hasWorkingTreeChanges":true,"branchChanges":{"baseRef":"origin/main","insertions":2,"deletions":0}} worktree={"insertions":0,"deletions":0,"files":[{"path":"edit.txt","insertions":0,"deletions":0}]} |
| `2026-11-10T07:14:32.761Z +11508ms` RPC_RESULT vcs.refreshStatus branch=feature/A remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null | `2026-11-10T07:14:32.781Z +11492ms` RPC_RESULT vcs.refreshStatus branch=feature/A remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null |
| `2026-11-10T07:14:33.763Z +12511ms` OBSERVATION_WINDOW_CLOSED {"timeoutMs":1000} | `2026-11-10T07:14:33.783Z +12494ms` OBSERVATION_WINDOW_CLOSED {"timeoutMs":1000} |
| `2026-11-10T07:14:33.764Z +12512ms` SUBSCRIBE final-passive-2 includeRemote=False | `2026-11-10T07:14:33.787Z +12498ms` SUBSCRIBE final-passive-2 includeRemote=False |
| `2026-11-10T07:14:33.848Z +12595ms` VCS_EVENT final-passive-2 snapshot {"isRepo":true,"refName":"feature/A","isDefaultRef":false,"hasPrimaryRemote":true,"hasWorkingTreeChanges":true,"branchChanges":{"baseRef":"origin/main","insertions":2,"deletions":0}} worktree={"insertions":0,"deletions":0,"files":[{"path":"edit.txt","insertions":0,"deletions":0}]} remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null | `2026-11-10T07:14:33.871Z +12582ms` VCS_EVENT final-passive-2 snapshot {"isRepo":true,"refName":"feature/A","isDefaultRef":false,"hasPrimaryRemote":true,"hasWorkingTreeChanges":true,"branchChanges":{"baseRef":"origin/main","insertions":2,"deletions":0}} worktree={"insertions":0,"deletions":0,"files":[{"path":"edit.txt","insertions":0,"deletions":0}]} remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null |
| `2026-11-10T07:14:33.849Z +12596ms` UNSUBSCRIBE final-passive-2 | `2026-11-10T07:14:33.873Z +12584ms` UNSUBSCRIBE final-passive-2 |
| `2026-11-10T07:14:33.852Z +12599ms` UNSUBSCRIBED final-passive-2 | `2026-11-10T07:14:33.875Z +12586ms` UNSUBSCRIBED final-passive-2 |
| `2026-11-10T07:14:33.853Z +12600ms` UNSUBSCRIBE passive-1 | `2026-11-10T07:14:33.875Z +12586ms` UNSUBSCRIBE passive-1 |
| `2026-11-10T07:14:33.853Z +12600ms` UNSUBSCRIBED passive-1 | `2026-11-10T07:14:33.875Z +12586ms` UNSUBSCRIBED passive-1 |
| `2026-11-10T07:14:33.853Z +12600ms` ROW_COMPLETE {"row":"R3"} | `2026-11-10T07:14:33.877Z +12588ms` ROW_COMPLETE {"row":"R3"} |
| `2026-11-10T07:14:34.478Z +13225ms` SERVER_STOPPED {"pid":289195,"exitCode":130,"signal":null} | `2026-11-10T07:14:34.877Z +13588ms` SERVER_STOPPED {"pid":289196,"exitCode":130,"signal":null} |

Final before: remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null

Final after: remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null
