GeezerVison is showing github.com — fix(server): thread pull request badges follow the state the panel reads by roprgm · Pull Request #5 · roprgm/t3code
Conversation
roprgm
commented
Oct 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
A linked pull request can show two states at once. After a closed pull request is reopened, the pull request panel shows it open, while the sidebar row and the thread header keep showing it closed for up to 15 minutes. The panel reads the host directly; the badges read the linked snapshot, which PullRequestSyncReactor re-reads every 15 minutes for closed links, and the panel's read never reaches it.
Change
PullRequestSyncReactor.observeState(key, state): if the state another reader just got from the host differs from the linked snapshot, it requests a sync through the existing requestSync path. The states the last sweep saw are kept in memory, so the check needs no extra read.
- The
pullRequestsDetail handler reports each detail read through it.
The sweep cadence is unchanged. Only a state the app has already read is propagated, so a detail read that matches the snapshot costs nothing, and one that does not costs one requested sync.
Verification
vp test run apps/server/src/orchestration-v2/PullRequestSyncReactor.test.ts: a matching state reads nothing more from the host; a different state refreshes the linked snapshot.
- Server typecheck and targeted lint pass.
- TODO: manual check in a dev build. Close a linked pull request, wait for the badge to show closed, reopen it on GitHub, open the pull request panel, and confirm the sidebar row and header switch to open within a few seconds.
Made with Claude Opus 5.5 in Claude Code, running in T3 Code.

Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.