Make Claude Code better behaved w.r.t. job control signals (including SIGTSTP)
Status Fixed / completed
Maintainer reply ✓ Yes — dicksontsai
Activity 4 comments · opened Mar 21, 2025 · closed Jul 7, 2025
💡 Likely answer: A maintainer (dicksontsai, collaborator)
responded on this thread — see the highlighted reply below.
Description
Application doesn't respond to Ctrl-Z to suspend/background.
Steps to reproduce
- Launch application in terminal
- Press
Ctrl-Z - Application remains in foreground
Expected behaviour
Application should suspend and return to shell prompt.
Environment
- OS: macOS
- Shell: wezterm
- Claude CLI version: 0.2.53
Additional Information
Terminal settings show SUSP is set to ^Z (verified with stty -a).
Other applications respond correctly to Ctrl-Z in same terminal.
4 Comments
I would appreciate this too. Make it easier to pop in an out of a running session.
Implemented as of v1.0.44 by https://github.com/mikelikespie. Prompt input undo is now ~Ctrl+U~ Ctrl+_
Might make sense to maintain Ctrl+Z as undo on WSL2 environments. The shortcut switch might break some users' flows, especially in VS Code or Windows Terminal where Ctrl+Z suspend can kill the shell.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.