Skip to content

fix: [Bug] OpenClaw suddenly lost filesystem tools (exec/read/write) and can no longer create files or run commands (#34810) - #34861

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

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

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 fixes a regression (#34810) where local workspace onboarding defaulted to the "messaging" tool profile, which lacks filesystem and runtime tools (read, write, edit, exec, process, etc.). Switching ONBOARDING_DEFAULT_TOOLS_PROFILE to "coding" restores those capabilities for freshly onboarded local workspaces. Existing configs are unaffected because the value is applied only via a ?? null-coalescing guard.

  • Core fix (onboard-config.ts line 6): "messaging" → "coding" as the default tools profile for local onboarding. The "coding" profile adds read, write, edit, apply_patch, exec, process, memory_search, memory_get, sessions_spawn, subagents, cron, and image tools. The one tool lost relative to "messaging" is message, which is appropriate for a local coding workspace.
  • New test (onboard-config.test.ts): Adds a constant-value assertion confirming the default is "coding". The existing broader test at line 21 validates the function behavior via this constant, ensuring the fix is covered by regression tests.

Confidence Score: 5/5

  • Safe to merge — minimal, well-scoped fix with no risk to existing user configurations.
  • The change is a single-constant update from "messaging" to "coding". Existing users with an explicit tools.profile in their config are fully protected by the ?? guard. New local-workspace onboarding sessions will now correctly receive filesystem and exec tools. The "coding" profile is the semantically correct default for a local coding workspace.
  • No files require special attention.

Last reviewed commit: 6272924

@cgdusek

This comment was marked as spam.

@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