Repository navigation
Fix: restore read/write/exec tools in default onboarding profile - #34695
Octane0411 wants to merge 1 commit into
Conversation
Greptile SummaryThis PR is a targeted bug fix that restores the Core fix:
Additional improvements:
All new code paths are covered by dedicated tests in the corresponding test files. Confidence Score: 5/5
Last reviewed commit: 66721c0 |
There was a problem hiding this comment.
💡 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"; |
There was a problem hiding this comment.
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 👍 / 👎.
Summary
Security Impact
None. This is a bug fix for tool capabilities.
Repro + Verification
Testing
pnpm test src/commands/onboard-config.test.ts (if exists)
AI Assisted
This change was assisted by AI (Codex).
Fixes #34629