-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Permission denied error and model gets confused #1875
Copy link
Copy link
Closed
Labels
area:modelsModel selection, availability, switching, rate limits, and model-specific behaviorModel selection, availability, switching, rate limits, and model-specific behaviorarea:permissionsTool approval, security boundaries, sandbox mode, and directory restrictionsTool approval, security boundaries, sandbox mode, and directory restrictions
Metadata
Metadata
Assignees
Labels
area:modelsModel selection, availability, switching, rate limits, and model-specific behaviorModel selection, availability, switching, rate limits, and model-specific behaviorarea:permissionsTool approval, security boundaries, sandbox mode, and directory restrictionsTool approval, security boundaries, sandbox mode, and directory restrictions
Type
Fields
Give feedbackNo fields configured for Bug.
Describe the bug
Hi.
Sometimes I will get a "Permission denied" error when selecting "No, and tell Copilot what to do differently".
This seems to only happen with a few OpenAI models including
gpt-5.4 (medium),gpt-5.2-codex,gpt-5.2 (high)andgpt-5.3-codex; Opus models do not seem to have this issue.Affected version
v0.0.384 to v0.0.423, possibly more.
Steps to reproduce the behavior
A possible reproducer for this bug.
With this file:
Prompt: Manually align this code.
Then, when seeing the diff, chooses "No, and tell Copilot what to do differently" and say: "Align with 8 spaces".
I got:
and then the model goes off the rail:
And it can continue for a while trying to investigate the "permission issue" but will never consider the user feedback.
Expected behavior
Choosing "No" should not cause a "Permission denied" error.
It should always cause
The user rejected this tool call. User feedback: Align with 8 spaces(I sometimes get this with this reproducer, so try multiple times if you cannot reproduce).Additional context
A workaround for this is to use
--allow-all-pathsand typing your feedback in the prompt after the task is over, but then you don't get to manually approve every edit.Thanks to fix this issue.