[Bug] Haiku 4.5 confused by custom slash commands with disable-model-invocation in frontmatter

Resolved 💬 3 comments Opened Oct 17, 2025 by egalanos Closed Jan 10, 2026

Bug Description
Haiku 4.5 gets confused by custom slash commands that use disable-model-invocation: true in their frontmatter.

  1. The preamble sent to Claude when I ran /show-tools is:
<command-message>show-tools is running…</command-message>
<command-name>/show-tools</command-name># Show All Tools

...(rest of slash command prompt contents)
  1. This conflicts with the SlashCommand tool description as the tool is not listed. This resulted in Haiku 4.5 responding with:
I appreciate you running the /show-tools command, but I'm not able to execute that command. It appears to be a custom slash command that isn't available in this Claude Code session.

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 2.0.19
  • Feedback ID: 6f2ea13b-0229-4992-be88-57515d525014

Errors

[]

View original on GitHub ↗

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