Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 5:18 AM ET / 09:18 UTC. ClawSweeper reviewWhat this changesThis PR changes Control UI stale-chunk recovery so a missing or blocked session-storage value is not treated as a persisted panel action, with focused shell-action tests. Merge readiness⛔ Blocked before merge - 5 items remain Keep open for a maintainer product decision. The branch retains the prior P1 gap: when storage is unavailable, Retry reuses a permanently stale cached import rather than reaching a fresh document, so the requested action can remain inaccessible; the current main replacement is safer but explicitly leaves this cross-document handoff unsolved. Priority: P1 Review scores
Verification
How this fits togetherControl UI lazy panels record an operator action before loading an on-demand component. When that load fails because an old hashed asset is stale, the retry path either reloads into fresh assets and replays saved intent or retries in the current document. flowchart LR
A[Operator opens panel] --> B[Lazy shell action owner]
B --> C[Try to persist action]
C --> D[Stale chunk retry]
D --> E[Reload fresh document and replay]
D --> F[Retry current lazy import]
E --> G[Requested panel opens]
F --> H[Panel opens or stale error remains]
Decision needed
Why: The necessary state must survive a reload without relying on the denied storage surface; choosing its transport and privacy boundary is product and security-sensitive design, not a mechanical repair. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +92. Total +92 across 3 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Define and prove a privacy-safe, action-preserving cross-document recovery mechanism, or retain current main’s intentional safe degraded behavior when no persistence channel is available. Do we have a high-confidence way to reproduce the issue? Yes—source inspection maps storage denial through the introduced predicate to an in-document retry, and the supplied discussion records the permanent-old-hash scenario; this review did not execute it locally. Is this the best way to solve the issue? No. The nullish check fixes the false-presence predicate, but it cannot make a permanently stale import recover without a cross-document action handoff; current main already contains the safer owner-boundary replacement. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ed6e3aabf0ef. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
Related cancellation repair: #130988. It carries request ownership through the asynchronous reachability probe, prevents a dismissed/replaced Retry from navigating, and requires the current intent to be saved before shell-action reload. Its real browser Retry-then-Close regression changes from two document requests to one. The stronger storage-denied scenario remains unresolved here: with the old module URL permanently returning 404, two real Retry clicks still leave the visible error and exact pending in-memory intent; Close clears it. With working storage, the control loads a fresh document and a different module hash, opens the palette once and clears saved intent. This is direct limitation proof, not successful denied-storage recovery. #130988 documents that distinction and introduces no alternative URL/cookie/storage handoff. Keeping this PR open for that separate owner-level repair. |
|
Closing as superseded by #130988 ( The old presence-check helper has been retired. The current shell retry path allows a reload only after successfully persisting the current action; unavailable or denied storage and failed replacement writes retain the action and retry in place. Existing owner-level tests cover those cases, successful single replay, and preservation of terminal/browser event details. I verified that replacement and its relevant source/tests on current main. There is no remaining production change from this PR to apply. This closure is based on current-source and test-coverage inspection with an independent challenge; no fresh browser test run is claimed. |
What Problem This Solves
Fixes an issue where users opening a Control UI panel, command palette, or approval dialog would lose their requested action after retrying a stale UI chunk when browser session storage is unavailable or blocked.
Why This Change Was Made
The lazy-shell action owner treated an unavailable session-storage value as evidence that an action had been persisted. Its caller then selected a full document reload even though no action could survive that reload. A nullish-presence check keeps recovery in the existing in-document retry path unless an action really exists in session storage; no storage format, authentication behavior, configuration, or product contract changes.
User Impact
The requested panel or dialog now opens after the operator retries, including in privacy-restricted browsers and embedded webviews that deny browser storage. Browsers with working storage retain the existing reload-and-replay behavior.
Evidence
node scripts/run-vitest.mjs ui/src/app/lazy-shell-action.test.ts ui/src/app/app-host.panel-toggles.test.ts ui/src/app/lazy-custom-element.test.ts ui/src/app/stale-chunk-reload.test.ts ui/src/app/app-host.test.ts— 5 files, 84 tests passed.e63bbd805fbad170749520634fc48622c41e6338.