Skip to content

fix: [Bug] OpenClaw lost filesystem tools during onboarding profile regression (#34810) - #34827

Closed
Naylenv wants to merge 1 commit into
openclaw:mainfrom
Naylenv:autofix/issue-34810-bug-openclaw-suddenly-lost-filesystem-tools-e-r20260304180638-255355
Closed

Naylenv wants to merge 1 commit into
openclaw:mainfrom
Naylenv:autofix/issue-34810-bug-openclaw-suddenly-lost-filesystem-tools-e-r20260304180638-255355

Conversation

@Naylenv

@Naylenv Naylenv commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #34810

Summary

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs
  • Security hardening
  • Chore/infra

Linked Issue/PR

Security Impact

  • New permissions/capabilities? (No)
  • Secrets/tokens handling changed? (No)
  • New/changed network calls? (No)
  • Command/tool execution surface changed? (No)
  • Data access scope changed? (No)
  • If any Yes, explain risk + mitigation: N/A

Human Verification

  • Verified scenarios: Automated checks and lint where available
  • Edge cases checked: Basic issue reproduction path
  • What you did not verify: Full manual exploratory testing across all channels

AI-Assisted

…ools (exec/read/write) and can no longer create files or run commands
@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: XS labels Mar 4, 2026
@greptile-apps

greptile-apps Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR reverts the onboarding default tool profile from "messaging" back to "coding" in src/commands/onboard-config.ts, fixing the regression introduced by commit 16df7ef4a9 ("feat(onboarding)!: default tools profile to messaging").

  • The root cause is confirmed by src/agents/tool-catalog.ts: filesystem tools (read, write, edit, apply_patch, exec, process) and related capabilities are exclusively assigned to the "coding" profile. Switching to "messaging" silently dropped all of these during onboarding.
  • The fix is minimal and targeted — only the constant value changes; the applyOnboardingLocalWorkspaceConfig function and all tests remain structurally unchanged.
  • Existing tests in onboard-config.test.ts reference the ONBOARDING_DEFAULT_TOOLS_PROFILE constant rather than a hard-coded string, so they correctly validate the new "coding" value without modification.

Confidence Score: 5/5

  • This PR is safe to merge — it is a well-scoped, single-line revert that directly addresses the confirmed root cause of the reported regression.
  • The change is a one-line revert to the previously working value, corroborated by the tool catalog definition showing that filesystem tools are only present in the "coding" profile. No logic was altered, no new code was introduced, and existing test coverage correctly exercises the constant.
  • No files require special attention.

Last reviewed commit: 43eb030

@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: 43eb030967

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/commands/onboard-config.ts Resolved
@cgdusek

This comment was marked as spam.

@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.

[Bug] OpenClaw suddenly lost filesystem tools (exec/read/write) and can no longer create files or run commands

4 participants