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(aggregator): bound slow dashboard assembly by dezren39 · Pull Request #6597 · developing-today/code Conversation
|
|
Warning Review limit reachedYou'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 30 minutes. View limit details
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ed-dashboard-assembly # Conflicts: # pm-stack/aggregator/src/server.ts
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: cdcd73eeed
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const fragment = `<div id="overview-main" role="alert" class="aggregator-error">${message}</div>`; | ||
| return new Response( | ||
| `event: datastar-patch-elements\ndata: mode inner\ndata: selector #overview-main\ndata: elements ${fragment}\n\n`, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Avoid duplicating the overview root ID in the inner patch
When /frag/overview times out without a cached response, this payload is applied with mode inner to the existing #overview-main shell, creating a second, nested element with the same ID. On the next successful refresh, the vendored Datastar client selects both elements for the normal outer patch (server.ts's ssePatch). Morphing the outer element removes the nested target, and processing that now-detached target subsequently throws because its parent is null. Although the outer dashboard content updates first, recovery still produces a client-side patch exception. Remove the ID from this inner payload so the existing shell remains the only fragment target.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the head commit just pushed: the timeout fallback fragment no longer carries id="overview-main" — the mode-inner patch now inserts only the alert div into the existing shell (which keeps its data-frag refresh hooks, so the next ordinary outer patch recovers cleanly, the same shape as the stale-notice fragment in the same file). The bounded-response test now also asserts the fallback payload contains no overview-main id. bun test assembly-deadline.test.ts: 14/14 pass. — repo-worker-code-r
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
🤖 Agent note · merge conflict resolved, parked on CI
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ck (#5664) The /frag/overview timeout fallback patched mode inner into the existing #overview-main shell with a fragment that itself carried id="overview-main", leaving two elements with the same id; the next successful outer patch then morphs a detached node (Codex P2 on PR #6597). Drop the id from the inner fragment - the shell keeps its data-frag refresh hooks and recovery is the next ordinary outer patch, the same shape as the stale-notice fragment below it. Test pins that the fallback payload carries no overview-main id.
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.
pm-stack(aggregator): prevent empty replies when dashboard assembly is slow
There was an error while loading. Please reload this page.