-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLI: Task execution escapes to PowerShell, becomes unresponsive #21576
Copy link
Copy link
Closed as not planned
Labels
area:tuibugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsIssue specifically occurs on WindowsstaleIssue is inactiveIssue is inactive
Description
Description
While executing a task, Claude Code somehow escapes/drops to PowerShell and becomes unresponsive. The task starts but control transfers to the underlying shell.
Environment
- Platform: Claude Code CLI (latest version)
- OS: Windows 10/11
- Shell: PowerShell
- Date observed: January 28, 2026
Behavior
- Start a task in Claude Code
- Task begins execution
- Somehow "escapes" to PowerShell
- Claude Code becomes unresponsive
- Cannot continue working - requires restart
Related
This may be related to #21266 (input focus lost to PowerShell after gh commands), but this occurs during general task execution, not specifically after gh commands.
Expected Behavior
Task should execute within Claude Code without losing control to the underlying shell.
Actual Behavior
Control transfers to PowerShell mid-task, leaving Claude Code in an unresponsive state.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:tuibugSomething isn't workingSomething isn't workinghas reproHas detailed reproduction stepsHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsIssue specifically occurs on WindowsstaleIssue is inactiveIssue is inactive
Type
Fields
Give feedbackNo fields configured for issues without a type.