[BUG] /agents TUI freezes after Esc/arrow-back from agent detail view (Windows, all shells)

Resolved 💬 2 comments Opened May 18, 2026 by TestingD-BALTA Closed May 18, 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?

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_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗