[BUG] Workflow tool's "press cmd-w to cancel" hint collides with Terminal/iTerm's close-window shortcut
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?
Description:
When I type a message containing the word "workflow," Claude Code shows a banner along the lines of "Using dynamic workflow — press cmd-w to stop"
(cycling in rainbow colors). The problem is that cmd-w is the universal close-window shortcut in macOS terminal emulators (Terminal.app, iTerm2,
Ghostty, etc.), so pressing it doesn't cancel the workflow — it closes the terminal window and kills the entire Claude Code session, losing the
in-progress conversation.
Steps to reproduce:
- On macOS, open Claude Code in Terminal.app or iTerm2.
- Send a message that mentions the word "workflow" in casual conversation (not actually requesting one).
- Observe the "press cmd-w to stop" banner.
- Press cmd-w expecting to dismiss the banner.
- The terminal window closes and the session is lost.
Expected: A cancel shortcut that doesn't shadow a standard terminal keybinding — e.g. esc, ctrl-c, or cmd-shift-w.
Actual: cmd-w closes the terminal window, ending the session and losing conversation context.
Environment:
- macOS (Darwin 24.6.0)
- zsh
- Terminal emulator: iTerm2
- Claude Code version: 2.1.153 (Claude Code)
Additional notes:
- The trigger appears to be the literal word "workflow" appearing in the prompt, even when the user isn't asking for multi-agent orchestration. A
less aggressive trigger (or one that requires an explicit /workflow invocation) would also reduce accidental activations.
- Suggested alternatives for the cancel chord: esc (matches how most other Claude Code prompts cancel), or ctrl-c (standard terminal interrupt).
What Should Happen?
Don't trigger on just typing the word, and don't suggest Cmd-W as a keyboard shortcut.
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- On macOS, open Claude Code in Terminal.app or iTerm2.
- Send a message that mentions the word "workflow" in casual conversation (not actually requesting one).
- Observe the "press cmd-w to stop" banner.
- Press cmd-w expecting to dismiss the banner.
- The terminal window closes and the session is lost.
Expected: A cancel shortcut that doesn't shadow a standard terminal keybinding — e.g. esc, ctrl-c, or cmd-shift-w.
Actual: cmd-w closes the terminal window, ending the session and losing conversation context.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.153 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_