[BUG] File suggestion popup not dismissed when deleting @~/ input
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
When typing @~/ in the prompt input, the file suggestion popup appears showing home directory contents (~/Applications/, ~/Desktop/, etc.). However, when deleting the text using Ctrl+U (kill line), the popup remains visible and doesn't close.
This only happens when using Ctrl+U to delete - when using backspace to delete character by character, the popup correctly dismisses.
What Should Happen?
The file suggestion popup should close when the @~/ text is deleted via Ctrl+U, just like it does when deleting with backspace.
Error Messages/Logs
_No error messages - this is a UI behavior issue._
Steps to Reproduce
- Open Claude Code in terminal
- Type
@~/in the prompt input - Observe: File suggestion popup appears with home directory contents
- Press Ctrl+U to delete the entire line at once
- Observe: Popup remains visible even though the trigger text is gone
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.12 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
The issue seems specific to using Ctrl+U (kill line) for deletion. Regular backspace deletion dismisses the popup correctly.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗