Repository navigation
Conversation
…claw#127578) Replace the manifest-default shortcut with canonical activation, prepared metadata discovery, platform defaults, and authored source policy. Keep auto-enable projection local so Skip preserves existing settings. Real bundled-registry probes cover onboarding and configure; all 23 focused regressions, scoped types/lint/format, owned mock-ratchet shrink, and independent Codex reviews pass. The inherited global infra test-root budget failure is documented separately.
|
🦞👀 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: f0d30d1766
ℹ️ 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".
|
Codex review: needs maintainer review before merge. What this changesThe plugin configuration wizard selects plugins using canonical activation policy while preserving authored settings and bundled-provider compatibility. Example: Run configure --section plugins with plugins.entries.xai.enabled=false.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a current-main wizard activation defect and resolves the earlier bundled-provider compatibility finding; no actionable defects remain. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherOnboarding and configure consume workspace-scoped plugin metadata and activation policy to produce configuration choices, then write only settings the user changes. flowchart TD
A[Onboarding or configure] --> B[Workspace metadata snapshot]
B --> C[Auto-enable projection]
C --> D[Provider compatibility projection]
D --> E[Canonical activation policy]
E --> F[Plugin configuration picker]
F --> G[Authored settings writer]
Technical reviewBest possible solution: Land the canonical activation repair with authored settings and bundled-provider compatibility preserved. Do we have a high-confidence way to reproduce the issue? Current-main source deterministically offers a default-on plugin despite explicit disablement; the supplied stable CLI output demonstrates the same user-visible mismatch, without executing target code during this review. Is this the best way to solve the issue? The patch repairs the shared inventory used by both wizard flows through existing activation owners and keeps temporary policy projections out of settings writes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2ff0acf65b1d. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +49, Tests +171, Other -1. Total +219 across 3 files. Added test files: 0. View PR surface stats
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 HistoryReview history (1 earlier review cycle)
Reviewed October 17, 2026, 11:17 AM ET / 15:17 UTC (Revision 2). |
Apply the existing provider-only compatibility projection before canonical inventory filtering. Preserve strict allowlists and authored plugin settings. Verified both native CLI flows on stable-owned stores, 31 related tests, typed checks, and independent Codex reviews.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Closes #127578
What Problem This Solves
Summary
The plugin wizard offers explicitly disabled default-on plugins and misses plugins activated by canonical slot, platform, channel, or auto-enable policy. Both onboarding and
configurenow use the existing activation owners, including bundled-provider upgrade compatibility.User Impact
Settings choices follow effective activation. Explicit disablement, global policy, workspace trust, and strict allowlists are respected. Migrated compat-mode installations retain their default bundled providers. Skipping plugin setup preserves authored plugin settings.
Why This Change Was Made
Root Cause
listEnabledConfigurableManifestPluginsusedenabledByDefault || entry.enabled === true. Metadata intentionally includes disabled records, so this shortcut could not apply activation-policy precedence.Execution path: onboarding/configure -> shared manifest inventory -> configurable fields -> wizard choices.
The first candidate also omitted bundled-provider compatibility: with machine-owned
plugins.bundledDiscovery=compatandplugins.allow=["memory-core"], runtime retained default bundled providers but the wizard rejected them as not allowlisted. This revision reuses the same provider-only projection asprojectInstalledPluginIndexPolicy.Changes
withBundledPluginEnablementCompat(..., activation: "defaults")to bundled provider owners, including contract-only providers, before canonical activation. Other origins and non-provider owners keep their original policy projection.resolveEffectivePluginActivationState(...).activated.Earlier candidate #132604 is closed unmerged. This patch does not include its unrelated alias-saving behavior.
Evidence
Real Behavior Proof: shipped CLI and stable-owned data
Installed the public
[email protected]package, whose CLI reports2026.10.4 (383c124). Its normal package lifecycle completed successfully. Created three synthetic, isolated profiles, then used that installed CLI's Doctor to migrate their legacy discovery setting into the actual shared SQLite store. The stable CLI owned and loaded the resulting existing settings before the candidate opened the same profile directories.For each profile, ran the actual installed CLI and then the candidate's
pnpm openclawentrypoint through:Onboarding used explicit auth skip, loopback-only configuration, and flags skipping service installation, channels, skills, search, health, hooks, workspace bootstrap, and Control UI launch. PTY automation answered real prompts, selected Skip/Back, and declined telemetry, memory setup, optional plugins, and shell completion. No
WizardPrompterwas injected.All 12 native CLI flows exited 0. Each candidate flow was followed by assertions against the actual saved configuration and machine-owned SQLite row.
webSearch.inlineCitations=trueretainedThe installed version displays the plugin as
@openclaw/xai-plugin; the candidate displays the same provider ID asxAI (Grok).Redacted terminal rows and stored-data receipts
Terminal rows below have paths and cursor controls removed.
The captured onboarding menus likewise omit xai in the explicitly disabled and strict cases, retain
xAI (Grok)in the compat control, and complete with Skip.{"fixture":"disabled","bundledDiscoveryMode":"compat","authoredAllow":["memory-core"],"xaiEntryPresent":true,"explicitlyDisabled":true,"savedInlineCitations":true,"expectedPluginStatePreserved":true} {"fixture":"compat","bundledDiscoveryMode":"compat","authoredAllow":["memory-core"],"xaiEntryPresent":false,"explicitlyDisabled":false,"expectedPluginStatePreserved":true} {"fixture":"allowlist","bundledDiscoveryMode":"allowlist","authoredAllow":["memory-core"],"xaiEntryPresent":false,"explicitlyDisabled":false,"expectedPluginStatePreserved":true}The complete sanitized native receipt JSON has SHA-256
adc98411a87593f33498a24e733c9b2f1d5268715747e2941aa471f0e033be22.Native captures used the reviewed working candidate. Final commit
21c0134183a2ba810b6acf8af37045b1ff0dbc71has the exact captured production/test delta SHA-2563379440a3c5d2d923e47d07e341fbc85817b22509abb24c431f09685a8ac2147against clean main8839e329ea705e015d2a0a758990c035652f6d7f. The separate baseline-file change only removes the obsolete exception. Fresh main8cfa2ec42441eefefcdbf5626d8063fd239137bcretains the original wizard source; the final candidate merges cleanly with it.Test
OPENCLAW_VITEST_RUNTIME=node node scripts/run-vitest.mjs src/wizard/setup.plugin-config.test.ts src/plugins/installed-plugin-index.compat.test.ts --maxWorkers=1: 31 passed across two shards in 26.18 seconds. Wizard shard: 27 tests, 2.13 seconds. Installed-index shard: 4 tests, 20.53 seconds, dominated by transform work.test/tsconfig/tsconfig.core.test.commands.jsontype graphs passed.git diff --checkpassed. Runtime value cycles: zero.pnpm buildand real source-CLI bootstrap builds passed, including the bootstrap import guard and control-plane module checks.codex review --base origin/mainboth completed with no actionable findings.Risk
Compatibility and activation scope are covered by real stable-to-candidate profile reuse, both CLI entrypoints, restrictive compat and strict controls, retained saved settings, and existing installed-index sibling tests. Workspace trust and non-provider policy use their original projection. Provider execution and credential flows were not changed or exercised.
Changelog
Release-note context: plugin setup/configuration inventories honor effective activation, retain bundled-provider upgrade compatibility, and preserve skipped settings.
CHANGELOG.mdis release-owned.Notes
AI-assisted: yes. Testing degree: focused regression and static checks plus completed native CLI and stable-data upgrade proof. Broader regression coverage belongs to PR CI.