[BUG] Slash command autocomplete misses /terminal-setup on partial prefix /terminal-setu
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?
The only way to learn whether Shift+Enter is wired up — or whether it even needs to be wired up in the current terminal — is to run /terminal-setup
and read its output. On iTerm2 the response is "Shift+Enter is natively supported, no configuration needed", which is useful information that's
currently hidden behind a command invocation.
For new users (and anyone debugging a multi-line prompt issue) the question is "is my terminal set up correctly?" — and there's no way to answer it at a
glance.
What Should Happen?
Surface terminal-setup status passively, in one of these places:
- A
/doctor(or similar) command that lists environment checks, including: terminal detected, Shift+Enter status (native / configured / not
configured / unsupported), Claude Code version, etc.
- A one-time toast on first launch confirming the terminal status (e.g. "iTerm2 detected — Shift+Enter works natively").
- Inline annotation on
/terminal-setupin the autocomplete menu showing current status (e.g. `/terminal-setup — iTerm2 (native, no setup
needed)`).
Any of these would let users confirm setup without invoking the command.
Error Messages/Logs
Steps to Reproduce
- Open a fresh Claude Code session in iTerm2 (Claude Code 2.1.118, macOS Darwin 25.0.0).
- In the prompt, type
/terminal-setu(one character short of the full command name). - Observe the autocomplete suggestion list —
/terminal-setupdoes not appear. - Type the final character so the input reads
/terminal-setup. - Observe the autocomplete suggestion list —
/terminal-setupnow appears.
The same behavior can be checked with shorter prefixes like /terminal or /term to confirm the command is missed at every prefix shorter than the
full name.
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.118
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
<img width="1713" height="259" alt="Image" src="https://github.com/user-attachments/assets/4958728f-d7c8-4c02-b77b-de4365ca5c7b" />
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗