Skip to content

fix: handle empty allowed_tools and disallowed_tools correctly#638

Open
dotuananh0712 wants to merge 1 commit intoanthropics:mainfrom
dotuananh0712:fix/issue-634-allowed-tools
Open

fix: handle empty allowed_tools and disallowed_tools correctly#638
dotuananh0712 wants to merge 1 commit intoanthropics:mainfrom
dotuananh0712:fix/issue-634-allowed-tools

Conversation

@dotuananh0712
Copy link

Fixes #634. Empty lists for allowed_tools and disallowed_tools were being ignored due to truthiness checks. Changed defaults to None and updated checks to 'is not None'.

@dotuananh0712
Copy link
Author

Hi! I noticed there are no CI checks reported on this PR. Could you help trigger the workflows or let me know if there's something I need to fix? Happy to address any feedback. Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

allowed_tools=[] silently ignored due to truthiness check in _build_command

1 participant