Repository navigation
fix(server): refresh divergence after a merged branch ref changes - #31342
Conversation
- Keep turn-end VCS refreshes updating divergence while background polling is paused
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Turn completion now refreshes PR status and divergence even when background polling is paused. Existing branch guards and locking remain, without enabling upstream fetching or automatic pulls. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
**v0.1.8-nightly.20261105.4218** · 9 changes from 3 contributors - **Thread history.** Long threads retain their visible history when you open or reconnect to them. ### Plus 4 more bug fixes. <details> <summary>Full changelog</summary> ## What's Changed * revert(web): working threads stay in the Working shelf when their environment disconnects by @juliusmarminge in pingdotgg/t3code#31269 * refactor: Effect code reads env through HostProcess.Environment by @juliusmarminge in pingdotgg/t3code#31218 * refactor: Effect.try calls map failures to typed errors by @juliusmarminge in pingdotgg/t3code#31217 * fix(web): sidebar project filter rows line up and stay still on hover by @shivamhwp in pingdotgg/t3code#29639 * refactor: errors are Schema.TaggedError, not Data.TaggedError or native Error by @juliusmarminge in pingdotgg/t3code#31216 * fix(server): a stopped run no longer shrinks thread history to one row by @shivamhwp in pingdotgg/t3code#31266 * fix(server): refresh divergence after a merged branch ref changes by @Yash-Singh1 in pingdotgg/t3code#31342 * fix(mobile): one aligned notice for ChatGPT sharing limits by @shivamhwp in pingdotgg/t3code#31277 * fix(mobile): composer keeps the keyboard when a queued edit ends by @shivamhwp in pingdotgg/t3code#31317 **Full Changelog**: pingdotgg/t3code@v0.1.8-nightly.20261105.4205...v0.1.8-nightly.20261105.4218 </details> Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.8-nightly.20261105.4218
Problem
After an agent turn merged a branch, the thread could still show stale ahead and behind counts. The turn completion refresh could be skipped when background activity policy paused work.
Change
Always refresh cached remote status at turn completion, without fetching from the remote. This updates divergence after the branch ref changes even when periodic background polling is paused.
Scope and approval
This is a focused fix for stale Git divergence after a merge. The regression test reproduced the stale counts, and the server already has a turn completion refresh for this status.
Verification
The regression test verifies that counts update from 3 ahead and 5 behind to 7 ahead and 0 behind while background work is disabled. All 27 focused tests passed.
vp run check:changedpassed its format, lint, knip, GraphQL, affected package typecheck, and test checks.Codex with the Codex harness