Repository navigation
refactor(ui): use native actions for suggested profiles - #179846
Conversation
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. |
|
🦞👀 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. |
Preserve the existing error owner contract after successful adoption retry and prove explicit acknowledgment clears the recorded failure.
Merge current main and update the busy-load browser check for the Session members heading introduced by #179752. Preserve its remaining menu, prewarming, and draft-retention assertions.
|
Codex review: needs maintainer review before merge. What this changesThis PR presents suggested Cloud profile adoption through a native Solid action while retaining the existing operation owner. Example: Select the suggested Cloud profile with provider crabbox and display provider aws.
Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this is an owner-directed Solid refactor that preserves the existing adoption contract, with no actionable introduced defect found; exact-head CI is still finishing. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherNew Session's Where picker sends adoption intent to DraftSuggestedCloudProfile; DraftGatewayState performs the existing Gateway RPC and publishes the accepted catalog before profile selection. flowchart TD
A[Where picker] --> B[Adoption owner]
B --> C[Gateway catalog owner]
C --> D[Existing adoption RPC]
D --> C
C --> E[Accepted profile selection]
B --> F[Solid action presentation]
E --> F
Technical reviewBest possible solution: Retain the existing adoption owner and its narrow completion/retirement receipt, with Solid responsible only for temporary presentation. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor, so no original product failure is claimed or required; supplied browser captures and owner/picker coverage exercise the retained contract. Is this the best way to solve the issue? The change follows the existing ownership split: synchronous admission and settlement stay plain TypeScript, while one native action presents saving and retires without cancelling the authoritative request. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8c6ce699b346. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +41, Tests +126. Total +167 across 6 files. Added test files: 1. 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 21, 2026, 6:02 PM ET / 22:02 UTC. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 40fc5a9958
ℹ️ 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".
| if (request.isCurrent()) { | ||
| setSaving(true); | ||
| } | ||
| yield Promise.race([request.completion, request.retired]); |
There was a problem hiding this comment.
Retire the adoption action before page cleanup
When the user navigates away or changes the New Session route while environments.adoptSuggestedProfile is still pending, this action races only the owner's retired promise, but the bridge's synchronous propertyChanged/disconnected hooks retire only the submission presentation. The later owner.disconnect() path would eventually call suggestedCloudProfile.cancel(), but Solid parks reactive cleanup while an action is pending, so the old page root, draft, and Gateway subscriptions can remain held—and same-host route updates can remain stuck—until the RPC settles or times out. Retire this adoption lifetime from the synchronous page property/disconnect owner, as is already done for submission presentation.
AGENTS.md reference: ui/AGENTS.md:L5-L5
Useful? React with 👍 / 👎.
|
Merged via squash.
|
) * refactor(ui): use native actions for suggested profiles * test(ui): brace suggested profile retry fixture branches * test(ui): retain suggested profile errors until acknowledged Preserve the existing error owner contract after successful adoption retry and prove explicit acknowledgment clears the recorded failure. * test(ui): align session sharing smoke assertion * test(ui): wait for mounted empty session details * test(ui): diagnose modified source navigation failures
Wave-ten scope census
Whole assigned scope: 171 production files / 37,589 physical lines at verified official main
72ad5e9dd83ee4d2b7f89b236f7c9256fd579a55. The latest fleet census credits the merged Model Setup detection read; this PR retains its separately named merge base below. Counts show the qualified main census → this PR’s single adoption; unmerged sibling work receives no credit. Cron remains with the recipes lane. Exact merge-base/head LOC and byte comparisons appear below.What Problem This Solves
Adopting the suggested Cloud profile in New Session's Where picker now presents saving with a Solid generator action and
createOptimistic(false). The plain owner retains synchronous admission, errors, accepted profiles and settlement. Conflicting controls remain disabled during adoption; failures remain visible and retryable. Reselection and reconnect retire presentation without allowing late replies to replace current intent.Successful selection already retires this presentation after the owner accepts the server profile and starts catalog reconciliation. The existing readiness-null observer has no data to reconcile, so inventing an optimistic profile or refresh target would add no value. Saving is passed separately from the aggregate owner props.
Production LOC: 670 → 711 (+41). Touched tests and fixtures: 580 → 765 (+185).
Evidence
Head
40fc5a9958b605120e03728c3016cffb10eca195merges official main242ccbb10267779c6124c72ecf961b25d6f5635a. All authored production/test blobs are byte-identical to the reviewed prior head. The comment-only conflict uses main's exact shared-test blob; the boot and Subagents repairs are no longer PR changes.pnpm deadcode:knippassed in 5m 57.9s, with no findings or new ignores.242ccbb/40fc5a9builds and strict checks passed with identical full seven-plugin inputs: startup 325,507 → 325,506 B (−1 B), 9 JS requests; CSS 40,912 B, 1 request unchanged. Chat 1,442,161 → 1,442,105 B (−56 B); New 1,019,895 → 1,020,026 B (+131 B). All route/locale caps pass.The source-navigation diagnostic records bounded sanitized event state only on failure; it adds no retry or production hook and rethrows the original failure. The prior full run passed that case but failed the shared sidebar-order test, also failing on completed scheduled main run39707038848. That does not qualify this new head; actual current-head failures must match before inherited admission. No merge intent is armed.
Prior local setup failures are retained as gaps: the managed-media replay stopped in worker preparation before assertions, and one scoped lint wrapper timed out in declaration preparation. Neither is reported as a pass. Fresh CI supplies final-head broad proof; no local full suite, remote lease, or parity run.
Visual proof
Before and after, in order: available suggestion, adoption pending, failure with retry.