File completion dialog stays open when selecting a file with text behind #6421

Open
opened 2026-02-16 18:04:10 -05:00 by yindo · 1 comment
Owner

Originally created by @xHeaven on GitHub (Jan 15, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

THe file completion dialog retriggers if it starts between two words.

Plugins

No response

OpenCode version

1.1.23

Steps to reproduce

  1. In opencode, type: asd asd
  2. asd @thisisafile<enter> asd
  3. asd @thisisafile.txt| asd - note cursor stayed right after txt, retriggering the dialog

Screenshot and/or share link

Image

Operating System

MacOS 26.2

Terminal

Ghostty

Originally created by @xHeaven on GitHub (Jan 15, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description THe file completion dialog retriggers if it starts between two words. ### Plugins _No response_ ### OpenCode version 1.1.23 ### Steps to reproduce 1. In opencode, type: `asd asd` 2. `asd @thisisafile<enter> asd` 3. `asd @thisisafile.txt| asd` - note cursor stayed right after txt, retriggering the dialog ### Screenshot and/or share link <img width="1024" height="140" alt="Image" src="https://github.com/user-attachments/assets/527890a6-f5ae-4aa7-9677-b52712d400d2" /> ### Operating System MacOS 26.2 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 18:04:10 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 15, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #8224: Enter key doesn't submit prompt when @ autocomplete has no matches
  • #8799: [BUG] Leaving mouse stationary underneath autocomplete items selects them on every keystroke
  • #5820: [BUG] Autocomplete dropdown conflicts with permission dialog - visual overlap and keyboard event capture

These issues all relate to autocomplete dialog behavior in the file/agent mention system (@). While yours specifically addresses the dialog retriggering when text appears after the completed mention, the above issues deal with related autocomplete interaction problems that might share underlying causes.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 15, 2026): This issue might be a duplicate of existing issues. Please check: - #8224: Enter key doesn't submit prompt when @ autocomplete has no matches - #8799: [BUG] Leaving mouse stationary underneath autocomplete items selects them on every keystroke - #5820: [BUG] Autocomplete dropdown conflicts with permission dialog - visual overlap and keyboard event capture These issues all relate to autocomplete dialog behavior in the file/agent mention system (@). While yours specifically addresses the dialog retriggering when text appears after the completed mention, the above issues deal with related autocomplete interaction problems that might share underlying causes. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6421