Claude Code Now Runs Slash Commands Typed After a Leading Space, Tab or Newline
Claude CodeView original changelog
Claude Code 2.1.319 fixes slash commands typed after a leading space, tab or newline being sent to Claude as plain text instead of running. A command like /context with stray whitespace in front now runs as a command.
Key Takeaways
- Slash commands typed after a leading space, tab or newline now run.
- Previously they were sent to Claude as plain text and did not run.
- Slash commands now behave the same whatever whitespace precedes them.
- It shipped in 2.1.319.
The fix
Before 2.1.319, a slash command typed after a leading space, tab or newline was sent to Claude as plain text instead of running. In 2.1.319 these inputs run as slash commands.
Why it matters
A command sent as plain text did not run, and reached Claude as part of the conversation instead. The fix makes slash commands behave the same whatever whitespace precedes them.