[BUG] First message starting with “/” is treated as a command even when it’s just text
Resolved 💬 1 comment Opened Apr 29, 2026 by johannesmutter Closed May 5, 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?
When I paste a message that starts with a forward slash as the first message in a new Claude Code conversation, Claude Code incorrectly interprets it as a command and then does nothing. If I send a follow up message, it replies that there’s no such command. This makes it impossible to paste paths or similar text as the first message without triggering an error.
What Should Happen?
Don't interpret path string as command
Error Messages/Logs
Steps to Reproduce
- Start a new conversation in Claude Code.
- Paste /example-path
- no response happening
- write a second message
- claude code replies it can't find a command
/example-path
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
Claude 1.5354.0 (9a9e3d) 2026-04-29T01:14:34.000Z
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Warp
Additional Information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗