[Bug] ESC Key Unresponsive After Agent Creation

Resolved 💬 5 comments Opened Sep 5, 2025 by kolkov Closed Sep 5, 2025

Bug Description
ESC key doesn't work after successful agent creation

Description

After successfully creating a new subagent using the /agents command, the ESC key becomes non-functional, preventing users from exiting the agent creation interface. This leaves the user stuck in the agents menu with no way
to return to the main Claude Code interface.

Steps to Reproduce

  1. Open Claude Code
  2. Run /agents command
  3. Select "Create new agent"
  4. Complete the agent creation process
  5. Agent is successfully created in the .claude/agents folder
  6. Press ESC to exit the interface

Expected Behavior

ESC key should close the agents menu and return to the main Claude Code chat interface

Actual Behavior

  • ESC key doesn't respond
  • User remains stuck in the agents interface
  • All other navigation keys (↑↓, Enter) continue to work
  • Agents are successfully created and visible in .claude/agents project folder
  • Only way to exit is to close the terminal or wait for timeout

Environment

  • Claude Code version: 1.0.107
  • OS: Windows 10
  • Terminal: PowerShell / Windows Terminal, Git BASH.

Additional Context

This issue significantly impacts workflow as users cannot smoothly transition back to the main interface after creating agents. The agents themselves are created successfully and function properly - the issue is purely with
the UI navigation.

Workaround

Currently, the only workaround is to close and restart the terminal session.

Environment Info

  • Platform: win32
  • Terminal: pycharm
  • Version: 1.0.107
  • Feedback ID: a789b78e-a45a-43cc-bf83-e4a5bb11509e

Errors

[]

View original on GitHub ↗

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