# R8 cold-subscribe-zero

Evidence for [#33263](https://git.cafe/pingdotgg/t3code/pull/33263). Before: null snapshot and no populated remote event in 6.5 seconds. After: the first subscription loads A upstream/ahead 1/behind 0/default-ahead 1. Neither side executes git fetch.

Tracking refs are preseeded; the settings RPC successfully sets the interval to zero. This is the initial-read scheduler path, not a periodic repair.

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/166634f25ccf9435/R8-before.log) | [Full timestamped log](https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/38ecc864d0c774e5/R8-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 37923 --base-dir /tmp/lead-33263-r1/evidence-capture/2026-11-10T07-14-05.796Z-before-R8/t3 --no-browser --log-level warn --dev-url http://127.0.0.1:37923`; settings: `automaticGitFetchInterval=0 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 42861 --base-dir /tmp/lead-33263-r1/evidence-capture/2026-11-10T07-14-05.831Z-after-R8/t3 --no-browser --log-level warn --dev-url http://127.0.0.1:42861`; settings: `automaticGitFetchInterval=0 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:06.068Z +270ms` 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:06.095Z +262ms` 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:06.075Z +277ms` SERVER_SPAWNED {"pid":288181} | `2026-11-10T07:14:06.097Z +264ms` SERVER_SPAWNED {"pid":288190} |
| `2026-11-10T07:14:12.006Z +6208ms` RPC_SEND server.updateSettings automaticGitFetchInterval=0ms | `2026-11-10T07:14:11.895Z +6062ms` RPC_SEND server.updateSettings automaticGitFetchInterval=0ms |
| `2026-11-10T07:14:12.219Z +6421ms` RPC_RESULT server.updateSettings {"automaticGitFetchInterval":{"_id":"Duration","_tag":"Millis","millis":0}} | `2026-11-10T07:14:12.113Z +6280ms` RPC_RESULT server.updateSettings {"automaticGitFetchInterval":{"_id":"Duration","_tag":"Millis","millis":0}} |
| `2026-11-10T07:14:12.219Z +6421ms` RPC_SEND vcs.refreshStatus localOnly=True | `2026-11-10T07:14:12.114Z +6281ms` RPC_SEND vcs.refreshStatus localOnly=True |
| `2026-11-10T07:14:13.080Z +7282ms` RPC_RESULT vcs.refreshStatus branch=feature/A remote={"hasUpstream":false,"aheadCount":0,"behindCount":0,"aheadOfDefaultCount":0} pr=null | `2026-11-10T07:14:13.159Z +7326ms` RPC_RESULT vcs.refreshStatus branch=feature/A remote={"hasUpstream":false,"aheadCount":0,"behindCount":0,"aheadOfDefaultCount":0} pr=null |
| `2026-11-10T07:14:13.081Z +7283ms` SUBSCRIBE active-1 includeRemote=True | `2026-11-10T07:14:13.160Z +7327ms` SUBSCRIBE active-1 includeRemote=True |
| `2026-11-10T07:14:13.182Z +7384ms` VCS_EVENT active-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=null | `2026-11-10T07:14:13.246Z +7414ms` VCS_EVENT active-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=null |
| `2026-11-10T07:14:19.688Z +13890ms` OBSERVATION_WINDOW_CLOSED {"timeoutMs":6500} | `2026-11-10T07:14:14.860Z +9027ms` VCS_EVENT active-1 remoteUpdated remote={"hasUpstream":true,"aheadCount":1,"behindCount":0,"aheadOfDefaultCount":1} pr=null |
| `2026-11-10T07:14:20.191Z +14393ms` OBSERVATION_WINDOW_CLOSED {"timeoutMs":500} | `2026-11-10T07:14:15.362Z +9529ms` OBSERVATION_WINDOW_CLOSED {"timeoutMs":500} |
| `2026-11-10T07:14:20.192Z +14394ms` UNSUBSCRIBE active-1 | `2026-11-10T07:14:15.364Z +9532ms` UNSUBSCRIBE active-1 |
| `2026-11-10T07:14:20.198Z +14400ms` UNSUBSCRIBED active-1 | `2026-11-10T07:14:15.367Z +9534ms` UNSUBSCRIBED active-1 |
| `2026-11-10T07:14:20.202Z +14404ms` SUBSCRIBE final-passive-2 includeRemote=False | `2026-11-10T07:14:15.367Z +9534ms` SUBSCRIBE final-passive-2 includeRemote=False |
| `2026-11-10T07:14:20.272Z +14474ms` VCS_EVENT final-passive-2 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=null | `2026-11-10T07:14:15.476Z +9643ms` VCS_EVENT final-passive-2 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:20.273Z +14475ms` UNSUBSCRIBE final-passive-2 | `2026-11-10T07:14:15.477Z +9644ms` UNSUBSCRIBE final-passive-2 |
| `2026-11-10T07:14:20.273Z +14475ms` UNSUBSCRIBED final-passive-2 | `2026-11-10T07:14:15.478Z +9645ms` UNSUBSCRIBED final-passive-2 |
| `2026-11-10T07:14:20.273Z +14475ms` ROW_COMPLETE {"row":"R8"} | `2026-11-10T07:14:15.479Z +9646ms` ROW_COMPLETE {"row":"R8"} |
| `2026-11-10T07:14:20.432Z +14634ms` SERVER_STOPPED {"pid":288181,"exitCode":130,"signal":null} | `2026-11-10T07:14:16.360Z +10527ms` SERVER_STOPPED {"pid":288190,"exitCode":130,"signal":null} |

Final before: remote=null

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