[PR #8803] fix(tui): autocomplete getting stuck with trailing text #12875

Open
opened 2026-02-16 18:17:45 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8803

State: open
Merged: No


Closes https://github.com/anomalyco/opencode/issues/8806.

What does this PR do?

Fixes @ autocomplete toolbar staying open when selecting a file with text after the cursor.
blah @file| blah → enter/tab → toolbar was staying open because cursor stayed before the existing space, causing the reopen check to trigger.

How did you verify your code works?

Manual testing - typed hello @file world, selected a file, verified toolbar closes.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8803 **State:** open **Merged:** No --- Closes https://github.com/anomalyco/opencode/issues/8806. ### What does this PR do? Fixes @ autocomplete toolbar staying open when selecting a file with text after the cursor. `blah @file| blah` → enter/tab → toolbar was staying open because cursor stayed before the existing space, causing the reopen check to trigger. ### How did you verify your code works? Manual testing - typed `hello @file world`, selected a file, verified toolbar closes.
yindo added the pull-request label 2026-02-16 18:17:45 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12875