Repository navigation
refactor(ui): load Apps conversations through a Solid boundary - #181277
Conversation
Keep conversation code and styles loading alongside app discovery, with the existing native host and session retention. Let the lazy component own readiness and retry instead of tracking registration in a separate memo.
|
🦞👀 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 changes before merge. What this changesThis PR replaces Apps conversation registration readiness with a lazy Solid component boundary. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this maintainer-backed refactor has one focused, repairable test regression. Priority: P3 Before merge
Findings
Agent review detailsHow this fits togetherThe Apps page resolves app URLs through the existing discovery catalog and passes launch details into the native chat pane. flowchart TD
A[Apps route] --> B[Apps page]
B --> C[Discovery catalog]
B --> D[Lazy conversation boundary]
C --> D
D --> E[Chat pane bridge]
Technical reviewBest possible solution: Keep the lazy conversation boundary and update the catalog page fixture to isolate the chat bridge while preserving its session-switch assertions. Do we have a high-confidence way to reproduce the issue? Current-head CI annotations and the obsolete catalog fixture establish the failing path; no target code was executed during this read-only review. Is this the best way to solve the issue? One lazy region using the existing catalog and chat bridge is a suitably small refactor, provided every affected page fixture follows the new component boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 20aecc9faad9. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
PR surfaceSource +11, Tests +27. Total +38 across 3 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 22, 2026, 11:51 PM ET / October 23, 2026, 03:51 UTC. |
Wait for the rejected module before reopening and use the native bridge in the catalog fixture instead of spoofing custom-element registration.
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…law#181277) * refactor(ui): load Apps conversations through a Solid boundary Keep conversation code and styles loading alongside app discovery, with the existing native host and session retention. Let the lazy component own readiness and retry instead of tracking registration in a separate memo. * test(ui): align Apps fixtures with lazy conversation loading Wait for the rejected module before reopening and use the native bridge in the catalog fixture instead of spoofing custom-element registration.
What Problem This Solves
Apps conversations still use a separate registration-readiness memo instead of a Solid component loading boundary.
User Impact
No intended visual or behavioral change. Opening an app keeps the same native chat pane, loading and retry feedback, and session retention.
Why This Change Was Made
Move the existing conversation region behind
lazy(), including its discovery fallback. Code still starts loading as soon as the app route opens, in parallel with discovery. The original chat route entry and stylesheet order remain, and the existingChatPaneViewbridge receives ordinary component props. The plain catalog owner, keyed session/connection lifetime, and live launch props are unchanged.Production source is 180 → 191 lines; the extra 11 lines define the lazy region's props and module boundary. One semantic manual component loader and one async readiness memo are removed. The AST manual-import baseline did not count the old registration callback, so this PR does not change that allowance.
After repeated native mergeability-calculation timeouts, the branch merged current main once. Refreshed head
a516441cfec666bdf65ed1320f7bdb2bedee3d94keeps all four Apps files byte-for-byte unchanged. A fresh independent review and UI typecheck passed.Evidence
bef193c521bgit diff --checkand scoped formatting passedThe focused test holds the region import and discovery separately, exercises download failure and retry, closes during a held retry, reopens successfully, and verifies native properties/context and same-pane deep-link updates. No tag, class, CSS, route, selector or rendered copy changes; this nonvisual refactor needs no screenshots.
The current CI merge has only the four Apps changes relative to its first parent. All 16 relevant test/helper/renderer blobs for the inherited failures are identical across scheduled main, the CI first parent, and tested merge. Landing uses the native inherited-failure route and preserves the failed-CI caveat.
Exact inherited failing cases (17)
ui/src/e2e/provider-browser-login.real-gateway.e2e.test.ts > Provider browser login through real HTTPS Gateway > rejects cancelled and stale callbacks, then saves a fresh sign-in and serves an existing sessionui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps dark child rows stable through loading and refresh at 1440 px with a fine pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps dark child rows stable through loading and refresh at 1440 px with a fine pointer and 140% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps dark child rows stable through loading and refresh at 390 px with a coarse pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps dark child rows stable through loading and refresh at 390 px with a fine pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps light child rows stable through loading and refresh at 1440 px with a fine pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps light child rows stable through loading and refresh at 390 px with a coarse pointer and 100% textui/src/e2e/sidebar-session-stability.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps light child rows stable through loading and refresh at 390 px with a fine pointer and 100% textui/src/e2e/session-management.filtered-errors.e2e.test.ts > Control UI session management mocked Gateway E2E > clears the visible All sidebar error after its failed roster recovers or retiresui/src/e2e/session-management.filtered-errors.e2e.test.ts > Control UI session management mocked Gateway E2E > clears the visible Archived sidebar error after its failed roster recovers or retiresui/src/e2e/browser-dictation-status.e2e.test.ts > Control UI browser dictation status > dictates during a running turn and sends explicitly (wait for completion: true)ui/src/e2e/browser-dictation-status.e2e.test.ts > Control UI browser dictation status > preserves the draft through caret insertionui/src/e2e/browser-dictation-status.e2e.test.ts > Control UI browser dictation status > preserves the draft through selection replacementui/src/e2e/cloud-workspace-conflict.e2e.test.ts > Control UI cloud workspace conflict recovery > exposes the full request diagnostic with keyboard and clipboard accessui/src/e2e/mobile-sidebar-session-menu.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps mobile sidebar titles and menus usable with a coarse pointerui/src/e2e/mobile-sidebar-session-menu.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps mobile sidebar titles and menus usable with a fine pointerui/src/e2e/session-management.rename.e2e.test.ts > Control UI session management mocked Gateway E2E > keeps a duplicate rename in the dialog (concurrent failure: false)