-
Notifications
You must be signed in to change notification settings - Fork 0
HITL: "Always allow this tool" via set_tool_approval gateway meta-tool #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+946
−191
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3f7df5a
feat(glean): persist always-allow tool approvals
pragati-agrawal-glean e711a52
Fetch tool approval from remote before execution
pragati-agrawal-glean d883560
Fetch tool approval before each tool call
pragati-agrawal-glean be26c48
Report always-allow prompt timeouts
pragati-agrawal-glean 2deb850
Handle auto-declined always-allow prompts
pragati-agrawal-glean 00a6ae8
Show auto-decline timing in approval prompt
pragati-agrawal-glean 07741e2
Use a single form for tool approval
pragati-agrawal-glean c718980
Explain the default approval form choice
pragati-agrawal-glean 60535c2
Add visual indicators to approval choices
pragati-agrawal-glean cf8628e
Clarify persistent approval choices
pragati-agrawal-glean 19ada28
Align approval form labels
pragati-agrawal-glean df70673
fix: require approval when approval lookup fails
pragati-agrawal-glean 686f7dd
fix: preserve read-only fallback on approval lookup errors
pragati-agrawal-glean ed40a21
fix: skip approval lookups for read-only tools
pragati-agrawal-glean 84bbd0e
test: verify read-only parity with Glean
pragati-agrawal-glean File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we okay doing this? would this require a network call always now?
Read tools are always allow anyway right, can we use that information to optimize network call count from the client?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed that we should optimize for read tools. Fixed, now we retain read-only annotations and use them to skip approval checks entirely. Approval preferences are still excluded from the cache, so write tools use current remote settings.