[BUG] File mention autocomplete not working after custom slash commands
Resolved 💬 3 comments Opened Jul 31, 2025 by hclleee Closed Jul 31, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other:
- Claude CLI version: 1.0.64 (Claude Code)
- Operating System: macOS 24.0.0
- Terminal: iTerm2
Bug Description
File mention autocomplete/suggestions do not work after using custom slash commands in claude-code interactive mode.
Steps to Reproduce
- Open claude-code in interactive mode
- Type a custom slash command (e.g.,
/search,/replace, or any custom command defined in settings) - After the command, try to mention a file by typing @ or the file path
- No file autocomplete suggestions appear
Expected Behavior
After typing a custom slash command, when attempting to reference a file (via @ mention or file path), a list of available files should appear for autocomplete/selection, similar to how it works with
built-in commands.
Actual Behavior
No file autocomplete suggestions appear after custom slash commands. The file mention feature that normally shows available files does not activate, requiring users to manually type the complete file
path.
Additional Context
- File mention autocomplete works correctly with built-in commands
- This issue only affects custom slash commands defined in the configuration
- This significantly impacts the usability of custom commands that require file references
- Workaround: Users must manually type full file paths without autocomplete assistance
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗