[BUG] Closing BTW window stops my agent at work
Status Open
Maintainer reply None cached
Activity 3 comments · opened Jul 31, 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?
yo, when im in my terminal and my agent is working to the bone on somthing. I'll be chatting with my BTW side chick, and once I'm done, I hit ESC to close the BTW window, which stops my agent who was knee-deep in work.
What Should Happen?
not whats happening now
Error Messages/Logs
Steps to Reproduce
?
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Current one
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
3 Comments
What's Wrong?
The original poster's description is unclear, but I think I have the same problem. I'm using the Claude Code at the Linux prompt, running in a Ghostty terminal. I give the main prompt a command. While it is working, I run /btw. The output from /btw covers the main prompt's output. When /btw is done, it asks me to hit ESC to close its output "window". But, under the /btw output "window", the main prompt asks me a question. When I type ESC, it goes to the main prompt, stopping what it was doing. The /btw output "window" remains open.
What Should Happen?
/btw should grab all input while it is open. ESC should close the /btw output "window", not affect the main prompt.
Steps to Reproduce
Run a main prompt that will ask a question in a few seconds.
Run a /btw command.
Wait for the output of the /btw command.
Wait for the main prompt to ask a question.
Hit ESC.
Claude Code Version
$ claude --version
2.1.221 (Claude Code)
Platform
CLI/terminal
Operating System
Ubuntu 24.04.5 LTS
Kernel: 7.0.0-28-generic
Terminal/Shell
Ghostty terminal, bash shell.
declare -x TERM_PROGRAM="ghostty"
declare -x TERM_PROGRAM_VERSION="1.3.1"
declare -x TERM="xterm-ghostty"
declare -x WAYLAND_DISPLAY="wayland-0"
Heya,
Yea so when I hit esc to also stops the main prompt also, and closes the
btw window.
I have to then continue back the main prompt and say “ sorry I didn’t mean
to stop u”
Cheers
Victor Turney
On Wed, 5 Aug 2026 at 6:15 AM, Michael Nahas @.***>
wrote:
Probable duplicate of https://github.com/anthropics/claude-code/issues/63092