Skip to content

fix(aggregator): /frag/board ignores ?done=all — a fragment refresh silently reverts the board's show-all Done strip to 100 cards (PR #3855 follow-up) #7937

Closed

Description

@dezren39

Finding

Merged PR #3855 capped the board's Done strip at 100 rendered cards and added a ?done=all escape hatch — but it wired showAllDone only into the full-page /board route. The board page's own live-refresh fragment, /frag/board, still renders the capped strip unconditionally and cannot receive the flag, so a fragment refresh silently reverts a "show all" view back to 100 cards.

Evidence

  • PR fix(aggregator): cap the board done strip at 100 rendered cards (#1179) #3855 (merged 2026-11-01T17:06:51Z, merge commit 3c3c585, head 829e205): renderBoardBody/renderBoard gained renderOpts?: { showAllDone?: boolean }, and src/server.ts passes it only in the /board handler (url.searchParams.get("done") === "all"). The /frag/board handler appears in the same diff hunk as unchanged context — it was not updated.
  • Verified on current main this run (2026-11-08, main dedfa6f): pm-stack/aggregator/src/server.ts /frag/board handler (line ~1450) calls renderBoardBody(board, items, counts, act) with no render options, and its wrapper hard-codes the refresh URLs with no query string: data-on-load="@get('/frag/board')" data-on-dashrefresh__window="@get('/frag/board')".
  • The full-page route on current main (line ~1423) does pass showAllDone: url.searchParams.get("done") === "all", and pm-stack/aggregator/src/render.ts (lines ~1470, ~1500-1509) only renders the full strip when that flag is set.
  • Dashboard actions dispatch a dashrefresh window event (see __dashAfter in render.ts, added context in PR fix(aggregator): author pickers on demand — /program 44.3 MB → ~0.7 MB, /board 12.9 MB (#1179) #3842's diff), so any dashboard action taken while viewing /board?done=all triggers the fragment swap and loses the show-all state — the strip's summary flips back to "showing the 100 most recent" with no user action asking for that.

Why it matters

The ?done=all view is the only way to see the full Done record on the board (the PR's stated purpose for the link). As shipped, that view is unstable: the page's own refresh machinery undoes it. Low severity — no data loss, the full-page link still works until the next refresh — but it is a real, reproducible inconsistency introduced by the PR that added the feature.

Acceptance criteria

  • Viewing /board?done=all and triggering a dashboard refresh (or any dashrefresh) keeps the full Done strip rendered (fragment route carries/forwards the done=all state, or the fragment wrapper preserves the current query).
  • The capped default is unchanged: /board and /frag/board with no done parameter still render at most 100 done cards with the "show all N" link.
  • A regression test in pm-stack/aggregator/test/author-picker-1179.test.ts (or a sibling) pins the fragment path's show-all behavior alongside the existing full-page tests from PR fix(aggregator): cap the board done strip at 100 rendered cards (#1179) #3855.

Found by the pr-diff-review job reviewing PR #3855 in its 2026-11-08 21:24 CST batch (PRs #3839–#3865). Deduped this run: issue searches for showAllDone and "done strip" returned only PR #3855 itself.

Activity

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/lowNice to have; do when convenient
    on Nov 9, 2026
  2. developing-today commented on Nov 9, 2026

    @developing-today
    Contributor
  3. added
    effort/xsTrivial: expected under 30 minutes of work
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 9, 2026
  4. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  5. added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    and removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 10, 2026
  6. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged

    • Agent: triage-step
    • State: triaged
    • Verdict: work kind task/small-fix · priority/low · effort/xs
    • Priority why: priority/low — brief line 5: everything else by usefulness; a display-flag gap in one board fragment is the smallest useful fix in this batch.
    • First step: Pass the done=all flag through the /frag/board handler in pm-stack/aggregator/src/server.ts to renderBoardBody, exactly as the /board handler already does.
    • Acceptance: A fragment refresh with ?done=all renders the full Done strip (no silent revert to the 100-card cap), and the default capped behaviour without the flag is unchanged.
    • Fix packet: repo-health:v1:fix:developing-today/code:issue:7937 → queue repo-health-code-pilot. Enqueue result: enqueued new task 14554 (queue repo-health-code-pilot, status queued) | { | "id": 14554, | "queue": "repo-health-code-pilot", | "title": "Fix fix(aggregator): /frag/board ignores ?done=all — a fragment refresh silently reverts the board's show-all Done strip to 100 cards (PR #3855 follow-up) #7937: fix(aggregator): /frag/board ignores ?done=all — a fragment refresh silently reverts the board's show-all Done strip to 100 cards (PR fix(aggregator): cap the board done strip at 100 rendered cards (#1179) #3855 follo
  7. dezren39 commented on Nov 10, 2026

    @dezren39
    MemberAuthor

    agent-note:v1
    task 14299 | lane code-t | stage: done (triaged)
    The triage step already triaged issue #7937 — see its agent-note:v1 triage comment on this issue at 2026-11-10T05:40:25Z (verdict task/small-fix, priority/low, effort/xs), which enqueued the fix packet as task 14554 on queue repo-health-code-pilot. Per runbook section 1c, this triage packet (task 14299) is completed with outcome triaged; the fix work lives in task 14554.

  8. 14 remaining items

  9. added
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    and removed
    queue/claimedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 11, 2026
  10. added a commit that references this issue on Nov 11, 2026
  11. dezren39 commented on Nov 11, 2026

    @dezren39
    MemberAuthor

    state: done
    task: 14554
    lane: code-c
    worker: repo-worker-code

    Task 14554 complete — fixed_merged. Resumed at the pr_opened checkpoint (PR #8717, head 9186ab4) and drove it to merge:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/xsTrivial: expected under 30 minutes of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientsource/pr-diff-reviewFiled by the pr-diff-review jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions