[BUG] Prompt suggestion replaces existing prompt

Status Fixed / completed
Maintainer reply ✓ Yes — bogini
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:

!Image

What Should Happen?

Only accept the default suggestion if the prompt input is empty

Error Messages/Logs

Steps to Reproduce

  1. Wait until the UI shows a prompt suggestion
  2. Type your own prompt
  3. 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_

View original on GitHub ↗

5 Comments

brad-sullivan · 10 months ago

For anyone else with this issue, you can set CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION to false

github-actions[bot] · 10 months ago

Found 1 possible duplicate issue:

  1. https://github.com/anthropics/claude-code/issues/12664

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

brad-sullivan · 10 months ago

Not a duplicate. The up arrow is different behaviour.

Edit to add that this issue is particularly problematic because tab USED 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).

bogini collaborator · 10 months ago

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.

github-actions[bot] · 9 months ago

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.