claude-code - 💡(How to fix) Fix [BUG] /agents TUI freezes after Esc/arrow-back from agent detail view (Windows, all shells)

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The /agents (a.k.a. claude agents) TUI freezes the terminal after navigating into an existing agent's detail view and then pressing the back-arrow (or Esc) to return to the agent list. The terminal becomes unresponsive — no further keystrokes are processed, and the only recovery is to kill the process / close the terminal.

Reproduced across all three common Windows shells, so this is not a shell-specific issue.

Related: #58990 (left-arrow doesn't return to Agents view in AskUserQuestion) — the navigation regression appears to be in the same area, but my repro is from the /agents management UI directly, not from inside an AskUserQuestion prompt.

Error Message

Error Messages/Logs

Root Cause

The /agents (a.k.a. claude agents) TUI freezes the terminal after navigating into an existing agent's detail view and then pressing the back-arrow (or Esc) to return to the agent list. The terminal becomes unresponsive — no further keystrokes are processed, and the only recovery is to kill the process / close the terminal.

Reproduced across all three common Windows shells, so this is not a shell-specific issue.

Related: #58990 (left-arrow doesn't return to Agents view in AskUserQuestion) — the navigation regression appears to be in the same area, but my repro is from the /agents management UI directly, not from inside an AskUserQuestion prompt.

Code Example

No errors.
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Summary

The /agents (a.k.a. claude agents) TUI freezes the terminal after navigating into an existing agent's detail view and then pressing the back-arrow (or Esc) to return to the agent list. The terminal becomes unresponsive — no further keystrokes are processed, and the only recovery is to kill the process / close the terminal.

Reproduced across all three common Windows shells, so this is not a shell-specific issue.

Related: #58990 (left-arrow doesn't return to Agents view in AskUserQuestion) — the navigation regression appears to be in the same area, but my repro is from the /agents management UI directly, not from inside an AskUserQuestion prompt.

Environment

  • OS: Windows 11 Enterprise (10.0.26100)
  • Claude Code version: 2.1.143
  • Shells affected (all reproduce):
    • PowerShell 7
    • Git Bash for Windows
    • cmd.exe (batch)
  • Terminal: Windows Terminal (default profile per shell)

Expected behavior

Pressing left-arrow / Esc from the agent detail view should return cleanly to the agent list, with the TUI remaining interactive.

Actual behavior

The TUI hangs. Ctrl+C is hit-or-miss; usually the only recovery is to close the terminal window entirely.

Notes

  • 100% reproducible on my machine across all three shells listed above.
  • Happens with both project-scoped and user-scoped agents.
  • Not specific to any particular agent's contents — reproduces with any existing agent.

What Should Happen?

Should be able to navigate between open agent sessions

Error Messages/Logs

No errors.

Steps to Reproduce

  1. Run claude and then /agents (or launch claude agents directly).
  2. Arrow-down to an existing agent and press Enter to open its detail view.
  3. Press the left arrow key (or Esc) to navigate back to the agent list.
  4. The TUI freezes — keypresses are no longer echoed/processed.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.143

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Pressing left-arrow / Esc from the agent detail view should return cleanly to the agent list, with the TUI remaining interactive.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] /agents TUI freezes after Esc/arrow-back from agent detail view (Windows, all shells)