Approval UI can deadlock when multiple shell commands request escalation in parallel
What version of the IDE extension are you using?
openai.chatgpt v0.4.71
What subscription do you have?
Plus
Which IDE are you using?
Visual Studio Code 1.109.0
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
When multiple shell commands are dispatched in parallel and all require approval, delaying approval and only accepting one can leave the approval UI stuck. Only the last command is aproved (not the one you're aproving) and the rest is rejected. The session becomes blocked until I reload the VS Code window.
What steps can reproduce the bug?
- Send one response that dispatches 3 shell commands in a single multi_tool_use.parallel call.
- Set sandbox_permissions=require_escalated for all 3 commands, each with a different justification.
- Example commands: Get-Date, Get-TimeZone, whoami (or other simple commands).
- Wait ~10 seconds before interacting with approvals.
- Approve the first prompt.
- Observe UI becomes stuck until window reload.
What is the expected behavior?
Approval prompts should resolve independently. Mixed approve/reject outcomes should not freeze the UI, and no window reload should be required.
Additional information
First observed on February 6, 2026
Workaround: run one command at a time and avoid triggering multiple approvals simultaneously.
<img width="880" height="907" alt="Image" src="https://github.com/user-attachments/assets/5062560d-2488-4df7-8a0e-d51f2229f071" />
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗