[Bug] Global Slash Commands Incorrectly Labeled as "(project, gitignored)"

Resolved 💬 3 comments Opened Sep 1, 2025 by semikolon Closed Sep 5, 2025

Bug Description
Issue: Global slash commands incorrectly labeled as "(project, gitignored)" in autocomplete

Description:
Commands stored in the global ~/.claude/commands/ directory are being displayed with "(project,
gitignored)" label in the slash command autocomplete menu, even when:

  1. The commands are NOT in the current project directory
  2. The commands are global, not project-specific
  3. There is no .claude/commands/ directory in the current project

Reproduction:

  1. Have global commands in ~/.claude/commands/ (e.g., docs-review.md)
  2. Open a project that has no local .claude/commands/ directory
  3. Type /docs-re to trigger autocomplete
  4. Observe incorrect "(project, gitignored)" label

Expected: Global commands should be labeled as "(global)" or similar
Actual: Global commands labeled as "(project, gitignored)"

Environment: macOS, Claude Code [your version]

Environment Info

  • Platform: darwin
  • Terminal: WarpTerminal
  • Version: 1.0.98
  • Feedback ID:

Errors

[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n    at Socket.onChildStdout (node:child_process:481:14)\n    at Socket.emit (node:events:524:28)\n    at Socket.emit (node:domain:489:12)\n    at addChunk (node:internal/streams/readable:561:12)\n    at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)\n    at Readable.push (node:internal/streams/readable:392:5)\n    at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-08-31T14:41:00.709Z"},{"error":"Error: Request was aborted.\n    at d71._createMessage (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:970:7955)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-31T14:42:43.476Z"},{"error":"AbortError: The operation was aborted\n    at abortChildProcess (node:child_process:716:27)\n    at AbortSignal.onAbortListener (node:child_process:786:7)\n    at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)\n    at AbortSignal.dispatchEvent (node:internal/event_target:762:26)\n    at runAbort (node:internal/abort_controller:424:10)\n    at abortSignal (node:internal/abort_controller:410:3)\n    at AbortController.abort (node:internal/abort_controller:442:5)\n    at Timeout._onTimeout (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:749:75)\n    at listOnTimeout (node:internal/timers:594:17)\n    at process.processTimers (node:internal/timers:529:7)","timestamp":"2025-08-31T14:49:55.957Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $V (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:1184)\n    at file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:912\n    at Array.map (<anonymous>)\n    at YX (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:903)\n    at ogB (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3178:9325)\n    at TD (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n    at zc (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n    at Z9 (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38355)\n    at jb (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38283)\n    at hD (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38137)","timestamp":"2025-08-31T15:22:56.114Z"},{"error":"Error: Request was aborted.\n    at d71._createMessage (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:970:7955)\n    at processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at runNextTicks (node:internal/process/task_queues:69:3)\n    at process.processTimers (node:internal/timers:526:9)","timestamp":"2025-08-31T15:32:18.001Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n    at $V (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:1184)\n    at file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:912\n    at Array.map (<anonymous>)\n    at YX (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1742:903)\n    at ogB (file:///Users/fredrikbranstrom/.nvm/versions/node/v22.12.0/lib/node_modules/@anthro

Note: Error logs were truncated.

View original on GitHub ↗

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