Skip to content

Onboarding: default local tools profile to coding - #38241

Closed
cgdusek wants to merge 1 commit into
openclaw:mainfrom
cgdusek:codex/onboard-default-coding-profile
Closed

cgdusek wants to merge 1 commit into
openclaw:mainfrom
cgdusek:codex/onboard-default-coding-profile

Conversation

@cgdusek

@cgdusek cgdusek commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Summary

This fixes the highest-impact local onboarding regression cluster where agents come up with chat-only tools and report Tool not found / no read-write-exec access after setup.

The practical root cause is local onboarding writing tools.profile: "messaging" when unset.

This PR changes the local onboarding default profile to coding (while still preserving explicit user-configured profiles).

Why this scope

I reviewed related open PRs and issue threads around #32991.

  • Several PRs only flip to full (too broad for security posture) or include unrelated changes.
  • Several are conflict-dirty or do not update docs/tests consistently.
  • This PR keeps a narrow behavioral fix (messaging -> coding) and updates docs/tests/changelog together.

Changes

  • src/commands/onboard-config.ts
    • ONBOARDING_DEFAULT_TOOLS_PROFILE from messaging to coding.
  • src/commands/onboard-config.test.ts
    • Added explicit assertion that onboarding default profile is coding.
  • src/commands/onboard-non-interactive.gateway.test.ts
    • Updated expected generated config profile from messaging to coding.
  • Docs updated to reflect the new onboarding default:
    • docs/gateway/configuration-reference.md
    • docs/reference/wizard.md
    • docs/start/onboarding.md
    • docs/start/wizard-cli-reference.md
    • docs/start/wizard.md
  • Changelog entry added under 2026.3.3 Fixes.

Validation

  • pnpm vitest run src/commands/onboard-config.test.ts src/commands/onboard-non-interactive.gateway.test.ts ✅
  • pnpm build ✅
  • pnpm check ❌ (fails on pre-existing unrelated extensions/feishu/src/media.ts TypeScript errors on timeout property typing)

Related issues

Related overlapping PRs reviewed

@openclaw-barnacle

Copy link
Copy Markdown

Closing this PR because the author has more than 10 active PRs in this repo. Please reduce the active PR queue and reopen or resubmit once it is back under the limit. You can close your own PRs to get back under the limit.

@greptile-apps

greptile-apps Bot commented Mar 6, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a local onboarding regression where agents were initialized with tools.profile: "messaging" — a chat-only profile — causing Tool not found errors when users expected read/write/exec access. The fix changes ONBOARDING_DEFAULT_TOOLS_PROFILE from "messaging" to "coding" in a single constant, with the existing ?? guard ensuring any explicitly configured profile is left untouched.

Key changes:

  • src/commands/onboard-config.ts: ONBOARDING_DEFAULT_TOOLS_PROFILE changed from "messaging" to "coding" (one line).
  • src/commands/onboard-config.test.ts: New test asserting the exported constant equals "coding"; existing behavior test already validates the runtime path via the same constant.
  • src/commands/onboard-non-interactive.gateway.test.ts: Integration test expectation updated from "messaging" to "coding".
  • Five documentation files updated consistently.
  • CHANGELOG.md entry added under the active 2026.3.3 Fixes section.

The change is narrow and safe: "coding" is a valid ToolProfileId, existing explicit user profiles are preserved, and all test/doc surfaces are updated together.

Confidence Score: 5/5

  • This PR is safe to merge — the change is minimal, type-correct, and backward-compatible.
  • The core change is a single constant swap ("messaging" → "coding"). Both values are valid members of the ToolProfileId union type so there are no type-safety concerns. The ?? guard preserves existing explicit configs, making the change fully backward-compatible. Tests, docs, and the changelog are all updated consistently. No unrelated files are touched.
  • No files require special attention.

Last reviewed commit: 5af637c

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

Labels

commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime r: too-many-prs Auto-close: author has more than twenty active PRs. size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant