Skip to content

CLI: Task execution escapes to PowerShell, becomes unresponsive #21576

@ThatDragonOverThere

Description

@ThatDragonOverThere

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

  1. Start a task in Claude Code
  2. Task begins execution
  3. Somehow "escapes" to PowerShell
  4. Claude Code becomes unresponsive
  5. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:tuibugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on WindowsstaleIssue is inactive

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions