Skip to content

feat(onboarding): recommend plugins and skills from installed apps - #109668

Merged
steipete merged 6 commits into
mainfrom
claude/app-plugin-matching-onboarding-dd86a3
Jul 17, 2026
Merged

steipete merged 6 commits into
mainfrom
claude/app-plugin-matching-onboarding-dd86a3

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

New users finish onboarding with a bare install even when their Mac is full of apps
OpenClaw already has plugins and skills for (Notion, Obsidian, Slack, 1Password,
Things, …). Nothing connects "what is installed on this machine" with "what OpenClaw
can do with it", so discovery is manual catalog browsing.

Why This Change Was Made

Adds installed-app plugin/skill recommendations to openclaw onboard:

  1. Scan — enumerate /Applications, ~/Applications, and a small allowlist of
    /System/Applications (TCC-free: no permission dialog can fire — readdir,
    Launch Services, and Spotlight metadata are unprotected paths; verified on a real
    machine).
  2. Candidates — loose name matches from the official plugin/channel/provider
    catalogs plus top-3 ClawHub skill search hits per app (concurrency 4, 5s/request,
    20s overall budget; failures degrade to catalog-only candidates).
  3. AI matching — one completion on the model route the wizard just verified. The
    model receives app names + candidate descriptions and returns genuine matches with
    a tier (recommended/optional) and a short reason. No curated bundle-id map to
    maintain; the model rejects coincidental name overlaps (naive matching paired
    Linear→line, Zed→zededa, Parallels→parallel in prototyping — the live test
    asserts these traps stay dead).
  4. Consent surface — the wizard step is deliberately "magical" (product decision):
    no consent prompt before the scan, but the scanning progress line and the results
    note both disclose that app names are matched using the configured model and
    ClawHub search, and wizard.appRecommendations: false disables the feature
    entirely. The results step lists detected apps and installs only what the user
    selects (recommended tier pre-checked, explicit skip).
  5. Remote gateway path — the TS node-host gains the device.apps invoke command
    Android already ships (same envelope; macOS emits label/bundleId where Android
    emits label/packageName). Node-side sharing is off by default (privacy
    parity with Android's consent toggle) via node-host config /
    --share-installed-apps; disabled invokes return the typed
    INSTALLED_APPS_SHARING_DISABLED error. The gateway allowlists the command for
    macOS nodes and strips it everywhere when the kill switch is off. Local onboarding
    scans directly and does not use the node command.

Also fixes a latent bug this feature exposed: runSetupInferenceTest applied the
32-token verification-probe output cap (SETUP_INFERENCE_TEST_MAX_TOKENS) to every
completion, so any custom prompt longer than a few words returned a reasoning-only
turn and "Agent couldn't generate a response." Custom-prompt completions now use the
model's own output budget; the probe keeps its cap.

Prior art: Setapp is the only mainstream product doing install-scan → recommendation;
its trust framing (scan silently, show the detected list, act opt-in) is what this
follows, with explicit disclosure because app names do leave the machine.

User Impact

  • openclaw onboard (non-quickstart, macOS, working model route) gains one optional
    step: detected apps → tiered multiselect → install. Zero matches or any failure
    (offline ClawHub, model error, malformed model output) skips the step silently;
    onboarding never blocks on this feature.
  • New config key wizard.appRecommendations (default enabled) to disable.
  • Mac/headless nodes can opt in to sharing their app inventory with the gateway
    (--share-installed-apps, persisted in node-host config, default off).

Evidence

  • Live end-to-end test (real ClawHub /api/v1/search + real OpenAI
    gpt-5.6-luna): OPENCLAW_LIVE_TEST=1 OPENAI_API_KEY=… pnpm test:live src/system-agent/setup-app-recommendations.live.test.ts — passed (76s). Fixture
    inventory of 9 real apps incl. traps; model matched Notion→notion,
    Obsidian→obsidian, Slack→slack-api, Linear→linear, Things→things-mac,
    1Password→1password and produced none of the trap pairings.
  • Unit tests (all passing): scanner fixtures/filtering/sorting + Linux-safe plist
    reader injection; candidate dedupe + ClawHub failure degradation; matcher zod
    filtering incl. fenced-JSON/extra-key/overlong-reason tolerance; node device.apps
    gating + Android-parity envelope; gateway allowlist + kill-switch stripping;
    node-host config persistence; wizard gating/pre-check/skip/install paths
    (pnpm test src/infra/installed-apps.test.ts src/system-agent/setup-app-recommendations.test.ts src/node-host/invoke-device-apps.test.ts src/node-host/runtime.test.ts src/node-host/config.test.ts src/wizard/setup.app-recommendations.test.ts src/gateway/node-command-policy.test.ts src/wizard/setup.test.ts src/system-agent/setup-inference.test.ts).
  • pnpm tsgo, pnpm config:schema:check, pnpm docs:check-mdx, git diff --check —
    all green.
  • Autoreview (Codex, gpt-5.6-sol, xhigh): two accepted findings fixed (Linux CI
    plutil dependency in the scanner test; unbounded ClawHub phase → 20s budget). The
    remaining consent-first finding is consciously rejected as the documented product
    decision (default-on with disclosure + kill switch); an inline comment records it.
  • Real-machine scan prototype: 45/52 apps matched, no TCC prompt, <2s.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes commands Command implementations plugin: file-transfer size: XL maintainer Maintainer-authored PR labels Jul 17, 2026

@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: b2213c6be9

ℹ️ 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".

Comment thread src/wizard/setup.ts
workspaceDir,
});
const { setupAppRecommendations } = await import("./setup.app-recommendations.js");
nextConfig = await setupAppRecommendations({

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 Run channel recommendations before channel setup

When a detected macOS app matches an official channel candidate, this recommendation step runs after setupChannels has already finished, and setupAppRecommendations only installs/enables the plugin via ensureOnboardingPluginInstalled. Selecting a Slack/Discord-style recommendation therefore leaves the channel plugin present but never runs the channel setup adapter/account/DM-policy prompts, so the recommended channel is not usable until the user manually reruns channel setup. Route channel candidates back through channel setup or run this before the channel setup step can configure them.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 17, 2026
@clawsweeper

clawsweeper Bot commented Jul 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 17, 2026, 8:58 AM ET / 12:58 UTC.

Summary
The PR adds macOS installed-app-based onboarding recommendations, opt-in node inventory sharing, new configuration and persisted state surfaces, documentation and tests, plus a setup-inference completion fix.

PR surface: Source +1098, Tests +1017, Docs +14, Generated +2. Total +2131 across 47 files.

Reproducibility: not applicable. as a bug reproduction question; this is a new feature, and the reported live run is not an inspectable current-head artifact.

Review metrics: 2 noteworthy metrics.

  • Configuration And Defaults: 1 default-enabled key, 1 persisted setting, 2 CLI flags. These surfaces alter onboarding and node-host behavior and require explicit upgrade and operator-intent review.
  • Remote And Stored Interfaces: 1 node command, 1 SQLite column. The PR expands a gateway-visible privacy boundary and persistent data model beyond the local onboarding feature.

Stored data model
Persistent data-model change detected: durable storage schema: src/node-host/worker.ts, migration/backfill/repair: docs/gateway/configuration-reference.md, serialized state: src/infra/installed-apps.test.ts, serialized state: src/infra/state-migrations.node-host.test.ts, serialized state: src/infra/state-migrations.test.ts, serialized state: src/node-host/invoke-device-apps.test.ts, and 4 more. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🦪 silver shellfish
Result: blocked until real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Resolve the five blocking findings and the maintainer consent decision.
  • [P1] Add inspectable redacted current-head macOS onboarding and node-sharing proof.
  • Demonstrate both fresh-install and upgrade behavior for the new configuration and persisted node setting.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The body reports live tests and a prototype but has no inspectable current-head recording, terminal output, logs, or linked artifact; add redacted macOS proof for consent/disclosure, duplicate filtering, channel setup, restart behavior, and enabled/disabled device.apps, then update the PR body to trigger review or ask a maintainer to comment @clawsweeper re-review.

Risk before merge

  • [P1] Existing users who rerun onboarding would receive a new default-enabled local inventory scan and external metadata-matching step without first opting in.
  • [P1] The additive SQLite preference, CLI flags, and node command lack inspectable fresh-install and upgrade evidence showing persisted opt-in values and command advertisement remain correct.
  • [P1] The remote device.apps API and persistence work are not required by the local onboarding path, increasing compatibility and privacy surface without a demonstrated current consumer.

Maintainer options:

  1. Resolve Privacy and Flow Blockers (recommended)
    Require consent or disable the feature by default, minimize transmitted metadata, filter installed items, configure channels, and apply recommendations before the final restart.
  2. Split Remote Inventory Work
    Remove device.apps, its persisted preference, and gateway policy changes from this PR, then review that remote API separately with a concrete consumer and privacy proof.
  3. Pause the Feature Direction
    Pause or close the PR if maintainers do not want onboarding to inspect installed applications and use external matching services.

Next step before merge

  • [P1] A maintainer must decide the default consent and remote API boundary; the contributor can then address the concrete findings and provide current-head behavior and upgrade proof.

Maintainer decision needed

  • Question: Should onboarding transmit installed-app metadata to the configured model and ClawHub before the user explicitly consents?
  • Rationale: The code can implement several safe variants, but choosing disclosure-only default-on scanning versus an opt-in privacy boundary is a product and trust decision rather than a mechanical repair.
  • Likely owner: steipete — The PR identifies this behavior as a deliberate onboarding product decision and the owner is self-assigned.
  • Options:
    • Consent Before Transmission (recommended): Scan locally, show a concise explanation, require confirmation before external matching, and send app labels without bundle IDs.
    • Disable By Default: Keep the feature behind an explicit wizard setting or onboarding choice that defaults off for existing and new users.
    • Accept Disclosure-Only Default: Retain default-on transmission but disclose every transmitted field and explicitly accept the resulting privacy boundary.

Security
Needs attention: The feature crosses a new local-inventory privacy boundary without prior consent and currently transmits or exposes more host metadata than its disclosures describe.

Review findings

  • [P1] Disclose or strip bundle IDs before model matching — src/system-agent/setup-app-recommendations.ts:267
  • [P2] Configure recommended channels before marking them installed — src/wizard/setup.app-recommendations.ts:157
  • [P2] Filter recommendations that are already installed — src/wizard/setup.app-recommendations.ts:107
Review details

Best possible solution:

Keep recommendation discovery local until explicit consent, transmit only the minimum disclosed app labels, omit the unused remote inventory surface unless separately approved, filter installed items, configure channel selections fully, and apply changes before the final Gateway restart.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug reproduction question; this is a new feature, and the reported live run is not an inspectable current-head artifact.

Is this the best way to solve the issue?

No. The discovery idea is promising, but the safest maintainable version needs an explicit consent boundary, minimized metadata, correct channel and duplicate handling, and service restart ordering; the unused remote inventory API should be split or removed.

Full review comments:

  • [P1] Disclose or strip bundle IDs before model matching — src/system-agent/setup-app-recommendations.ts:267
    The matcher receives each inventory group's bundleId, but the progress and result disclosures say only app names are matched. Strip bundle IDs from the external prompt or explicitly disclose them before transmitting any inventory metadata.
    Confidence: 0.98
  • [P2] Configure recommended channels before marking them installed — src/wizard/setup.app-recommendations.ts:157
    Official channel matches only pass through plugin installation, after the normal channel setup phase has finished. Selecting one therefore leaves its account, adapter, and policy configuration incomplete; route channel matches through the channel setup flow.
    Confidence: 0.97
  • [P2] Filter recommendations that are already installed — src/wizard/setup.app-recommendations.ts:107
    The multiselect includes every model match without checking current plugin records or workspace skills. Accepting defaults can reinstall plugins or make an existing ClawHub skill fail with an already-exists error, so remove installed matches before presenting choices.
    Confidence: 0.96
  • [P2] Strip local paths from device.apps results — src/node-host/invoke-device-apps.ts:67
    The response returns InstalledApp objects directly, including absolute application paths. Gateway callers only need labels, bundle IDs, and system classification; returning host paths unnecessarily exposes usernames and filesystem layout.
    Confidence: 0.99
  • [P2] Apply recommendations before the final Gateway restart — src/commands/onboard-guided.ts:686
    Guided onboarding restarts the Gateway during setup apply and only afterward installs recommendations and writes their config. The immediately launched session therefore uses the pre-recommendation plugin registry until a manual restart; move this step earlier or restart after writing.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 62407b36d780.

Label changes

Label justifications:

  • P2: This is a substantial optional onboarding feature with normal backlog urgency but multiple correctness, privacy, and upgrade blockers.
  • merge-risk: 🚨 compatibility: The PR changes default onboarding behavior and adds config, CLI, persisted-state, and node-command surfaces that existing installations can encounter on rerun or upgrade.
  • merge-risk: 🚨 security-boundary: The PR scans local application inventory and transmits app metadata externally before explicit consent, while device.apps can expose host-specific inventory data.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The body reports live tests and a prototype but has no inspectable current-head recording, terminal output, logs, or linked artifact; add redacted macOS proof for consent/disclosure, duplicate filtering, channel setup, restart behavior, and enabled/disabled device.apps, then update the PR body to trigger review or ask a maintainer to comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +1098, Tests +1017, Docs +14, Generated +2. Total +2131 across 47 files.

View PR surface stats
Area Files Added Removed Net
Source 26 1113 15 +1098
Tests 13 1174 157 +1017
Docs 6 34 20 +14
Config 0 0 0 0
Generated 2 2 0 +2
Other 0 0 0 0
Total 47 2323 192 +2131

Security concerns:

  • [medium] Installed-app metadata leaves the machine before consent — src/wizard/setup.app-recommendations.ts:87
    Default-enabled onboarding scans the local application inventory and uses the configured model and ClawHub before an explicit user confirmation, requiring an intentional privacy-boundary decision.
    Confidence: 0.98
  • [medium] Bundle IDs are not covered by the disclosure — src/system-agent/setup-app-recommendations.ts:267
    Bundle IDs are included in matcher input even though the user-facing copy describes only app-name transmission.
    Confidence: 0.99
  • [medium] Node inventory includes absolute host paths — src/node-host/invoke-device-apps.ts:67
    device.apps returns local application paths that can reveal usernames and filesystem layout without being needed for recommendation matching.
    Confidence: 0.99

What I checked:

  • Undisclosed metadata transmission: The matcher inventory includes bundle IDs while the onboarding disclosure says only app names are sent through the configured model and ClawHub; the prior review finding remains applicable on the current head. (src/system-agent/setup-app-recommendations.ts:267, 23d55b36d8ca)
  • Node response exposes host paths: The new device.apps response returns InstalledApp objects directly, including absolute local application paths, and its test explicitly requires those paths in the gateway-visible payload. (src/node-host/invoke-device-apps.ts:67, 23d55b36d8ca)
  • Channel recommendations stop after installation: The recommendation flow installs official channel plugins through ensureOnboardingPluginInstalled but does not invoke channel account, adapter, or policy configuration before presenting the result as installed. (src/wizard/setup.app-recommendations.ts:157, 23d55b36d8ca)
  • Existing installations are not filtered: The selection list is built from all model matches without checking current plugin installation records or workspace skills, so accepting defaults can rerun installations completed earlier in onboarding. (src/wizard/setup.app-recommendations.ts:107, 23d55b36d8ca)
  • Guided flow updates config after service restart: Guided onboarding applies and restarts the Gateway before running recommendations; the later config write does not reload plugins for the immediately launched session. (src/commands/onboard-guided.ts:686, 23d55b36d8ca)
  • Compatibility-sensitive surfaces: The branch adds one default-enabled wizard key, a default-off persisted node preference, two CLI flags, one node command, and one additive SQLite column, requiring fresh-install and upgrade proof. (src/state/openclaw-state-db.ts:1361, 23d55b36d8ca)

Likely related people:

  • steipete: The author is self-assigned, the PR carries the maintainer label, and the branch documents the default-on consent behavior as an intentional onboarding product decision while implementing all central surfaces. (role: product direction owner and onboarding area contributor; confidence: high; commits: 15a7d37ca805, 0e19e65491ea, 65aea0339c2f; files: src/commands/onboard-guided.ts, src/wizard/setup.app-recommendations.ts, src/system-agent/setup-app-recommendations.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (3 earlier review cycles)
  • reviewed 2026-07-17T06:13:16.796Z sha b2213c6 :: needs real behavior proof before merge. :: [P2] Configure recommended channels during onboarding | [P2] Remove local paths from the app inventory payload
  • reviewed 2026-07-17T11:29:00.166Z sha 65aea03 :: needs real behavior proof before merge. :: [P2] Configure channel matches before declaring them installed | [P2] Remove local paths from the node inventory response | [P2] Skip recommendations that are already installed
  • reviewed 2026-07-17T12:19:37.643Z sha 2847cf1 :: needs real behavior proof before merge. :: [P1] Disclose or strip bundle IDs before model matching | [P2] Configure recommended channels before treating them as installed | [P2] Filter matches that are already installed | [P2] Remove local paths from device.apps responses

@steipete steipete self-assigned this Jul 17, 2026
steipete added 2 commits July 17, 2026 10:40
Scan installed macOS apps during classic onboarding (TCC-free), gather
candidates from official catalogs + ClawHub search, let the configured
model pick genuine matches, and offer an opt-in multiselect install step.
Adds a device.apps node-host command (default-off sharing, Android-parity
envelope) so remote gateways can request a paired Mac's inventory, and a
wizard.appRecommendations kill switch. Custom setup-inference completions
no longer inherit the 32-token verification-probe output cap.
@steipete
steipete force-pushed the claude/app-plugin-matching-onboarding-dd86a3 branch from b2213c6 to 0e19e65 Compare July 17, 2026 10:55

@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: 0e19e65491

ℹ️ 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".

Comment thread src/wizard/setup.app-recommendations.ts Outdated
Comment on lines +126 to +130
...result.matches.map((match, index) => ({
value: selectionValue(index),
label: t("wizard.appRecommendations.option", {
name: match.candidate.displayName,
reason: match.reason,

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 Filter already-installed app recommendations

When classic onboarding reaches this step, setupSkills and setupOfficialPluginInstalls have already run, so result.matches can include a skill or plugin the user just installed earlier in the same wizard (or already had in the workspace/config). These lines still offer every match, and recommended ones are preselected, so accepting defaults can re-run installSkillFromClawHub/ensureOnboardingPluginInstalled; existing ClawHub skills fail with “Skill already exists…”, while plugins can be reinstalled or re-enabled unnecessarily. Filter matches against the current plugin config/install records and tracked workspace skills before building the multiselect.

Useful? React with 👍 / 👎.

steipete added 2 commits July 17, 2026 11:24
…otion

Third-party ClawHub skills are never pre-selected regardless of model tier
(publisher-controlled listing text reaches the matcher prompt and could
promote itself); their labels now say they install third-party code.
Installed-app scans follow symlinked .app bundles. Matcher output stays
bounded by the resolved model's own maxTokens budget (documented invariant).
Real catalog entries are package manifests without a top-level id; keying the
candidate map and channel/provider classification by entry.id collapsed the
whole official catalog into one undefined-keyed entry, so no official plugin
or channel was ever recommended. Regression test runs against the bundled
catalogs.

@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: 2847cf193a

ℹ️ 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".

appRecommendations: {
catalogEntryMissing: "Official plugin catalog entry is unavailable.",
detected: "Detected apps: {apps}",
disclosure: "App names were matched using your configured model and ClawHub search.",

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 Disclose bundle IDs sent to the matcher

When a scanned macOS app has a bundle ID, the matcher prompt serializes group.app from src/system-agent/setup-app-recommendations.ts, so the configured model receives both the label and bundleId; this onboarding copy tells users only app names are matched through the model and ClawHub. That sends more identifying app metadata than disclosed, so either strip bundleId before building the prompt or update the progress/results disclosure before enabling the scan.

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 17, 2026
Split the guided-onboarding test into a self-contained custodian suite to stay
under max-lines. Narrow app-recommendation exports (drop dead node-payload
normalizer, unexport internal types/helpers, route candidate tests through the
public API), replace map-spread with a helper, unexport device.apps result
types, add installedAppsSharing to node-host migration expectations, cast the
wizard multiselect mock, and regenerate the docs map.

@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: 3990327e99

ℹ️ 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".

Comment on lines +666 to +670
const recommendedConfig = await runAppRecommendations({
config: persistedConfig,
prompter,
runtime,
workspaceDir: workspace,

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 Apply app recommendations before Gateway restart

In guided hatch onboarding, this runs after applySystemAgentSetup has already installed/restarted the Gateway service (src/system-agent/setup-apply.ts:550-565). If accepting a recommendation adds a plugin or load path, the later write at src/commands/onboard-guided.ts:686-690 only updates openclaw.json; the live Gateway and immediately launched TUI keep the pre-recommendation plugin registry until the user manually restarts. Move recommendations before setup apply/final service restart, or restart/refresh the Gateway after writing the merged config.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit da69dae into main Jul 17, 2026
247 of 249 checks passed
@steipete
steipete deleted the claude/app-plugin-matching-onboarding-dd86a3 branch July 17, 2026 13:08
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 18, 2026
…penclaw#109668)

* feat(onboarding): recommend plugins and skills from installed apps

Scan installed macOS apps during classic onboarding (TCC-free), gather
candidates from official catalogs + ClawHub search, let the configured
model pick genuine matches, and offer an opt-in multiselect install step.
Adds a device.apps node-host command (default-off sharing, Android-parity
envelope) so remote gateways can request a paired Mac's inventory, and a
wizard.appRecommendations kill switch. Custom setup-inference completions
no longer inherit the 32-token verification-probe output cap.

* feat(onboarding): recommend apps in guided flow

* fix(onboarding): harden app recommendations against ClawHub self-promotion

Third-party ClawHub skills are never pre-selected regardless of model tier
(publisher-controlled listing text reaches the matcher prompt and could
promote itself); their labels now say they install third-party code.
Installed-app scans follow symlinked .app bundles. Matcher output stays
bounded by the resolved model's own maxTokens budget (documented invariant).

* fix(onboarding): key official catalog candidates by resolved plugin id

Real catalog entries are package manifests without a top-level id; keying the
candidate map and channel/provider classification by entry.id collapsed the
whole official catalog into one undefined-keyed entry, so no official plugin
or channel was ever recommended. Regression test runs against the bundled
catalogs.

* fix(onboarding): satisfy lint, types, deadcode, and migration gates

Split the guided-onboarding test into a self-contained custodian suite to stay
under max-lines. Narrow app-recommendation exports (drop dead node-payload
normalizer, unexport internal types/helpers, route candidate tests through the
public API), replace map-spread with a helper, unexport device.apps result
types, add installedAppsSharing to node-host migration expectations, cast the
wizard multiselect mock, and regenerate the docs map.

* test(onboarding): register new live test in the shard classifier
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
…penclaw#109668)

* feat(onboarding): recommend plugins and skills from installed apps

Scan installed macOS apps during classic onboarding (TCC-free), gather
candidates from official catalogs + ClawHub search, let the configured
model pick genuine matches, and offer an opt-in multiselect install step.
Adds a device.apps node-host command (default-off sharing, Android-parity
envelope) so remote gateways can request a paired Mac's inventory, and a
wizard.appRecommendations kill switch. Custom setup-inference completions
no longer inherit the 32-token verification-probe output cap.

* feat(onboarding): recommend apps in guided flow

* fix(onboarding): harden app recommendations against ClawHub self-promotion

Third-party ClawHub skills are never pre-selected regardless of model tier
(publisher-controlled listing text reaches the matcher prompt and could
promote itself); their labels now say they install third-party code.
Installed-app scans follow symlinked .app bundles. Matcher output stays
bounded by the resolved model's own maxTokens budget (documented invariant).

* fix(onboarding): key official catalog candidates by resolved plugin id

Real catalog entries are package manifests without a top-level id; keying the
candidate map and channel/provider classification by entry.id collapsed the
whole official catalog into one undefined-keyed entry, so no official plugin
or channel was ever recommended. Regression test runs against the bundled
catalogs.

* fix(onboarding): satisfy lint, types, deadcode, and migration gates

Split the guided-onboarding test into a self-contained custodian suite to stay
under max-lines. Narrow app-recommendation exports (drop dead node-payload
normalizer, unexport internal types/helpers, route candidate tests through the
public API), replace map-spread with a helper, unexport device.apps result
types, add installedAppsSharing to node-host migration expectations, cast the
wizard multiselect mock, and regenerate the docs map.

* test(onboarding): register new live test in the shard classifier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: file-transfer rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant