[BUG] Claude is blocked from executing sleep commands
Resolved 💬 3 comments Opened Jun 4, 2026 by david-blaha-netglade Closed Jul 11, 2026
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?
I'm trying to have Claude launch my web application and interact with it but it takes a while to start up so Claude executes a command to first run Start-Sleep -Seconds 30 and then run Invoke-WebRequest which gets blocked.
What Should Happen?
Claude is able to wait before making the request to give the web application time to start up to prevent Claude falsely reporting issues.
Error Messages/Logs
● PowerShell(Start-Sleep -Seconds 30…)
⎿ Error: Blocked: Start-Sleep 30 followed by: try {
$r1 = Invoke-WebRequest -Uri "https://localhost:44395/" -SkipCertificateCheck -UseBasicParsing
Write-Host "HTTP OK — $($r1.StatusCode) "
} catch {
Write-Host "FAILED — $($_.Exception.Message)"
}
Steps to Reproduce
Have Claude run powershell code like this:
Start-Sleep -Seconds 30
...
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.162 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
There are these two issues already #46144 #48280 both of which were closed without a real solution. I propose the same solution as in #46144.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗