Skip to content

Fix flaky permissions escalation test on Windows#16825

Merged
etraut-openai merged 2 commits intomainfrom
etraut/permissions-flake
Apr 5, 2026
Merged

Fix flaky permissions escalation test on Windows#16825
etraut-openai merged 2 commits intomainfrom
etraut/permissions-flake

Conversation

@etraut-openai
Copy link
Copy Markdown
Collaborator

@etraut-openai etraut-openai commented Apr 5, 2026

Problem: rejects_escalated_permissions_when_policy_not_on_request retried a real shell command after asserting the escalation rejection, so Windows CI could fail on command startup timing instead of approval behavior.

Solution: Keep the rejection assertion, verify no turn permissions were granted, and assert through exec-policy evaluation that the same command would be allowed without escalation instead of timing a subprocess.

@etraut-openai etraut-openai merged commit b5edeb9 into main Apr 5, 2026
22 checks passed
@etraut-openai etraut-openai deleted the etraut/permissions-flake branch April 5, 2026 17:51
@github-actions github-actions bot locked and limited conversation to collaborators Apr 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants