Skip to content

fix(cockpit): a PR the session just opened shows in the PRs view within seconds - #1081

Merged
dspv merged 1 commit into
masterfrom
fix/ci-prs-new-pr
Nov 25, 2026
Merged

dspv merged 1 commit into
masterfrom
fix/ci-prs-new-pr

Conversation

@dspv

@dspv dspv commented Nov 25, 2026

Copy link
Copy Markdown
Owner

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.

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.
@dspv
dspv merged commit f2ea2ed into master Nov 25, 2026
16 checks passed
@dspv
dspv deleted the fix/ci-prs-new-pr branch November 25, 2026 23:02
@dspv dspv mentioned this pull request Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant