Repository navigation
Conversation
answer_approval answered the first waiting request, a number in the current list or a request matched by words, and a command longer than its line was shortened in every answer the assistant reads. The list changes while the user listens, so an "allow it" could reach a request nobody read out, and a long command could be allowed after only its start was heard. - answer_approval takes the request's id and answers only a request that still waits with that id; without one, or with a stale one, nothing is answered and the requests waiting now come back (needs_request, request_changed). - Allow takes a confirmation: an HMAC over the chat, the request's id and kind, the tool's name, title and description, its detail and input, and the button allow presses. Content that changed under the same id, another request and an expired confirmation allow nothing. - read_approval and needs_confirmation give each request whole, with its [request] and [confirmation]. Content over 6000 characters is allowed in Paseo (too_long); deny still works here. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
|
Thanks, Egor, you found a real bug: a lone waiting request was allowed whatever it was, so one answered in Paseo and replaced while the user listened could be allowed unheard. I fixed it in a smaller way on main (b00d434, with you as co-author) instead of rebasing this branch, which conflicted with 1.2.1 and 1.3.0:
Tested on a live Paseo: no id and a stale id allowed nothing; the right id implemented a plan. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
answer_approvalcould allow a request the user never heard, and a long command was shortened in everything the assistant reads before it was allowed.What changes
answer_approvaltakes the request's id (read_approvalgives it) and answers only a request that still waits with that id. Without an id, or with a stale one, nothing is answered and the requests waiting now come back (needs_request,request_changed). It no longer picks the first request, a number in the list, or a match by words.read_approvalandneeds_confirmationgive each request whole, with its[request …]and[confirmation …]. Content over 6000 characters is allowed in Paseo (too_long); deny still works here.Checks
npm run check: 408 tests green. The new tests fail onmain.Docs (
docs/tools.md,docs/security.md) and the changelog are updated.🤖 Generated with Claude Code