Slash command parser crashes on every keystroke - TypeError with description.split

Resolved 💬 3 comments Opened Jan 13, 2026 by kpmagno Closed Feb 27, 2026

Summary

Typing a forward slash / in Claude Code terminal causes the slash command parser to crash repeatedly on every keystroke, displaying error messages until Enter is pressed.

Reproduction Steps

  1. Open Claude Code session
  2. Type / followed by any character(s)
  3. Observe error repeated on each keystroke until Enter

Error Message

TypeError: f.description.split is not a function. (In 'f.description.split(" ")', 'f.description.split' is undefined)
    at <anonymous> (/$bunfs/root/claude:2764:25947)
    at map (native:1:11)
    at RPA (/$bunfs/root/claude:2764:25833)
    at <anonymous> (/$bunfs/root/claude:2767:6928)

Environment

  • Claude Code: v2.1.6 (latest)
  • OS: Linux (WSL2)
  • Runtime: Bun

Root Cause

The slash command autocomplete parser calls .split() on description fields without validating they are strings first. The error occurs when enumerating available skills/commands during autocomplete.

Expected Behavior

The parser should gracefully handle missing or malformed description fields instead of crashing.

Suggested Fix

  1. Validate description is a string before calling .split()
  2. Use empty string as fallback for missing descriptions
  3. Add error logging to identify which skill/command is malformed

View original on GitHub ↗

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