[Bug] ESC Key Unresponsive After Agent Creation

Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 5 comments · opened Sep 5, 2025 · closed Sep 5, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator) responded on this thread — see the highlighted reply below.

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 ↗

5 Comments

github-actions[bot] · 1 year ago

Found 2 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/3475
  2. https://github.com/anthropics/claude-code/issues/2310

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ant-kurt collaborator · 1 year ago
kolkov · 1 year ago
This may be due to pycharm configuration - can you take a look at https://docs.anthropic.com/en/docs/claude-code/troubleshooting#esc-key-not-working-in-jetbrains-intellij%2C-pycharm%2C-etc-terminals ?

Thank you very much, I must have accidentally clicked it when I was changing the terminal type.

Nocodeboy · 1 year ago

In my case, Share X was capturing the ESC key and did not reach Claude Code. I deactivated it and it worked.

github-actions[bot] · 1 year ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.