GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||
GeezerVison is showing github.com — fix(web): pull request panel polls go around the server's hold by ylcn91 · Pull Request #9491 · pingdotgg/t3code Conversation
|
| panel file | host title changed | poll reaches host | host answers | panel heading after the poll |
|---|---|---|---|---|
main |
10:47:12 | 10:53:09 | new title, 10:53:12 | old title at 10:53:16 |
main, again from a manual Refresh |
10:57:57 | 10:58:38 | new title, 10:58:39 | previous title at 10:58:45 |
| this branch | 10:55:06 | 10:55:25 | new title, 10:55:27 | new title at 10:55:31 |
The two main rows are the issue's log line for line: the automatic request reaches the host and gets the changed detail, the heading keeps the earlier one. The branch row is the same poll answering with what the host just said.
Model and harness: Claude Fable 5.1 in Claude Code.
Note
Low Risk
Small client-side wiring change to refresh semantics for one panel; invalidation is scoped to a single PR reference and reuses the existing manual-refresh command.
Overview
Automatic pull request panel refresh (interval + return-to-window via useLiveRefresh) now invalidates that PR on the server before re-fetching detail, matching the manual Refresh path instead of calling detailQuery.refresh() alone.
Ordinary detail reads can be answered from the server’s held snapshot while a background refresh runs, which left passive viewers stuck on stale titles/checks until they hit Refresh. Polls are wired through a new refreshDetailFromHost callback (invalidate then detail refresh); the menu refresh still invalidates and refreshes detail, activity, and diff via the existing token path. Comments were updated to document poll vs manual behavior.
Reviewed by Cursor Bugbot for commit 9cf9cf649ab9ea95245f3899b64d0e07755db4a5. Configure here.
Note
PullRequestDetailPanel polling to invalidate cached PR data before refreshThe live-refresh (polling) callback in PullRequestDetailPanel.tsx now invalidates the pull-request data for the current environment and reference before re-fetching the detail query. Previously, polling read the existing cached response directly, which kept it stuck on the server's held data. The manual refresh path was already doing this and is unchanged.
Macroscope summarized 9cf9cf6.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This one-file change narrowly fixes stale pull-request panel polling by reusing the existing per-request invalidation path before refreshing detail and diff data. Its added host activity is limited to the existing polling cadence and does not affect schemas, defaults, or unrelated pull requests. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
9cf9cf6 to
9913a15
Compare
Dismissing prior approval to re-evaluate 9913a15
|
Rebased onto On why this is still needed after #9496: that change refreshes when an agent turn ends. #8640 is the other case, a push from elsewhere or a check finishing while the panel sits open, and that poll still answers from the hold. I re-ran the reporter's reproduction on today's |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Closing as part of the open-PR backlog sweep (wave 2). Reason: Superseded by #9829, which ports this poll-invalidate with tests and is CLEAN Reopen if this is still wanted and you’re willing to rebase onto current |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Pull request detail panel stays stale after automatic refresh
There was an error while loading. Please reload this page.