claude-code - 💡(How to fix) Fix Desktop app: slash command autocomplete lost after 500 error recovery [1 comments, 2 participants]

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…
GitHub stats
anthropics/claude-code#45391Fetched 2026-04-09 08:06:30
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Author
Timeline (top)
labeled ×5commented ×1

Custom slash commands in .claude/commands/ stop appearing in the autocomplete dropdown after recovering from an API 500 error. The commands still execute when typed manually — only autocomplete is affected.

Error Message

Custom slash commands in .claude/commands/ stop appearing in the autocomplete dropdown after recovering from an API 500 error. The commands still execute when typed manually — only autocomplete is affected. 3. During a session, receive a server error: API Error: 500 The socket connection was closed unexpectedly Custom slash commands should appear in the autocomplete dropdown after restart, just as they did before the 500 error.

Root Cause

Custom slash commands in .claude/commands/ stop appearing in the autocomplete dropdown after recovering from an API 500 error. The commands still execute when typed manually — only autocomplete is affected.

RAW_BUFFERClick to expand / collapse

Description

Custom slash commands in .claude/commands/ stop appearing in the autocomplete dropdown after recovering from an API 500 error. The commands still execute when typed manually — only autocomplete is affected.

Steps to Reproduce

  1. Open Claude Code desktop app (Mac) with a project that has .claude/commands/*.md files
  2. Verify slash commands appear in autocomplete when typing / — they work fine initially
  3. During a session, receive a server error: API Error: 500 The socket connection was closed unexpectedly
  4. Restart Claude Code (Cmd+Q and reopen)
  5. Type / — custom commands no longer appear in autocomplete

What I tried

  • Quit and reopen the desktop app (multiple times)
  • Full device reboot
  • Verified all .claude/commands/*.md files still exist and are valid markdown
  • Verified commands execute correctly when typed manually (e.g., /build-screen works)
  • Confirmed the issue affects ALL commands, including ones that were not modified

Expected behavior

Custom slash commands should appear in the autocomplete dropdown after restart, just as they did before the 500 error.

Actual behavior

  • Autocomplete shows skills (from .claude/skills/) but not commands (from .claude/commands/)
  • Typing the full command name manually and pressing enter works — the command executes
  • The issue persists across restarts and reboots

Environment

  • Claude Code desktop app for Mac
  • macOS Darwin 25.3.0
  • Model: claude-opus-4-6 (1M context)
  • 6 command files in .claude/commands/

Notes

The command files are registered internally — they appear in the skills list that Claude sees. The issue is specifically with the autocomplete UI not indexing them after crash recovery.

🤖 Generated with Claude Code

extent analysis

TL;DR

The autocomplete dropdown for custom slash commands may not be updating correctly after recovering from an API 500 error, suggesting a potential caching or indexing issue.

Guidance

  • Verify that the .claude/commands/ directory and its contents are correctly indexed by the Claude Code app after a restart, potentially by checking the app's internal logs or debugging output.
  • Check if there are any specific error messages or warnings related to command indexing or caching in the app's logs after the 500 error occurs.
  • Attempt to manually trigger a re-indexing or refresh of the autocomplete data, if such an option is available in the Claude Code app or its settings.
  • Consider testing with a minimal set of command files to see if the issue persists, which could help isolate the problem.

Example

No specific code snippet is applicable in this case, as the issue appears to be related to the app's internal behavior and indexing of command files.

Notes

The issue may be specific to the Mac version of the Claude Code app or the particular environment and setup described. Further debugging or logging information may be necessary to fully diagnose and resolve the issue.

Recommendation

Apply workaround: Try manually triggering a re-indexing or refresh of the autocomplete data, or attempt to clear any cached data related to command indexing, as this may help resolve the issue temporarily until a more permanent fix is available.

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…

FAQ

Expected behavior

Custom slash commands should appear in the autocomplete dropdown after restart, just as they did before the 500 error.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING