GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@roprgm roprgm commented Oct 4, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

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.

Sidebar and header show the pull request closed while the panel shows it open

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@roprgm
fix(server): thread pull request badges follow the state the panel reads
0a7f8b5
@roprgm
roprgm force-pushed the fix/pr-state-from-detail branch from 960bdfa to 0a7f8b5 Compare October 6, 2026 08:49
@roprgm

roprgm commented Oct 10, 2026

Copy link
Copy Markdown
Owner Author

Superseded by upstream pingdotgg#16761, which fixed pingdotgg#15787.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@roprgm roprgm closed this Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

1 participant

@roprgm
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.