Skip to content

fix: remove default tools profile from onboarding - #33323

Closed
kevinWangSheng wants to merge 1 commit into
openclaw:mainfrom
kevinWangSheng:fix-33225-onboard-tools-profile
Closed

kevinWangSheng wants to merge 1 commit into
openclaw:mainfrom
kevinWangSheng:fix-33225-onboard-tools-profile

Conversation

@kevinWangSheng

Copy link
Copy Markdown
Contributor

Summary

Removes the default tools.profile='messaging' setting from onboarding configuration. This profile restricts agents to messaging-only tools, preventing them from accessing filesystem and shell tools.

Issue

Fixes issue #33225 where agents onboarded via openclaw onboard (non-interactive) cannot write files — models report "no file-writing tools available".

Root Cause

The applyOnboardingLocalWorkspaceConfig function in src/commands/onboard-config.ts was setting tools.profile to messaging by default. This profile limits the agent to only messaging tools, stripping all filesystem and shell access.

Solution

Removed the default tools profile from onboarding, allowing agents to use the system's default toolset.

Testing

  • Updated unit tests to reflect the new expected behavior
  • All tests pass

Files Changed

  • src/commands/onboard-config.ts: Removed default tools.profile setting
  • src/commands/onboard-config.test.ts: Updated test expectations

Removes the default tools.profile='messaging' setting from onboarding
configuration. This profile restricts agents to messaging-only tools,
preventing them from accessing filesystem and shell tools.

Fixes issue openclaw#33225 where agents onboarded via openclaw onboard
(non-interactive) cannot write files.
@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS labels Mar 3, 2026
@greptile-apps

greptile-apps Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes issue #33225 by removing the hardcoded default tools profile from onboarding configuration. Previously, applyOnboardingLocalWorkspaceConfig was silently defaulting tools.profile to "messaging", which restricted agents to messaging-only tools and prevented filesystem/shell access.

Changes:

  • Removed the ONBOARDING_DEFAULT_TOOLS_PROFILE constant and its application in applyOnboardingLocalWorkspaceConfig
  • Updated tests to reflect new expected behavior: agents now use the system's default toolset
  • Verified backward compatibility: callers with explicit tool profiles in baseConfig continue to work through the existing spread operator

Key attributes:

  • Minimal, surgical change (6 lines removed from source, tests updated)
  • No dangling references—verified the removed constant is not imported elsewhere
  • Backward compatible—explicit profiles in baseConfig are preserved
  • Fully tested with comprehensive test coverage including a new test for explicit profile preservation

Confidence Score: 5/5

  • Safe to merge—this is a minimal, targeted removal of a hardcoded default with no side effects on existing configurations.
  • The change is a simple deletion of a hardcoded default that was causing the reported issue. The removal is complete (no dangling references), tests are properly updated to reflect the new behavior, and backward compatibility is maintained for explicit tool profiles in baseConfig. No regressions are expected.
  • No files require special attention.

Last reviewed commit: e4cbc3d

@cgdusek

This comment was marked as spam.

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

Labels

commands Command implementations size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants