[BUG] : /exit command prints farewell message but doesn't terminate the process

Resolved 💬 3 comments Opened Mar 6, 2026 by pizzimenti Closed Mar 10, 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?

/exit fails to actually quit Claude Code. The farewell message is displayed
("Bye!", "See ya!") but the CLI remains running, requiring the user to invoke
/exit multiple times (unsuccessfully) or force-kill the process.

Steps to reproduce:

  1. Launch claude in a terminal
  2. Type /exit
  3. Observe the farewell message is printed but the process does not terminate

Expected behavior:

The CLI should exit after displaying the farewell message.

Actual behavior:

The farewell message is printed but the process stays alive. Repeated /exit
invocations produce the same result — message displayed, no termination.

Evidence from conversation log:

Session 0d030e5e-19ca-4bdd-a9ec-ac6cf17d7e68 shows three consecutive /exit
commands, all processed as local commands with local-command-stdout output
("Bye!", "Bye!", "See ya!"), but no actual process termination occurred between
them.

Environment:

  • Claude Code version: 2.1.63
  • OS: Linux (Manjaro, kernel 6.18.12-1)
  • Shell: zsh
  • Working directory: ~

What Should Happen?

claude code should exit

Error Messages/Logs

Steps to Reproduce

  1. Launch claude in a terminal from the home directory (~)
  2. Have a conversation (the log shows there was prior activity before the /exit

attempts)

  1. Type /exit — observe farewell message, CLI stays open
  2. Type /exit again — same result
  3. Type /exit a third time — same result

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.69

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗