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

  1. Launch application in terminal
  2. Press Ctrl-Z
  3. 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.

View original on GitHub ↗

4 Comments

nitsanavni · 1 year ago

I would appreciate this too. Make it easier to pop in an out of a running session.

dicksontsai collaborator · 1 year ago

Implemented as of v1.0.44 by https://github.com/mikelikespie. Prompt input undo is now ~Ctrl+U~ Ctrl+_

EffortlessSteven · 1 year ago

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.

github-actions[bot] · 1 year ago

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.