Repository navigation
fix: preserve tool identity in permission requests - #759
Open
ruixingshi wants to merge 2 commits into
Open
ruixingshi wants to merge 2 commits into
ruixingshi wants to merge 2 commits into
Conversation
EugeneTheDev
self-requested a review
November 16, 2026 10:57
This branch has not been deployed
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.
Permission clients cannot reliably route or apply policy to approvals when only display labels or call IDs are present. This makes permission requests self-contained while keeping the existing approval decisions and MCP correlation rules.
Closes #553.
write_stdin.{server, tool, arguments}and MCP marker in the permission request. Reuse the existing prompt-scoped correlation state; do not guess a tool when several calls match.rawInputwithout duplicating diffs. Document unavailable stdin bytes and unmatched-call behavior.Validation
npm run typecheck,npm run build,git diff --checkpass.read-only, onelist_agentsMCP call, permission granted only when its structured identity matched, call completed.9b2a785: one macOS symlink-cleanup error insession-indexand three existing subagent event-order/terminal snapshots. Their unrelated expected-output changes are not included.This is independent of #758: that PR fixes the required ACP v2 permission prompt title; this PR fixes tool identity. Correlated MCP approvals on v2 need both fixes. No client-side permission bypass, dependency patch, or version bump.