anthropics / anthropics/claude-code

[Bug] Escape key aborts sub-agent when exiting `/btw` mode

Open
#95,363 0 comments 0 reactions 0 assignees View on GitHub
area:agents area:tui bug platform:intellij platform:windows
Dominant language
Python
Stars
145k
Forks
23.1k
PR merge metrics
PR metrics pending

Description

**Bug Description**
When I’m in a sub-agent and use /btw, I have to press Escape to return to normal mode. However, this also cancels the sub-agent at the same time.

**Environment Info**
- Platform: win32
- Terminal: pycharm
- Version: 2.1.276
- Feedback ID: 781475f5-3fc5-4f8e-9880-1cca289ae17f

**Errors**
```json
[]
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue by entering a sub-agent, using /btw, and pressing Escape in the reported win32/PyCharm environment. Trace the /btw and Escape input handling, then verify that leaving /btw returns to normal mode without cancelling the sub-agent.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.