Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 85c1f27c53
ℹ️ 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".
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".
| const [failedFavicons, setFailedFavicons] = createStore<Record<string, boolean>>({}); | ||
| let active = true; | ||
| onCleanup(() => { | ||
| onSettled(() => () => { |
There was a problem hiding this comment.
Keep the disposal guard registered synchronously
When this component is removed before its initial Solid settlement—for example, while a favicon request started during rendering is still pending—the onSettled body has not run, so no cleanup is registered and active remains true. readLinkFavicon later invokes the retained callback from its finally block, causing setRevision to update the already-disposed preview; the previous synchronous onCleanup prevented exactly this early-disposal case. Keep this lifetime-only guard on onCleanup rather than delaying its registration. .agents/skills/solid/references/idioms.mdL203-L207
Useful? React with 👍 / 👎.
|
Codex review: needs changes before merge. What this changesThis PR replaces the source-preview component’s synchronous cleanup registration with cleanup returned from Solid’s onSettled callback. Example: A preview for https://first.test/page starts loading its favicon and is disposed before initial settlement.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 2 items remain Keep this maintainer-authored PR open, but preserve synchronous disposal registration before merging; the proposed change weakens the existing favicon retirement guard. Priority: P3 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherChat run frames supply source descriptors and a favicon fetcher to the Solid source-preview component, which renders source cards and consumes callbacks from a shared page-lifetime favicon cache. flowchart TD
A[Chat run frame] --> B[Source preview component]
B --> C[Shared favicon cache]
C --> D[Favicon fetcher]
D --> C
C --> E[Preview refresh callback]
E --> B
B --> F[Source cards and dialogs]
Technical reviewBest possible solution: Retain the existing synchronous onCleanup guard for work that begins during rendering, without adding another lifecycle owner. Do we have a high-confidence way to reproduce the issue? Source establishes the early-disposal path: rendering registers a retained favicon callback, disposal before settlement skips the onSettled body, and completion reaches setRevision while active remains true; no runtime reproduction was executed. Is this the best way to solve the issue? The existing guard already uses the appropriate owner and registration timing; moving only its registration to settlement does not pair setup with teardown and contradicts the documented exception. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 73067e85a551. TestingProof path: unit tests only. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 21, 2026, 2:06 PM ET / 18:06 UTC. |
…hat-source-preview-lifecycle
|
Closing this mechanical conversion after reviewing the disposal lifecycle. The existing |
Whole CHAT-D scope:
f6b226188d91→af7dfab6d18d; 275 → 275 production files, 56,132 → 56,132 LOC. I1–I10 follow wave ten. Raw API sites include documented computation-cleanup and foreign-DOM exceptions; unlanded work remains counted.Totals I1–I10: 0, 14 → 13, 15, 11, 0, 7, 0, 0, 0, 3.
What Problem This Solves
Finishes the Solid 2 component lifecycle migration for chat source previews. Register the existing disposal guard as the cleanup returned by
onSettled, the component lifecycle API.User Impact
Source dialogs, per-image failure handling, and favicon caching retain their existing behavior. The disposal guard still prevents completed asynchronous favicon work from publishing after the component retires. The shared favicon cache keeps its page lifetime.
Production LOC: 144 → 144. Two production lines change, with no new state, helper, dependency, or import boundary.
Evidence
f6b226188d91; resolved the sole boot-test conflict verbatim from main, preserving its complete current sharing test. No boot-test change remains in this PRaf7dfab6d18daf7dfab6d18df6b226188d91→af7dfab6d18d; zero strict violationsci:fullselected; Exact run 39688644243: one delegated-work details E2E failure; all other jobs passedThe remaining failing name is
Chat header and delegated work > keeps new batches collapsed until Subagents is opened manually without duplicate wait status: the test waits at line122 for a hidden details section after releasing the held chunk. Exact-name baseline investigation is shared with the other lane that observed the same case; no inherited exception is claimed yet.No markup, styles, rendered text, handler behavior, or lazy boundary changes, so before/after screenshots are not applicable. The prior exact-head full CI passed, but its result is retained as earlier evidence and does not substitute for the new integrated-head run.
Both builds use Node24.22.0/pnpm12.12.1 on the same machine, fixed build identity, and disabled build cache. Startup raw JavaScript bytes are identical; small gzip differences follow generated hashes. The first comparison encountered the still-copying baseline archive; only that comparison was repeated after the archive completed.
Solid 2 Touched-File Checklist
I2 component-level
onCleanup: 1 → 0. ComponentonSettledregistration: 0 → 1. I1 and I3–I10: 0 → 0. Raw effects,untrack, direct listeners, DOM queries, and owner escape APIs remain 0. Existing signal and draft-store ownership stays unchanged.