Skip to content

refactor(ui): load Apps conversations through a Solid boundary - #181277

Merged
steipete merged 3 commits into
mainfrom
solid2/w-zero-lifecycle-apps
Oct 23, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/w-zero-lifecycle-apps

Conversation

@steipete

@steipete steipete commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

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 existing ChatPaneView bridge 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 a516441cfec666bdf65ed1320f7bdb2bedee3d94 keeps all four Apps files byte-for-byte unchanged. A fresh independent review and UI typecheck passed.

Evidence

Check Result
Independent review No actionable P0–P2 findings; refreshed candidate reviewed against pinned main bef193c521b
Source and format git diff --check and scoped formatting passed
UI typecheck, lint and guard Fresh UI typecheck passed; exact-head CI lint/type/guard jobs passed
Focused behavior Local Apps 2/2 and catalog 22/22 passed; all three UI unit jobs passed on refreshed head
Current paired build/performance CI passed: startup 314,555 → 314,575 B gzip (+20 B), 7 JS + 1 CSS request
Chat / New Session 1,346,485 → 1,346,474 B / 825,016 → 825,024 B gzip; request counts and CSS bytes unchanged, all deltas within 64 B build variance
Production Knip Refreshed head reports the same sole unused Telegram test-support file as the original exact base/head comparison; no new finding
Full UI/Gateway/browser CI Run 39909894083: 17 failed cases across five E2E jobs, all exact names and assertion messages match completed scheduled main 39906351041; every other job passed

The 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 session
  • ui/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% text
  • ui/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% text
  • ui/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% text
  • ui/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% text
  • ui/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% text
  • ui/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% text
  • ui/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% text
  • ui/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 retires
  • ui/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 retires
  • ui/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 insertion
  • ui/src/e2e/browser-dictation-status.e2e.test.ts > Control UI browser dictation status > preserves the draft through selection replacement
  • ui/src/e2e/cloud-workspace-conflict.e2e.test.ts > Control UI cloud workspace conflict recovery > exposes the full request diagnostic with keyboard and clipboard access
  • ui/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 pointer
  • ui/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 pointer
  • ui/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)

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.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-23T06:14:06.621462Z a516441 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.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR replaces Apps conversation registration readiness with a lazy Solid component boundary.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The refactor is focused and directionally sound, but an affected consumer fixture makes the current-head UI check fail.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored nonvisual refactor is outside the ordinary contributor proof gate and changes neither authority nor persisted data.
Patch quality 🦪 silver shellfish (2/6) 1 actionable review finding remain.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Users should retain the existing app conversation, loading feedback, retry control, and session state while presentation loading is simplified.
Reason: The maintainer-authored direction follows the repository’s native Solid loading guidance and removes a separate readiness mechanism without adding a domain owner.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this maintainer-backed refactor has one focused, repairable test regression.

Priority: P3
Reviewed head: d97f486aea144a1e36ac0f69b6481c7b5628ba6c

Before merge

  • Update the catalog page fixture for direct chat rendering (P2) - Rendering ChatPaneView directly bypasses the customElements.get substitution in ui/src/components/mcp-app-catalog.test.ts’s session-discovery test. That fixture deliberately omits the chat runtime capabilities, so resolving discovery now constructs the real runtime and raises missing theme.settings and connectionBootstrap errors. The reviewed head’s checks-ui (2/3) annotations record both failures. Update that consumer fixture to isolate the chat bridge, as the changed Apps test does, while retaining its discovery and session-switch assertions.

Findings

  • [P2] Update the catalog page fixture for direct chat rendering — ui/src/pages/apps/apps-conversation.tsx:33
Agent review details

How this fits together

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

Technical review

Best 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:

  • [P2] Update the catalog page fixture for direct chat rendering — ui/src/pages/apps/apps-conversation.tsx:33
    Rendering ChatPaneView directly bypasses the customElements.get substitution in ui/src/components/mcp-app-catalog.test.ts’s session-discovery test. That fixture deliberately omits the chat runtime capabilities, so resolving discovery now constructs the real runtime and raises missing theme.settings and connectionBootstrap errors. The reviewed head’s checks-ui (2/3) annotations record both failures. Update that consumer fixture to isolate the chat bridge, as the changed Apps test does, while retaining its discovery and session-switch assertions.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 20aecc9faad9.

Provenance checked

  • Apps registration readiness and retry changes intended behavior with a stated reason (bd36b30: Prevent invalid-link feedback before chat registration completes and support failed-import retry and route retirement.)
  • Native chat host, session keying, and launch props keeps the original intent (6fcd048: Port Apps to Solid while retaining native tags, lazy entry points, and existing domain ownership.)
  • Lazy discovery status keeps the original intent (2f06b44: Present admitted discovery completion through native boundaries while retaining accepted catalog state and startup separation.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm --dir ui test src/pages/apps/apps-page.test.tsx src/components/mcp-app-catalog.test.ts --maxWorkers=1
  • git diff --check

What I checked:

PR surface

Source +11, Tests +27. Total +38 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 49 38 +11
Tests 1 85 58 +27
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 134 96 +38

Review metrics

Metric Value Why it matters
Production versus test growth Production +11 lines; tests +27 lines The production increase defines the lazy module boundary; the test increase covers import/discovery ordering, retired rejection, and retained pane updates.

Labels

Label changes:

  • add P3: This is an internal presentation refactor with no intended user-facing behavior change; the observed blocker is a focused test-fixture regression.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P3: This is an internal presentation refactor with no intended user-facing behavior change; the observed blocker is a focused test-fixture regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 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.
@steipete
steipete merged commit a4f78dc into main Oct 23, 2026
97 of 106 checks passed
@steipete
steipete deleted the solid2/w-zero-lifecycle-apps branch October 23, 2026 06:36
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 24, 2026
…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.
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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant