Skip to content

fix(ui): keep failed composer menus open for retry - #177208

Merged
steipete merged 1 commit into
mainfrom
solid2/fix-composer-menu-retry-20261019
Oct 19, 2026
Merged

steipete merged 1 commit into
mainfrom
solid2/fix-composer-menu-retry-20261019

Conversation

@steipete

@steipete steipete commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Check Result
Existing loading/retry regression Exact failure reproduced on main 5a444f59924159a13997c50cefb22e261c3bef06; unchanged test file passes 7/7 after the fix (4.03 s total, pinned Bun, one worker)
Typecheck Default tsrs pnpm tsgo:ui passed
Scoped lint / format Passed
Production Knip Passed on final head 27e4078af05b (49.1 s). Refreshed main removed the Signal dependency responsible for the original base/head failure
Isolated autoreview / simplification No actionable P0–P2 findings; two-file registration fix
Built-app screenshots Real hashed composer-chunk 503 closes the base menu; the fixed menu retains its visible error and Retry button. Synthetic 1440×960 captures below; no page errors
Full CI Original run 39231252129 passed 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 CI 39234359233 passed: 38 successful jobs, zero failures
Integrated WebKit proof The exact previously failed Details docking case passed once through the cold lazy path on the refreshed base (2.05 s overall); no test edits remain in this PR

Production: 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.

Gzip Base 0293f8f81385 Head 035c83a13cdc Delta
Startup JS 324,129 B 324,162 B +33 B
Startup CSS 38,500 B / 1 request 38,500 B / 1 request 0
Chat boot JS 1,456,583 B 1,456,697 B +114 B
New Session boot JS 1,025,526 B 1,025,632 B +106 B

The final candidate was rebased onto f2f019d60638; both touched production files retain the exact Git blobs from the reviewed build at 035c83a13cdc. 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.

Pattern in touched production Before After
createEffect 1 1
createRenderEffect 0 0
untrack 0 0
addEventListener 0 0
querySelector(All) 0 0

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.

Before: the failed composer menu closes

After: the error and Retry button stay visible

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 19, 2026 09:35
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-19T10:04:11.468792Z 27e4078 New commits
ℹ️ 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.

@steipete
steipete enabled auto-merge (squash) October 19, 2026 09:42
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Registers 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.

  • Before: The menu closes, hiding the error and Retry button.
  • After: The menu remains open with the error and Retry button visible.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused, useful repair with direct visual proof and no findings; the exact-head WebKit failure remains unclassified.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected built-app before/after screenshots show the changed composer error path retaining its visible Retry button after the reported HTTP 503; the existing regression additionally covers successful retry.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A failed composer-menu download dismisses the menu before the user can read the error or retry.
Reason: Restores the previously stated recovery behavior with a narrow change; maintainer-authored direction is already established.

Regression provenance

Regression provenance — verified: source commit 353db5496220 by Peter Steinberger; canonical PR #177117 (blame-to-merge-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
Reviewed head: 035c83a13cdcd077bc85eda06380530a0d5411da

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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
Loading

Technical review

Best 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

  • Composer lazy-content error rendering keeps the original intent (353db54: Defer cold composer content while preserving loading, retry, focus, and menu behavior.)
  • LazyViewError Retry button keeps the original intent (eca633a: Share Solid presentation primitives while preserving existing error actions and callers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 353db54 adds ui/src/pages/chat/components/chat-composer-plus-menu.tsx:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 353db5496220; files: ui/src/pages/chat/components/chat-composer-plus-menu.tsx)

PR surface

Source +19. Total +19 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 22 3 +19
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 22 3 +19

Review metrics

Metric Value Why it matters
Production versus test LOC Production +19 net lines; tests unchanged The growth forwards one optional DOM ref and wires the existing control registry, with no new manager or test scaffolding.

Labels

Label changes:

  • add P2: A failed optional composer-content download hides its recovery control, with limited blast radius.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A failed optional composer-content download hides its recovery control, with limited blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 19, 2026, 5:51 AM ET / 09:51 UTC.

@steipete
steipete force-pushed the solid2/fix-composer-menu-retry-20261019 branch from 1aadc5b to 27e4078 Compare October 19, 2026 10:00
@steipete
steipete merged commit 16f1ef8 into main Oct 19, 2026
113 of 115 checks passed
@steipete
steipete deleted the solid2/fix-composer-menu-retry-20261019 branch October 19, 2026 10:25
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Oct 19, 2026
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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui ci:full Keep ordinary native-locale CI selection on the next PR run. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant