[BUG] Prompt suggestion replaces existing prompt
Status Fixed / completed
Maintainer reply ✓ Yes — bogini
Workaround ✓ Mentioned in thread ↓
Activity 5 comments · opened Dec 14, 2025 · closed Dec 15, 2025
💡 Likely answer: A maintainer (bogini, collaborator)
responded on this thread — see the highlighted reply below.
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?
Typing out a big prompt, accidentally pressed tab, and the "prompt suggestion" feature wiped my prompt and replaced it with the suggestion.
Minimal example:
What Should Happen?
Only accept the default suggestion if the prompt input is empty
Error Messages/Logs
Steps to Reproduce
- Wait until the UI shows a prompt suggestion
- Type your own prompt
- Hit tab, see it get replaced
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.0.69
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
5 Comments
For anyone else with this issue, you can set
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTIONtofalseFound 1 possible duplicate issue:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Not a duplicate. The up arrow is different behaviour.
Edit to add that this issue is particularly problematic because
tabUSED to be "enable thinking", so plenty of us habitually hit the tab key at some point in the prompt, which as of recently, will now clear the prompt in favour of something else (if a suggestion is offered).Thanks for reporting this! This bug has been fixed and will be available in the next release (v2.0.70) coming out tomorrow.
In the meantime, as you noted, you can disable the feature with
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION=false claude.This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.