[BUG] Claude Desktop on Windows: PowerShell tool call permission prompt delayed ~2m35s before appearing
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment:
- Claude Desktop version:
1.6608.2 (ebf1a1)(2026-05-08) - OS: Windows 11 (10.0.26200)
- Shell: Windows PowerShell 5.1.26100.8246 (
powershell.exe)
Symptom:
When Claude attempts a PowerShell tool call, the tool-call status indicator shows "in progress" but no permission prompt is rendered in the UI. After approximately 2 minutes 35 seconds with no user interaction, the prompt finally appears and behaves normally.
This does not happen for other tool calls (Read, Edit, Grep, etc.) — only PowerShell. The UI is not frozen during the wait; other interactions work. The delay is consistent.
Distinct from related issues:
- Not [#9383](https://github.com/anthropics/claude-code/issues/9383) — that bug rejects the operation immediately; here the operation eventually succeeds after the delayed prompt.
Related Issues
When executing PowerShell command from Claude Code CLI, the issue is the same as [#45099](https://github.com/anthropics/claude-code/issues/45099) — in that bug the prompt renders then freezes; here the prompt simply does not render for ~2.5 minutes.
What Should Happen?
Permission prompt should display in few seconds.
Error Messages/Logs
2026-05-11T07:09:52.713Z [DEBUG] Tool search disabled for model 'claude-haiku-4-5-20251001': model does not support tool_reference blocks. This feature is only available on Claude Sonnet 4+, Opus 4+, and newer models.
2026-05-11T07:09:52.717Z [DEBUG] attribution header x-anthropic-billing-header: cc_version=2.1.138.66f; cc_entrypoint=cli; cch=00000;
2026-05-11T07:09:52.719Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-05-11T07:09:52.719Z [DEBUG] [API:auth] OAuth token check starting
2026-05-11T07:09:52.720Z [DEBUG] Total plugin output styles loaded: 0
2026-05-11T07:09:52.722Z [DEBUG] [API:auth] OAuth token check complete
2026-05-11T07:09:52.725Z [DEBUG] [API REQUEST] /v1/messages x-client-request-id=b0ae262b-c473-42f9-9515-605a23a2faa1 source=generate_session_title
2026-05-11T07:09:52.729Z [DEBUG] autocompact: tokens=[REDACTED] level=ok effectiveWindow=180000
2026-05-11T07:09:52.766Z [DEBUG] Dynamic tool loading: 0/25 deferred tools included
2026-05-11T07:09:52.767Z [DEBUG] attribution header x-anthropic-billing-header: cc_version=2.1.138.66f; cc_entrypoint=cli; cch=00000;
2026-05-11T07:09:52.767Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-05-11T07:09:52.768Z [DEBUG] [API:auth] OAuth token check starting
2026-05-11T07:09:52.778Z [DEBUG] [API:auth] OAuth token check complete
2026-05-11T07:09:52.782Z [DEBUG] [API REQUEST] /v1/messages x-client-request-id=c06300ee-b128-4666-ba4c-5663df5e839d source=repl_main_thread
2026-05-11T07:09:53.640Z [DEBUG] Stream started - received first chunk
2026-05-11T07:09:57.774Z [DEBUG] Stream started - received first chunk
2026-05-11T07:12:28.600Z [WARN] Streaming stall detected: 150.0s gap between events (stall #1)
2026-05-11T07:12:28.604Z [WARN] Streaming completed with 1 stall(s), total stall time: 150.0s
2026-05-11T07:12:28.653Z [DEBUG] High write ratio: blit=0, write=1438 (100.0% writes), screen=24x120
2026-05-11T07:12:29.283Z [INFO] [Stall] tool_dispatch_start tool=PowerShell toolUseId=toolu_0152TeZkYMSNe5nPenrunWsj permissionDecisionMs=150717
2026-05-11T07:12:29.839Z [INFO] [Stall] tool_dispatch_end tool=PowerShell toolUseId=toolu_0152TeZkYMSNe5nPenrunWsj outcome=ok durationMs=556
2026-05-11T07:12:29.846Z [DEBUG] LSP Diagnostics: getLSPDiagnosticAttachments called
2026-05-11T07:12:29.847Z [DEBUG] LSP Diagnostics: Checking registry - 0 pending
2026-05-11T07:12:29.847Z [DEBUG] Hooks: Found 0 total hooks in registry
2026-05-11T07:12:29.847Z [DEBUG] Hooks: checkForNewResponses returning 0 responses
2026-05-11T07:12:29.849Z [DEBUG] autocompact: tokens=[REDACTED] level=ok effectiveWindow
suspicious log:
2026-05-11T07:12:28.600Z [WARN] Streaming stall detected: 150.0s gap between events (stall #1)
2026-05-11T07:12:28.604Z [WARN] Streaming completed with 1 stall(s), total stall time: 150.0s
Steps to Reproduce
- Ask Claude to run any PowerShell command, e.g.
"hello". - Observe tool-call spinner.
- No prompt appears for ~2m35s.
- Prompt eventually appears; approving runs the command normally.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.138
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell/VS Code
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗