Agent tab completion on last word ,then enter for submit, the comment gets submitted without tab-completed word

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

This happens when using the chat. If the last word in the chat input is tab-completed, the completion is not included in the submitted chat input. This is usually not seen since the chat inputs are visibly constrained to just a few lines, but it seems consistent.

Steps to Reproduce

I write ‘sub’ in the chat.
The suggestion ‘subscribeWithSelector’ comes up.
I press tab to accept the suggestion.
I press enter to submit.
The submitted comment consists of ‘sub’

Expected Behavior

‘subscribeWithSelector’ should be submitted, and not ‘sub’

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

$ cursor -v
1.7.54
5c17eb2968a37f66bc6662f48d6356a100b67be0
x64

For AI issues: which model did you use?

Auto

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report. It looks like a timing issue where Enter is handled before Tab’s completion fully applies to the input.

As temporary workarounds, you can:

  • Pause briefly between pressing Tab and Enter
  • Click the Send button instead of pressing Enter
  • Type a space after the completion before pressing Enter

Could you record a short video reproducing this? It will help us see the exact timing and understand what’s happening with Tab completion.

No, don’t think it was a timing issue. I could wait a few seconds between pressing tab to complete, and either enter or the send button to submit, and the behavior would be consistent.

However, I just updated to

$ cursor -v
2.0.38
3fa438a81d579067162dd8767025b788454e6f90
x64

and the behavior does not seem to be present - it is working as it should.

1 Like