You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Respect allowedTools configuration in validTools array (#294)
The `disableTools: true` option was not fully respected - tool definitions
were correctly filtered from the system message, but the agentic loop still
accepted and executed tool calls because the `validTools` array was hardcoded
and didn't respect the `allowedTools` configuration.
Changes:
- Replace hardcoded `validTools` array with dynamic filtering using
`allowedTools.isEnabled()` pattern (same as `getSystemMessage()`)
- Edit tools now require both `allowEdit` flag AND `allowedTools` permission
- Bash tool requires both `enableBash` flag AND `allowedTools` permission
- Delegate tool requires both `enableDelegate` flag AND `allowedTools` permission
- Add comprehensive tests to verify validTools respects allowedTools config
Fixes#293
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments