anthropics / anthropics/claude-code
[Bug] Escape key aborts sub-agent when exiting `/btw` mode
- 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