[PR #4731] fix: disable virtual extmarks for file/agent mentions #11092

Closed
opened 2026-02-16 18:15:53 -05:00 by yindo · 0 comments
Owner

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

State: closed
Merged: Yes


Removes virtual: true from extmarks for @file and @agent mentions in the prompt textarea. Virtual extmarks interfere with standard cursor navigation (Option+Right/Alt+F word jumping) since they behave as overlay text rather than real buffer content.

Keeps virtual: true for pasted images and text summaries where atomic deletion is desired.

Closes #2600
Closes #4261

https://github.com/user-attachments/assets/947b7570-39bd-479f-8597-00ff47ca78ad

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/4731 **State:** closed **Merged:** Yes --- Removes `virtual: true` from extmarks for `@file` and `@agent` mentions in the prompt textarea. Virtual extmarks interfere with standard cursor navigation (Option+Right/Alt+F word jumping) since they behave as overlay text rather than real buffer content. Keeps `virtual: true` for pasted images and text summaries where atomic deletion is desired. Closes #2600 Closes #4261 https://github.com/user-attachments/assets/947b7570-39bd-479f-8597-00ff47ca78ad
yindo added the pull-request label 2026-02-16 18:15:53 -05:00
yindo closed this issue 2026-02-16 18:15:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11092