Skip to content

Conversation

WhiskeyJack96
Copy link
Contributor

@WhiskeyJack96 WhiskeyJack96 commented Oct 12, 2025

Currently edit requires a permissions call and write does not. This means that if clients want to allow users to approve Write calls they need to add handling to HandleFileWrite but if they do that then edits get two permissions checks.

Alternatively we could remove the write tool from approved tools (which would make more sense to me) but I'm assuming its there for a good reason, if not happy to change to remove it instead!

@cla-bot cla-bot bot added the cla-signed label Oct 12, 2025
@maxdeviant maxdeviant changed the title make write and edit permissions consistent Make write and edit permissions consistent Oct 12, 2025
@benbrandt
Copy link
Member

@WhiskeyJack96 thanks for reporting. I pushed a change to not push Write to allowed, since I'm not sure that is the desired behavior anyway...
Do you want to test how that works for your integration? And I'll do the same on my end

@WhiskeyJack96
Copy link
Contributor Author

This works as expected (my integration now requires two approvals for both edit and write)!

@benbrandt
Copy link
Member

Great. It is working as expected for me as well, and we already had handling in the permissions tool that if the user allows edits than we permit the write tool, but if not, then they have to approve.

Thanks for catching!

@benbrandt benbrandt merged commit 7f5ebca into zed-industries:main Oct 15, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants