Repository navigation
refactor(ui): derive Apps conversation readiness - #180568
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b3e4e7c437
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <Show | ||
| when={conversationError()} | ||
| fallback={ | ||
| <Errored |
There was a problem hiding this comment.
Replace the error scope when the app route changes
When chat registration fails and appSearch changes directly to another plugin app without leaving the Apps page, such as through the global sidebar or browser history, this Errored remains in its previous fallback. Loading on={appRoute()} only re-arms the inner loading boundary; it does not replace the outer error scope, so successful readiness for the new route stays hidden behind the old download error until the user manually retries. Key or reset the error scope on route replacement, preserving the old effect's behavior of clearing the error whenever the route changed.
AGENTS.md reference: ui/AGENTS.md:L16-L18
Useful? React with 👍 / 👎.
|
Codex review: needs maintainer review before merge. What this changesThis PR derives conversation registration readiness through Solid loading and error boundaries while retaining the existing registration owner. Example: Open Apps with ?server=parts&tool=library while the conversation chunk is downloading.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes misleading Apps readiness feedback with less presentation state, and no actionable defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Apps route combines URL selection and Gateway discovery with lazy chat-element registration, then supplies the selected app and session context to the conversation pane. flowchart TD
A[Apps route selection] --> B[Apps page]
C[Gateway app discovery] --> B
B --> D[Custom element registration owner]
D --> E[Async readiness memo]
E --> F[Loading and error boundaries]
F --> G[App conversation pane]
Technical reviewBest possible solution: Retain the owner-backed async memo and native readiness boundaries while preserving lazy registration and existing launch authority. Do we have a high-confidence way to reproduce the issue? Current-main source permits rendering before registration settles, and the supplied exact-base browser screenshot shows the misleading invalid-link state; no target code was executed during this review. Is this the best way to solve the issue? The change uses the existing registration owner, removes redundant presentation state, and preserves lazy imports, launch identity, and Gateway ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8f6adf32be2b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -17, Tests +103, Other -1. Total +85 across 3 files. Added test files: 0. 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. 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, 8:01 AM ET / 12:01 UTC. |
Counts describe unconverted presentation responsibilities at base
39adcaaa0d0a6a754f4ea5c2ae682dffedba2a91, rather than every occurrence of a Solid API. Input JSX and Keyframe readiness retain separate replacement PRs. Plain owner admission, event ordering, and foreign-DOM mounts are intentional exceptions; this change adds none.What Problem This Solves
Opening a plugin app needs the lazy chat custom element to register before the conversation can render. Apps tracked its download failure and retry counter in signals around an imperative effect. While registration was held, the page could show the invalid-link state before it was ready to decide that.
Solution
Read the existing registration owner's promise through an async memo, with
LoadingandErroredaround the selected app. A failed import has a visible retry, and closing the route retires its pending presentation. The plain registration owner still deduplicates imports, verifies the tag, and removes failed attempts. The chat route remains lazy; tags, classes, launch context, and Gateway authority stay intact.Supersedes #179946. This focused replacement preserves that patch on current main because the old PR's managed-checkout metadata was damaged during the October 21 disk emergency. The damaged metadata is left untouched.
Evidence
ci:fullrequested; every UI shardProduction Knip exits 1 on both exact revisions for
src/infra/heartbeat-active-hours.tsandsrc/infra/heartbeat-wake-policy.ts; no ignore or baseline was added.The focused regressions hold registration, assert a loading state with no unregistered conversation host, reject the import, retry through the visible control, and verify the launched app. A separate case closes the route before rejection and reopens it without leaking the retired failure. The existing heading regression is preserved.
Both builds use identical normalized metadata on the same machine and the same three packaged plugin UI revisions (memory-core, nostr, whatsapp). The first baseline had four extra local packaged outputs; its apparent savings were withdrawn and the baseline was rebuilt with the matching inventory. The corrected strict differential passes without waivers. No head rebuild or repeated test run was needed.
Size and checklist
In the touched production page, manual read/error presentation goes 1 → 0, effect 1 → 0, error and retry signals 2 → 0, and native async readiness/boundary 0 → 1. The other nine checklist items remain 0. The retained manual import is the existing custom-element registration boundary, not a component signal loader.
Screenshots
Exact-base/head synthetic waiting-state frames at 1440×1000 were inspected in full. The base reports an invalid app before registration finishes; the head shows “Loading plugin apps…” and keeps Close app available. Both screenshots contain synthetic fixtures only.