Skip to content

refactor(ui): use native actions for suggested profiles - #179846

Merged
steipete merged 8 commits into
mainfrom
solid2/w-s2-suggested-profile-actions
Oct 22, 2026
Merged

steipete merged 8 commits into
mainfrom
solid2/w-s2-suggested-profile-actions

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

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.

Wave-ten item New Session Model Providers Model Setup Channels Skills
1. Frozen intrinsic handlers 0 0 0 0 0
2. Component cleanup pending / allowed reactive or immediate 1 / 2 4 / 0 1 / 1 3 / 0 0 / 0
3. Original ordinary read families: adopted / pending / excepted 7 / 2 / 0 5 / 3 / 0 1 / 1 / 1 2 / 0 / 3 2 / 5 / 0
4. Mutation families: adopted / pending / excepted 2 / 4 / 0 → 3 / 3 / 0 0 / 7 / 1 0 / 2 / 0 0 / 4 / 0 0 / 8 / 0
5. Manual signal-based component loaders 0 0 0 0 0
6. Copied editable collections / unkeyed interactive lists 0 / 0 0 / 0 0 / 0 1 / 0 0 / 0
7. Handwritten createComponent 0 0 0 0 0
8. Throw-only context wrappers 0 0 0 0 0
9. Uncoordinated sibling Loading groups / exception 0; preview/composer independent 0; usage/cost separate retries/pacing 0 0 0
10. Escaped owner APIs 0 0 0 0 0
Production files / physical LOC 99 / 19289 22 / 6788 22 / 4878 14 / 3158 14 / 3476

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 40fc5a9958b605120e03728c3016cffb10eca195 merges official main 242ccbb10267779c6124c72ecf961b25d6f5635a. 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.

Check Result
Frozen install / UI tsrs Passed after integration.
Focused behavior Corrected owner/WhereChip coverage passed 8/8 with pinned Bun and one worker, preserving the owner's explicit error acknowledgment. This is qualified prior-head proof.
Independent review Original implementation, retained-error test and failure-only navigation diagnostic reviewed independently. Shared comment-only conflict resolution independently reviewed; no actionable findings.
Production Knip Final-head production pnpm deadcode:knip passed in 5m 57.9s, with no findings or new ignores.
Build / strict budgets Exact 242ccbb/40fc5a9 builds 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.
Current full CI Run39711245747 completed success on exact head40fc5a9, including all UI and real-Gateway shards.
Visual proof Three synthetic before/after states inspected and retained below.

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.

Before: suggested-profile

After: suggested-profile

Before: adoption-pending

After: adoption-pending

Before: adoption-error

After: adoption-error

@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 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-22T02:38:09.347256Z 40fc5a9 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 commented Oct 21, 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.

Preserve the existing error owner contract after successful adoption retry and prove explicit acknowledgment clears the recorded failure.
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 21, 2026
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.
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: The existing owner disables conflicting controls during adoption and records failures.
  • After: The same behavior uses a Solid saving presentation that retires on completion, reselection, or reconnect.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused owner-preserving refactor with inspected browser proof, meaningful consumer coverage, and no actionable finding; pending CI remains a separate merge gate.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected paired screenshots from the built New Session route with a synthetic Gateway at 1280×900, showing available Cloud, held adoption, and visible failure with the Cloud option available again; rendered-owner tests additionally cover accepted retry and retirement before late rejection.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Cloud adoption must preserve disabled controls, visible failures, retry, and protection against late results; no visible behavior change is intended.
Reason: The established feature owner directs this focused native-action migration, and the diff preserves the existing product contract without new configuration or public API.

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
Reviewed head: d4eaabe95a9c53ea04b37f60a470547079679ec7

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Suggested-profile admission and settlement keeps the original intent (febccf6: Save a discovered Cloud profile on first use while keeping admin authority, visible errors, and newer selection intent authoritative.)
  • Where picker catalog and busy presentation keeps the original intent (e330a5a: Present existing catalog completion through narrow Solid boundaries without moving request authority or remounting accepted choices.)
  • Draft fixture notifications keeps the original intent (3726364: Retain synchronous domain owners and explicit change notifications after retiring Lit-era callback contracts.)
  • Busy-load Sharing heading assertion keeps the original intent (fix: clarify partial People lists and fade clipped Details text #179752: Clarify Sharing labels using existing membership facts; the assertion now follows the approved Session members heading.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +41, Tests +126. Total +167 across 6 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 57 16 +41
Tests 4 217 91 +126
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 274 107 +167

Review metrics

Metric Value Why it matters
Production versus test growth Production net +41 lines; tests and test support net +126 lines. Production growth supplies retirement-aware action presentation; added tests exercise the real picker across held adoption, retry, reselection, and reconnect.

Labels

Label changes:

  • add P3: This preserves existing user behavior while completing a focused UI presentation refactor.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This preserves existing user behavior while completing a focused UI presentation refactor.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • 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 21, 2026, 6:02 PM ET / 22:02 UTC.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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]);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

@steipete
steipete merged commit 2f17d4d into main Oct 22, 2026
118 of 120 checks passed
@steipete
steipete deleted the solid2/w-s2-suggested-profile-actions branch October 22, 2026 03:11
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
)

* 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
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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M 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