Repository navigation
fix(cockpit): a PR the session just opened shows in the PRs view within seconds - #1081
Merged
Merged
Conversation
The PRs view read …/ci/stats once a minute from a pull request list the daemon keeps 2 minutes, so a PR the session just opened showed in Ring (read from the session's own PRs) but not in the PRs view for up to three minutes (#1078, 2026-11-26). When the session's own PR list has an open PR of this repository that the stats answer does not list, the block asks the answer again at once with ?fresh=1, once per PR number. The daemon then drops the composed answer and reads the pull list again unless it is under 3 s old (github.RepoPullsFresh). Documented in 03-contracts and 04-ui.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The cockpit CI block re-reads …/ci/stats with ?fresh=1 once per newly seen own PR number; the daemon skips its cached pull list for that read (unless under 3 s old). Contracts doc, 04-ui, fragment ci-prs-new-pr.md. Tests: vitest + TestSessionCIStatsFresh.