Repository navigation
fix(ui): keep failed composer menus open for retry - #177208
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. |
|
Codex review: needs maintainer review before merge. What this changesRegisters the composer menu’s Retry button so a failed content load leaves the menu open. Example: The composer menu’s content chunk returns HTTP 503.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review This PR fixes a concrete menu-recovery defect still present on current main; no introduced correctness or security defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI composer lazily imports menu content; its shared Menu owner uses registered controls to determine whether the overlay remains valid and where keyboard focus can move. flowchart TD
A[Composer Plus trigger] --> B[Lazy content import]
B --> C[Import failure]
C --> D[LazyViewError Retry button]
D --> E[Existing menu control registry]
E --> F[Menu validity and focus]
D --> B
Technical reviewBest possible solution: Keep the existing Menu validity owner and register the Retry control through its rendering lifetime, as this patch does. Do we have a high-confidence way to reproduce the issue? Current-main source exposes the unregistered Retry control and registry-based validity check, corroborated by supplied before/after screenshots; no target code was executed during this review. Is this the best way to solve the issue? This is a focused repair using the existing registry and cleanup contract, preserving lazy loading, menu navigation, and other error-view callers. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a413e73d5bf8. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +19. Total +19 across 2 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel 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 19, 2026, 5:51 AM ET / 09:51 UTC. |
1aadc5b to
27e4078
Compare
|
Merged via squash.
|
CI run 39237275761 exposed the unchanged main failure in the composer menu loading test. The same failure is present in main run 39232001367 and is already repaired by canonical commit 16f1ef8 (#177208). Integrate that published fix; the task delta remains the same five reviewed files. Co-authored-by: vincentkoc <[email protected]> Co-authored-by: Lewington-pitsos <[email protected]> Co-authored-by: cropsgg <[email protected]>
What Problem This Solves
The composer’s plus menu closes when its content chunk fails to load, hiding the error and Retry button.
User Impact
The menu stays open so the user can read the failure and retry loading its content.
Why This Change Was Made
Register the existing Retry button with this menu’s existing control registry through an optional
LazyViewError.retryRef. The registration is released with the rendered error entry. Menu validity, navigation, lazy imports, and the other error views keep their existing owners.Related: #177117, #177136.
Evidence
5a444f59924159a13997c50cefb22e261c3bef06; unchanged test file passes 7/7 after the fix (4.03 s total, pinned Bun, one worker)pnpm tsgo:uipassed27e4078af05b(49.1 s). Refreshed main removed the Signal dependency responsible for the original base/head failure39231252129passed every E2E, real-Gateway, and browser-extension job; its only test failure was the WebKit Details readiness case. Refreshed main includes that test repair from #177104. Final-head full CI39234359233passed: 38 successful jobs, zero failuresProduction: 422 → 441 LOC (+19), two files, +22/−3; tests unchanged. The added lines forward the Retry ref and connect the existing registry. Touched-file pattern counts remain unchanged: one existing external capability-load effect; zero render effects, untrack calls, native listener registrations, queries, flushes, or owner escapes.
0293f8f81385035c83a13cdcThe final candidate was rebased onto
f2f019d60638; both touched production files retain the exact Git blobs from the reviewed build at035c83a13cdc. These are the retained before/after build measurements; full CI validates integration with the newer base. Both production builds and strict checks passed without warnings or violations. The optional ref binding accounts for the small growth; no lazy boundary moved. Screenshots prove visibility during a real network failure; the unchanged unit regression proves the subsequent successful retry. No local E2E battery was run.createEffectcreateRenderEffectuntrackaddEventListenerquerySelector(All)The existing capability-load synchronization remains at
ui/src/pages/chat/components/chat-composer-plus-menu.tsx:219. Controller, class-string, flush, and owner-escape counts also remain zero.The initial WebKit Details failure passed once on its actual CI base, so no inherited-failure waiver was claimed. The integrated main fix (#177104) now waits explicitly for lazy session readiness. The temporary duplicate test preload was removed; this PR remains two production files only.
The baseline capture completed its state assertions, image, and manifest before a standalone teardown method typo returned exit 1; the fixed capture helper exits cleanly. Both published PNGs hash-match the fully inspected synthetic images.
Screenshots
Before: the requested composer menu disappears after its chunk fails. After: the same failed request leaves the error and Retry button visible.