Exit message rendering garbled — text concatenates on one line

Resolved 💬 2 comments Opened Apr 1, 2026 by ehmo Closed May 7, 2026

Description

Every time I exit Claude Code (via /exit), the exit message renders incorrectly. The box-drawing frame, session resume line, and "Exit the REPL" text all collapse onto the same line instead of being properly formatted.

Expected

Resume this session with:
──────────────────────────
claude --resume <session-id>

Exit the REPL

Actual

Resume this session with:────────────────────
claude --resume 20d5b74e-e3fc-405d-8c22-5912ed2b2755Exit the REPL

The box-drawing characters appear on the same line as the "Resume this session with:" text, and "Exit the REPL" is concatenated directly after the session ID with no newline.

Reproduction

  1. Start claude in any directory
  2. Type /exit
  3. Observe garbled output

Happens 100% of the time.

Environment

  • macOS (Darwin 25.4.0)
  • Terminal: Ghostty
  • Custom statusline enabled (verified: disabling it does not fix the issue)
  • Hooks configured (Stop, SessionStart, PreToolUse, UserPromptSubmit) — none output to stdout during exit

View original on GitHub ↗

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