[BUG] Custom commands duplicated and non-functional when running Claude Code from home directory
Resolved 💬 4 comments Opened Jun 19, 2025 by Systemic-Void Closed Jul 28, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.29 (Claude Code)
- Operating System: Ubuntu 22.04 LTS (Pop!_OS)
- Terminal: Alacritty and Warp Terminal
Bug Description
When running Claude Code from the home directory, custom user commands from ~/.claude/commands/ are duplicated in the slash command list and become non-functional. Each scroll cycle adds more non-functional duplicate entries at the top of the command list.
Steps to Reproduce
- Create custom commands in
~/.claude/commands/ - Run
claudefrom home directory (cd ~ && claude) - Type
/to open command list - Scroll through the entire command list to the end or move between first and last entry.
- Observe additional duplicate lines appear
Expected Behavior
Each custom command should appear once in the list in alphabetical order.
Actual Behavior
- Custom commands are duplicated multiple times throughout the command list
- Each time you scroll to the end and back to top, another non-functional duplicate line is added at the top
- The duplicated commands at the top cannot be executed
- Command list becomes increasingly cluttered and difficult to navigate
Additional Context
- Issue only occurs when running Claude Code from the home directory (
~) - Commands work normally when running Claude Code from any other directory
- Personal commands are stored in
~/.claude/commands/as documented - Bug makes the command interface unusable when working from home directory
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗