claude-code - 💡(How to fix) Fix [BUG] similar to: anthropics/claude-code #15301

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

Expected: command executes. Actual: "Unknown command." Filename shows in autocomplete, so it's discovered but not registered as runnable. Same behavior for other untracked commands (e.g. /day12) added in the same batch. Commands present at an earlier launch (/day1–/day9) still run. Workaround: "Read .claude/commands/<name>.md and execute it" works fine. Possible regression: Did not occur on the previous model/app version; began after updating to Opus 4.8.

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

[BUG] Custom slash commands autocomplete but return "Unknown command" on execution (Claude Code Desktop) Environment: Claude Code Desktop (macOS), model Opus 4.8. Custom project commands in .claude/commands/*.md. Summary: Custom slash commands appear in autocomplete/Recents but every invocation returns Unknown command: /name. Did you mean…, including as the first message of a brand-new session.

What Should Happen?

Expected: command executes. Actual: "Unknown command." Filename shows in autocomplete, so it's discovered but not registered as runnable. Same behavior for other untracked commands (e.g. /day12) added in the same batch. Commands present at an earlier launch (/day1–/day9) still run. Workaround: "Read .claude/commands/<name>.md and execute it" works fine. Possible regression: Did not occur on the previous model/app version; began after updating to Opus 4.8.

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

Add a new file .claude/commands/seal-day11.md (valid frontmatter, plain ASCII) to a project. Fully quit and relaunch the app. Open a new session; type /seal-day11 as the first message.

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

claude-opus-4-7[1m]

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

Using claude app claude code and claude co-work. Not in shell or terminal.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] similar to: anthropics/claude-code #15301