Repository navigation
Conversation
Add descriptor-driven cloud setup through the bundled Crabbox plugin, managed CLI preparation, protected SQLite SecretRefs, and canonical profile config CAS. Keep manual profiles in Advanced and preserve New Session drafts across setup. Add an explicitly confirmed, server-owned test session using ordinary placement, remote workspace proof, and exact cleanup with restart-safe private metadata. Prepare the exact worker runtime before enrollment and keep cloud credentials in the selected Gateway-side provider command. Release-note context: Settings can configure named cloud connections without allocating resources on save or read-only checks. A real test requires separate cloud/model consent. Related to #130713 (guided cloud-session setup). This is an unlanded implementation checkpoint. The unchanged Plugin SDK budget still needs resolution, and hosted direct-Daytona acceptance waits for the separate native failed-allocation cleanup repair. No release is implied.
Load cloud test observation and English copy with their Settings/Plugins surfaces, retaining one application-owned observer across navigation and rejecting late initialization or starts after application disposal. Keep complete source catalogs in canonical i18n/build tooling. Correct the provider help and docs: requested account scope is not authenticated scope, and idle stop or a short session test is not hard-TTL destruction proof. Validation: startup JS 346360 -> 342665 bytes against the unchanged budget; 253 UI/tooling tests, 28 setup tests, UI types, focused lint and docs checks pass. Fresh isolated Codex P0 review reports no actionable findings. This remains an unlanded checkpoint for guided cloud setup (#130713). The SDK budget and native direct-Daytona lifecycle acceptance are unresolved; no hosted allocation, merge, or release is implied.
A restart-required write advanced the reloader's effective baseline before services or secrets were active. An equivalent Apply write could then pause the pending restart and fail source publication against the old runtime. Distinguish applied, restart-pending, and explicitly skipped candidates. Preserve accepted source journaling and committed environment ownership while keeping service comparison and applied revision tied to actual runtime publication. Replace parallel unapplied fields with one bounded record. Add real managed-reloader/secret-store regressions for equivalent writes, watcher echoes, metadata, skipped/invalid/reverted candidates, and shutdown. Isolate two existing include-file fixtures from host-default state. Validation: 547 tests across 12 files and the scoped changed-file gate pass. Production delta is -1 line; secret/epoch/restart guards and storage formats are unchanged. Fresh Codex P0 review found no actionable findings; its policy excluded unchanged managed-secrets context, which was inspected locally. Live Save/Apply replay remains a separate next step. Related to #130713 (guided cloud-session configuration).
Wait for the exact applied config revision before refreshing the current client's hello in Cloud setup and Plugins. Reuse the config owner's existing refresh loop and retain Gateway, auth, source, mutation, and page fences. Keep long diagnostics readable in wrapping descriptions and report a closed archive-format rejection without exposing raw native details. Explicit CLI installation refreshes inspection so operator-provided executables can be adopted and removed or tampered files cannot report stale availability. Ordinary inspection remains process-cached and concurrent installs coalesce. Validation: 243 UI/diagnostic tests, final 41 selected installer/setup/discovery tests, canonical UI/extension types, focused lint, i18n, docs, and formatting pass. Regression failures were captured first. Fresh Codex P0 review reports no actionable findings. Full candidate build and live replay follow. Managed PAX extraction is still blocked in fs-safe; no dependency, hash, extraction safeguard, SDK budget, or native lifecycle gate was bypassed. Related to #130713 (guided cloud-session setup).
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 27, 2026, 1:38 PM ET / 17:38 UTC. ClawSweeper reviewWhat this changesAdds a guided Control UI flow and generic plugin setup contract for Crabbox connections, secret references, CLI preparation, and cloud profile testing. Merge readinessKeep this draft open: an unverified Direct Daytona profile can enter the normal billable session flow despite the stated unresolved lifecycle acceptance, and the new public setup surface needs maintainer direction. Priority: P1 Review scores
Verification
How this fits togetherCloud-session setup spans the Control UI, Gateway plugin protocol, and bundled Crabbox provider. Operator input becomes secret references and profile configuration, then the Gateway may prepare and test a temporary worker. flowchart LR
A[Operator in Control UI] --> B[Guided cloud setup]
B --> C[Gateway plugin protocol]
C --> D[Crabbox provider]
C --> E[Secret store and config]
E --> D
D --> F[Temporary cloud worker]
F --> G[Session placement]
Decision needed
Why: The draft's stated acceptance boundary conflicts with its current launch path, and choosing between fail-closed placement and a persisted per-profile acceptance mechanism changes product and public-contract scope. Before merge
Findings
Agent review detailsSecurityNeeds attention: No direct credential leak was found in the inspected runner, but the new Codex launcher-execution contract could not receive the required upstream source review. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep lifecycle-unverified providers out of normal Gateway placement until native lifecycle acceptance is proven; if a per-profile test is intended to unlock placement, make that evidence server-owned, revision-bound, and enforced at dispatch. Do we have a high-confidence way to reproduce the issue? Yes: a profile whose check is absent or returns Is this the best way to solve the issue? No: the current UI-only condition treats unverified lifecycle status as launchable, whereas the normal placement boundary needs a fail-closed policy or server-enforced acceptance record. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 834368b7d444. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer scope update: simplify this draft around ordinary cloud sessions, rather than add a separate test-session lifecycle. The dedicated cloud-test wizard, cleanup-only session marker/recovery, browser observer, and pass/teardown certification UI are being removed. Settings will configure the connection, perform explicitly read-only checks, and hand off to normal New Session with the profile selected and the user's draft preserved. Normal sending is the billable action; existing session/placement owners retain execution, recovery, Stop cloud worker, and archive responsibilities. A completed turn or closed browser is not a promise of immediate worker destruction. This also resolves the requested product-policy decision: we will not add a persisted per-profile test-acceptance gate. A diagnostic model response is not authorization or a teardown certificate. Provider capability/preflight checks and correct native allocation/recovery/reclaim contracts remain mandatory; this direction is not a waiver of the outstanding native acceptance proof. Independent config/plugin repairs will be separated where they provide a useful, fully validated fix on their own. The generic restart-pending owner repair has a five-file standalone handoff; current-main receipt changes must survive integration. The SDK surface, managed archive installation, current-main integration, and native/deployment proof remain open gates. No claim of readiness or completed simplification yet. The current screenshots and test totals describe the existing |
Keep restart-pending and skipped candidates separate from the active config and plugin-install comparison baseline. Equivalent writes and watcher echoes retain restart debt without publishing inactive services or secrets. Exact reverts cancel only config-owned debt, and signaled plugin metadata stays pending until its running generation is replaced. Extract the generic owner repair from 97c6b86 without the guided cloud setup feature. Preserve current-main config-write application receipts. Extend the original revert scenario through residual plugin-index and metadata work, with real managed-secret/reloader regressions. Fixes openclaw#119360. Related to openclaw#131067 and openclaw#130713. Co-authored-by: Aniruddha Adak <[email protected]>
|
Retiring this large draft (+13k/-3k, 159 files). It introduces a new guided provider-connection flow and WorkerSetup RPC surface, and its own notes record unverified billable lifecycle paths. Guided cloud setup should come back as a scoped design on current main if it is still wanted. Closed in a sweep of stale maintainer PRs (no activity for 7+ days). Reopen with a current reproduction if this still matters. |
Related: #130713 — guided cloud-session setup with Crabbox and protected credentials.
Related: #130966 — generic support for omitted Crabbox profile classes; coordinate the overlapping prerequisite during integration.
Additional instructions
Maintainers can update this repository branch. This PR is AI-assisted and intentionally remains a draft. The unresolved gates below are not waived; no merge or release is requested.
What Problem This Solves
Setting up a cloud session currently requires operators to connect plugin enablement, native CLI installation, provider credentials, raw worker profiles, runtime preparation, and lifecycle verification themselves. New Session offers little guidance when no cloud profile exists, and a successful credential check is easy to confuse with a working remote session.
This change adds a guided Settings flow and a Set up cloud… entry in New Session, preserving the draft and selecting the saved destination on return.
Why This Change Was Made
Crabbox remains an optional bundled plugin. Provider-specific descriptors, native tooling, credential resolution, and leases belong to that plugin; core and the Control UI consume generic setup contracts. Named connections use canonical SecretRefs backed by the existing protected SQLite secret store, not plaintext configuration. The store is not encrypted at rest.
Saving, installing tooling, and read-only checking do not allocate a worker. The separately confirmed test uses ordinary session creation, placement, execution, workspace reconciliation, and reclaim. Its pass condition requires a real remote turn, accepted inbound manifest, exact unpredictable file bytes, and verified teardown. The Gateway owns cleanup, not the browser; a bounded private marker in existing session metadata retains exact cleanup ownership through restart, without a new table or schema version.
The plugin prepares supported Node and the exact OpenClaw runtime before enrollment. Existing/manual profiles remain in Advanced; omitted classes remain omitted, advertised machine choices stay authoritative, and warm images require a known effective class. Cloud-only code and English copy load lazily, preserving the existing startup budget.
Live setup uncovered two activation defects repaired here: the UI must wait for the config owner's applied revision before reconnecting for new plugin methods, and restart-pending configuration must not become the active-runtime comparison baseline. The latter repair preserves the original active source while carrying the pending candidate through equivalent writes and watcher echoes; it does not add retries or a parallel restart path.
User Impact
Administrators get a provider-connection form, protected credential entry, actionable dependency diagnostics, and separate credential/lifecycle/endpoint status. They can return to New Session without reconstructing their draft. Selected provider commands resolve current credentials without placing them in argv, global process state, worker setup, or agent tools. Existing manual configuration remains available.
Direct Daytona is not adoption-ready in this draft. The pinned Crabbox 0.46.0 CLI does not provide the complete direct session lifecycle. A configured connection, capability advertisement, or successful short test must not be interpreted as proof of hard-lifetime enforcement. The screenshots deliberately show the unsupported lifecycle rather than a false success.
Evidence
Real isolated Gateway proof
Final candidate:
cfbe8cfa19bac80451f1328c834c833cf3a50a9e. Real built Control UI and Gateway, isolated state and port, no mocked Gateway/provider responses. Account-specific form fields and credentials are masked. No cloud worker or model turn was started by this proof.plugins.setEnabled; UI obtained a new hello only after applied configuration. No driver refresh/reconnect and no Gateway process restart.install_archive_rejected, no false Compatible state, no allocation. This is failure characterization, not successful installation.unmanaged, version 0.46.0, without restarting the Gateway. This does not prove managed archive installation.secrets.store.set→crabbox.setup.prepare→config.patch→ normalconfig.apply→ actual Gateway restart. Applied revision matched saved configuration; one connection/profile became active; config contained a store SecretRef and no plaintext key.credentials: verified,allocation: none,lifecycle: unsupported,endpoint: not_configured. Exact diagnostic codes:endpoint_unproven,posix_script_unsupported,credentials_verified. Credential access is proven; hosted execution is not.wizard.start→wizard.cancelendedcancelled/not-allocated, with no session creation/dispatch/send.Before: manual profile form — real pre-feature build at
036e635c71cba06cae81722a803b3e61276d3ab3.After: guided connection with protected credentials — masked key, organization, and account-specific snapshot.
Read-only result stays honest about unsupported execution.
Draft preservation, installation failure, and consent screenshots
The attached 7.24-second recording shows the real confirmation/cancellation flow. Its confirmation and terminal frames were inspected. It is not remote-turn or allocated-worker teardown evidence. No credential-entry video was recorded.
Builds, tests, and review
pnpm buildpassed on the final candidate. Startup JavaScript measured 342,633 bytes gzip, below the unchanged 342,930-byte baseline + 512-byte tolerance, with all eight startup assets counted. The first full build failed at 346,360 bytes; moving the observer and cloud-only English catalog behind the lazy page fixed the cost without changing budgets or asset accounting.Recorded test batches are separate checkpoints, not a summed campaign-wide count or one full-suite invocation:
Selected exact executed commands
Run separately from the repository root. These reproduce recorded focused batches; no claim that all historical batches ran together on final HEAD.
The final command fails at the unchanged SDK budget, as detailed below. Passing scoped checks or
check-plugin-sdk-exportsduring the build do not make that gate green.Isolated Codex autoreviews completed at the required default P0-only threshold without actionable findings, covering the feature and subsequent commit groups. One optional unchanged context file was refused by the review helper's sensitive-path policy; it was omitted without bypass and inspected locally. This is not all-priority certification, hosted acceptance, or a substitute for the unresolved gates.
Two historical test hazards remain recorded rather than claimed fixed: a reused-PID temporary database reopened obsolete schema state, and a session-send RPC test timed out once. Unchanged scoped reruns passed; the database isolation issue has a separate follow-up. The restart-owner tests also required correcting two include-file fixtures to use their own state directory instead of host-default state. No timeout increase, weakened assertion, or budget override masks these results.
Remaining draft gates
0b80ba8240b29eb08a1cf4e020ab03ef3700e271reported 19 conflicting paths. Integrate the shared profile/catalog/SDK/UI/docs changes coherently, then rerun exact-head validation. Do not resurrect the deleted manual form to resolve its modify/delete test conflict. This draft does not claim green PR CI or merge readiness.Scope and release-note context
Four commits against
036e635c71cba06cae81722a803b3e61276d3ab3, 159 paths. Raw production/tooling +7,587/-2,042 (net +5,545); tests/support +5,280/-1,188 (net +4,092); generated Swift client net +444; authored docs net +92; generated docs net 0; assertion-ratchet metadata -1. These are raw counts including moves, not adjusted complexity metrics. The restart-owner repair itself is production net -1; feature growth adds the generic setup contract, plugin-owned connections/install/runtime preparation, guided UI, and server-owned test/recovery boundary. Removed paths include the bespoke raw profile form and duplicate lifecycle/control branches; moved code is not claimed new capability.Release-note intent, once the remaining gates are resolved: guide cloud-session setup through provider connections and protected credentials, preserve New Session drafts through setup, and distinguish read-only readiness from a separately confirmed real session test. No changelog or version bump is included.
Documentation: https://docs.openclaw.ai/gateway/cloud-workers
consent-cancel.mp4