Skip to content

onboard: keep non-interactive tools profile unset by default - #33231

Closed
webdevtodayjason wants to merge 1 commit into
openclaw:mainfrom
webdevtodayjason:codex/onboard-noninteractive-tools-profile
Closed

webdevtodayjason wants to merge 1 commit into
openclaw:mainfrom
webdevtodayjason:codex/onboard-noninteractive-tools-profile

Conversation

@webdevtodayjason

Copy link
Copy Markdown
Contributor

Summary

  • avoid forcing tools.profile: "messaging" during non-interactive local onboarding when no tools profile is explicitly configured
  • preserve an explicitly configured tools profile from existing config
  • keep gateway onboarding tests aligned with the new default behavior

Why

openclaw onboard --non-interactive was writing tools.profile: "messaging", which can strip file-writing/shell tools and block bootstrap workflows.

Testing

  • pnpm test -- src/commands/onboard-non-interactive.gateway.test.ts
  • pnpm test -- src/commands/onboard-config.test.ts

Closes #33225.

@webdevtodayjason

Copy link
Copy Markdown
Contributor Author

Maintainer-ready summary:

  • Scope: non-interactive onboarding defaults only.
  • Behavior: avoids auto-injecting tools.profile: "messaging" when no profile is explicitly configured; preserves explicit existing profile values.
  • Risk: low; does not alter explicit tools profile configs.
  • Coverage: updates non-interactive gateway onboarding tests with regression coverage for profile preservation.
  • CI: running.

@greptile-apps

greptile-apps Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a regression where openclaw onboard --non-interactive was silently writing tools.profile: "messaging" into the config, stripping file-writing and shell tools and breaking bootstrap workflows.

Key changes:

  • local.ts: After applyOnboardingLocalWorkspaceConfig sets the default tools.profile, a post-hoc block strips it again when (a) no profile was present in the base config and (b) the resulting profile matches ONBOARDING_DEFAULT_TOOLS_PROFILE. This correctly handles all three cases: no prior profile → profile unset; explicit "messaging" → preserved; any other explicit profile → preserved.
  • onboard-non-interactive.gateway.test.ts: Updated test expectations and added a new test case validating that an explicitly pre-written tools.profile survives a non-interactive onboard run.

The fix is correct, focused, and well-tested against the stated problem.

Confidence Score: 5/5

  • No safety concerns. The fix correctly handles all edge cases and is well-tested.
  • The implementation is logically correct, properly tested, and solves the stated problem without introducing new issues. The post-hoc removal pattern correctly preserves explicitly configured profiles while removing the forced default when no profile was previously set. All three behavioral cases are covered by tests.
  • No files require special attention

Last reviewed commit: 2caf858

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: S labels Mar 3, 2026
@cgdusek

This comment was marked as spam.

@webdevtodayjason

Copy link
Copy Markdown
Contributor Author

Closing this to reduce stale PR inventory and reset on smaller, higher-signal work. If needed, I can reopen or resubmit a tighter replacement later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Agents onboarded via openclaw onboard (non-interactive) cannot write files — models report "no file-writing tools available"

2 participants