Skip to content

fix(aggregator): shell pages surface a stalled/failed fragment instead of spinning (#1503) - #9934

Merged
dezren39 merged 1 commit into
mainfrom
queue/15168-1503-shell-watchdog
Nov 14, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/15168-1503-shell-watchdog

Conversation

@dezren39

@dezren39 dezren39 commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

What

Implements #1503: the aggregator shell pages ($/, /board, /today, /attention, /queue) stream their real content in as Datastar fragments, but the shell markup had no error or timeout path — a failed or stalled fragment left the page sitting on its Loading skeleton indefinitely.

Change

  • pm-stack/aggregator/src/render.ts: new shared FRAG_WATCHDOG_SCRIPT (bound exported as FRAG_WATCHDOG_MS = 10_000), wired into all five shell renderers (board, attention, today, queue, overview) via the layout script slot. Ten seconds after the shell renders, any [data-frag] container still holding its .skel skeleton gets the skeleton swapped for an inline notice — "the live view did not arrive — load the full page" — linking that page's ?full=1 server render (the existing no-JS path). A fragment that lands in time removes the skeleton itself, so the watchdog no-ops; a fragment that lands late replaces the notice. No protocol change; ?full=1 renders untouched.
  • pm-stack/aggregator/src/ui.css: .frag-failed notice styling (warning-toned box matching .skel geometry), included in both light-theme selector lists.
  • pm-stack/aggregator/test/frag-watchdog-1503.test.ts: new tests — the 10 s bound, all five shells carry the watchdog + notice + ?full=1 link while keeping their fragment load and skeleton, attention's three fragment containers, and today's health strip staying ahead of the skeleton.

Verification

  • New tests: 4/4 pass. Existing test/render.test.ts: 30/30 pass. Affected-area files (render, overview, queue-view, views, slices, dashboard/ui overhaul, nav, a11y, today-cache, watchdog): 177 named tests pass; the only failures are unnamed server-boot hook timeouts (5 s) that occur in the same form on unmodified main.
  • bunx tsc --noEmit: 22 errors, identical count to unmodified main, none in the touched files.
  • Full aggregator suite: branch 2324 pass / 19 fail vs main 2327 pass / 16 fail across repeated runs (main itself varies 16-19 fails run to run; failures are browser/boot/live-source environment timeouts in both trees, none in render/shell tests).

Closes #1503

Queue task 15168 · lane any-d (repo-worker-code)


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@dezren39
dezren39 requested a review from a team as a code owner November 14, 2026 11:24
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-14T11:24:10.578680Z
We couldn’t complete this review. Comment @codex review to try again.
d709b36 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 47 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8d2352b2-21b4-43b8-9ec5-186cfb1ab277
Commits

Reviewing files that changed from the base of the PR and between 5319133 and d709b36.

Files selected for processing: 3

  • pm-stack/aggregator/src/render.ts
  • pm-stack/aggregator/src/ui.css
  • pm-stack/aggregator/test/frag-watchdog-1503.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit 7960660 into main Nov 14, 2026
1 check passed
@dezren39
dezren39 deleted the queue/15168-1503-shell-watchdog branch November 14, 2026 11:28
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.

fix(aggregator): shell pages — a stalled/failed fragment must surface, not spin (board/today/attention)

1 participant