Skip to content

Fix: restore read/write/exec tools in default onboarding profile - #34695

Closed
Octane0411 wants to merge 1 commit into
openclaw:mainfrom
Octane0411:pr-34629-tool-capabilities
Closed

Octane0411 wants to merge 1 commit into
openclaw:mainfrom
Octane0411:pr-34629-tool-capabilities

Conversation

@Octane0411

Copy link
Copy Markdown
Contributor

Summary

  • Change ONBOARDING_DEFAULT_TOOLS_PROFILE from messaging to coding
  • Regression caused by wrong default tool profile in onboard-config.ts

Security Impact

None. This is a bug fix for tool capabilities.

Repro + Verification

  1. Start a fresh local onboarding session
  2. Check tool capabilities - should include read/write/exec

Testing

pnpm test src/commands/onboard-config.test.ts (if exists)

AI Assisted

This change was assisted by AI (Codex).

Fixes #34629

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations agents Agent runtime and tooling size: S labels Mar 4, 2026
@greptile-apps

greptile-apps Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR is a targeted bug fix that restores the "coding" tool profile as the default for new onboarding sessions (fixing a regression where "messaging" was incorrectly set), accompanied by two complementary improvements:

Core fix:

  • src/commands/onboard-config.ts: Changes ONBOARDING_DEFAULT_TOOLS_PROFILE from "messaging" to "coding", restoring read/write/exec tool capabilities on fresh onboarding sessions.

Additional improvements:

  • src/agents/failover-error.ts: Extended error handling to resolve response.status and error.status for nested SDK error payloads; added getErrorType helper to classify overloaded_error and rate_limit_error as rate_limit failover reasons.
  • src/security/audit-extra.sync.ts: Extended hasWebSearchKey to detect web-search credentials for Gemini, Grok, and Kimi providers via both config keys and environment variables.

All new code paths are covered by dedicated tests in the corresponding test files.

Confidence Score: 5/5

  • This PR is safe to merge — it is a one-line constant fix with two well-tested, additive improvements.
  • The core change (switching "messaging" to "coding") is a trivial one-line fix with a clear root cause. The two accompanying improvements in failover-error.ts and audit-extra.sync.ts are purely additive — they extend lookup logic and error classification without changing existing branches or behaviors. All new code paths are covered by dedicated tests, and no existing tests are modified in a way that weakens coverage.
  • No files require special attention

Last reviewed commit: 66721c0

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

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


export const ONBOARDING_DEFAULT_DM_SCOPE: DmScope = "per-channel-peer";
export const ONBOARDING_DEFAULT_TOOLS_PROFILE: ToolProfileId = "messaging";
export const ONBOARDING_DEFAULT_TOOLS_PROFILE: ToolProfileId = "coding";

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.

P1 Badge Restore messaging as the onboarding default profile

Changing the default tool profile to coding broadens first-run local onboarding from least-privilege to filesystem/runtime execution (read/write/exec) whenever tools.profile is unset, which contradicts the existing onboarding contract and security posture (for example, runNonInteractiveOnboarding expectations in src/commands/onboard-non-interactive.gateway.test.ts still assert messaging). This means fresh installs silently gain high-impact tool access by default, rather than requiring explicit opt-in.

Useful? React with 👍 / 👎.

@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

agents Agent runtime and tooling commands Command implementations size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: ❌ Read files ❌ Write files ❌ Execute shell commands (including echo, cat, etc.)

3 participants