[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_

View original on GitHub ↗

3 Comments

mdnahas · 26 days ago

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"

vehitt · 26 days ago

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:

mdnahas left a comment (anthropics/claude-code#83026) <https://github.com/anthropics/claude-code/issues/83026#issuecomment-5182917361> 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" — Reply to this email directly, view it on GitHub <https://github.com/anthropics/claude-code/issues/83026?email_source=notifications&email_token=CJIUKYSCUCFIYYZ2B65FNKL5IIR5RA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJYGI4TCNZTGYY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-5182917361>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/CJIUKYXQN3JG2BNRFEPU7T35IIR5RAVCNFSNUABFKJSXA33TNF2G64TZHM4TGNZSGUZTINZVHNEXG43VMU5TKMBTGQYTOMJQGU22C5QC> . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS <https://github.com/notifications/mobile/ios/CJIUKYTNAKYZSJJSG6TLIOT5IIR5RA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJYGI4TCNZTGYY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2KUZTPN52GK4S7NFXXG> and Android <https://github.com/notifications/mobile/android/CJIUKYRAAMZZLHJ5LPAJWSL5IIR5RA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMJYGI4TCNZTGYY2M4TFMFZW63VGMF2XI2DPOKSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>. Download it today! You are receiving this because you authored the thread.Message ID: @.***>
Hypher · 20 days ago