/exit leaks autocomplete/slash command list to terminal output

Resolved 💬 2 comments Opened Apr 3, 2026 by cesan3 Closed May 12, 2026

Summary

When exiting Claude Code with /exit, the autocomplete dropdown content (slash commands and skill descriptions) is rendered as plain text to the terminal instead of being cleaned up before the process exits.

Steps to reproduce

  1. Start claude in a terminal
  2. Type /exit and press Enter
  3. Observe terminal output after the "Resume this session with:" line

Expected behavior

Clean exit showing only:

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

Actual behavior

After the resume line, the terminal displays residual TUI elements — a horizontal line (───...) followed by a list of slash commands/skills from the autocomplete dropdown:

Resume this session with:───────────────────────────────────────────
claude --resume <session-id>
$ 
  /context                              Visualize current context usage as a colored grid
  /triage-issue                         (atlassian) Intelligently triage bug reports...
  /sc:select-tool                       Intelligent MCP tool selection...
  /capture-tasks-from-meeting-notes     (atlassian) Analyze meeting notes...

Environment

  • OS: macOS
  • Shell: bash
  • Claude Code version: latest (as of 2026-04-03)
  • Note: Multiple MCP servers and skills/plugins are configured, which populates a large autocomplete list. This may increase the likelihood of the rendering artifact.

🤖 Generated with Claude Code

View original on GitHub ↗

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