[BUG] Crash when autocompleting slash command name

Resolved 💬 3 comments Opened Jan 21, 2026 by MarcinOrlowski Closed Jan 25, 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?

I have a skill called foo that sits in ~/.claude/commands/foo.md. When I type it manually in REPL, it works:

> /foo[ENTER]

but when I add space after the name Claude crashes:

> /foo [ENTER]

In fact it is even worse as it crash is not after I type space and hit ENTER but instantly. I press space Claude after last e and Claude is dead so there's no really option for user to hit that Enter anyway.

What Should Happen?

It should not die 👍🏻

Error Messages/Logs

ERROR Minified React error #31; visit https://react.dev/errors/31?args[]=object%20with%20keys%20%7Boptional%7D for the full message or use the
        non-minified dev environment for full errors and additional helpful warnings.

 file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:8767

 - n6 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:8767)
 - rQ (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:10881)
 - pW (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:12449)
 - Ib (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:14737)
 -  (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:15251)
 - b5 (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:35625)
 - RP (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:51792)
 - dk (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:86043)
 - Ss (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:85017)
 - Kd (file:///usr/lib/node_modules/@anthropic-ai/claude-code/cli.js:575:84842)

Steps to Reproduce

Create slash commnnd and once you type the name press space

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.24

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

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