Skip to content

[Test] Update Permission Denial Snapshots for the New Runtime Message - #2357

Open
MRayermannMSFT wants to merge 6 commits into
mainfrom
dev/mrayermannmsft/other/update-permission-denial-snapshots
Open

[Test] Update Permission Denial Snapshots for the New Runtime Message#2357
MRayermannMSFT wants to merge 6 commits into
mainfrom
dev/mrayermannmsft/other/update-permission-denial-snapshots

Conversation

@MRayermannMSFT

@MRayermannMSFT MRayermannMSFT commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

What

This change updates three permission snapshots so they carry the denial text the runtime now sends. The tool result for a UserNotAvailable decision gains a trailing full stop.

Why

github/copilot-agent-runtime#16319 makes permission denials name what was refused. The C# PermissionE2ETests replay against these snapshots, and the proxy matches a request only when every message is identical. The old text no longer matches, so three tests fail with No cached response found for POST /v1/messages. The assertions themselves still hold, because the error field keeps its stable label.

Merge this before that pull request. Its "Copilot SDK C# tests" legs build its branch against this repository's main, so they stay red until these snapshots land.

@MRayermannMSFT
MRayermannMSFT marked this pull request as ready for review August 19, 2026 18:47
@MRayermannMSFT
MRayermannMSFT requested a review from a team as a code owner August 19, 2026 18:47
Copilot AI balanced review requested due to automatic review settings August 19, 2026 18:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates permission replay snapshots to match the runtime’s revised denial message.

Changes:

  • Adds the trailing full stop to three UserNotAvailable tool results.
  • Preserves existing stable error assertions.
Show a summary per file
File Description
test/snapshots/permissions/should_handle_permission_handler_errors_gracefully.yaml Updates handler-error denial text.
test/snapshots/permissions/should_deny_tool_operations_when_handler_explicitly_denies.yaml Updates explicit-denial text.
test/snapshots/permissions/should_deny_tool_operations_when_handler_explicitly_denies_after_resume.yaml Updates resumed-session denial text.

Review details

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Balanced

- role: tool
tool_call_id: toolcall_1
content: Permission denied and could not request permission from user
content: Permission denied and could not request permission from user.
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.

2 participants