[BUG] Symlink support for slash commands broken again in v2.0.62 (Regression from #10573)

Resolved 💬 5 comments Opened Dec 9, 2025 by MarkShawn2020 Closed Feb 14, 2026

Bug Description

Symlinked slash command files in .claude/commands/ are not being discovered in version 2.0.62. This is a regression of the issue fixed in #10573.

Reproduction Steps

➜  claude-code-research l ~/.claude/commands/t*.md
lrwxr-xr-x@ 1 mark  staff     8B 12月  9 17:09 /Users/mark/.claude/commands/t.md -> think.md
-rw-r--r--@ 1 mark  staff   892B 10月  7 00:51 /Users/mark/.claude/commands/think-hard.md
-rw-r--r--@ 1 mark  staff   1.0K 10月  7 00:51 /Users/mark/.claude/commands/think-harder.md
-rw-r--r--@ 1 mark  staff   1.2K 10月  7 00:51 /Users/mark/.claude/commands/think-ultra.md
-rw-rw----@ 1 mark  staff   718B 10月  7 00:51 /Users/mark/.claude/commands/think.md
lrwxr-xr-x@ 1 mark  staff    13B 12月  9 17:11 /Users/mark/.claude/commands/tt.md -> think-hard.md
lrwxr-xr-x@ 1 mark  staff    15B 12月  9 17:09 /Users/mark/.claude/commands/ttt.md -> think-harder.md
lrwxr-xr-x@ 1 mark  staff    14B 12月  9 17:09 /Users/mark/.claude/commands/tttt.md -> think-ultra.md


➜  claude-code-research npm install -g @anthropic-ai/claude-code@2.0.61

added 13 packages, and changed 3 packages in 657ms

15 packages are looking for funding
  run `npm fund` for details


➜  claude-code-research claude -p --output-format stream-json --verbose "/tt say 1" | jq 'select(.slash_commands) | .slash_commands | map(select(test("^t")))'
Path /Users/mark/.gemini was not found.
[
  "think-ultra",
  "tt",
  "think",
  "think-harder",
  "tttt",
  "t",
  "ttt",
  "think-hard"
]


➜  claude-code-research npm install -g @anthropic-ai/claude-code@2.0.62

added 13 packages, and changed 3 packages in 667ms

15 packages are looking for funding
  run `npm fund` for details
➜  claude-code-research claude -p --output-format stream-json --verbose "/tt say 1" | jq 'select(.slash_commands) | .slash_commands | map(select(test("^t")))'
Path /Users/mark/.gemini was not found.
[
  "think-ultra",
  "think",
  "think-harder"
]

Expected Behavior

Symlinked .md files should be discovered like regular files.

Actual Behavior

Symlinked commands are not discovered or only partially discovered.

Environment

  • Claude Code version: 2.0.62
  • Last working version: 2.0.61
  • OS: macOS 15.5 (arm64)
  • Node.js: v22.20.0

Additional Context

This is a regression of #10573. Downgrading to 2.0.61 resolves the issue.

View original on GitHub ↗

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