lost @file references when opening prompt in external editor #2541

Closed
opened 2026-02-16 17:36:09 -05:00 by yindo · 1 comment
Owner

Originally created by @DanielFGray on GitHub (Nov 3, 2025).

Originally assigned to: @thdxr on GitHub.

Description

when I type a prompt and select a file with @ and then edit that prompt with my $EDITOR the reference is lost

OpenCode version

v1.0.16

Steps to reproduce

  1. select any file from the prompt with @
  2. selected is highlighted differently, and if submitted opencode "attaches" the file
  3. open the file in your $EDITOR with <C-x> e
  4. save and close the editor (with or without edits)
  5. @file is no longer recognized by opencode as a file, is not "attached"

Screenshot and/or share link

No response

Operating System

linux

Terminal

lxterminal

Originally created by @DanielFGray on GitHub (Nov 3, 2025). Originally assigned to: @thdxr on GitHub. ### Description when I type a prompt and select a file with `@` and then edit that prompt with my `$EDITOR` the reference is lost ### OpenCode version v1.0.16 ### Steps to reproduce 1. select any file from the prompt with `@` 2. selected is highlighted differently, and if submitted opencode "attaches" the file 2. open the file in your `$EDITOR` with `<C-x> e` 3. save and close the editor (with or without edits) 4. `@file` is no longer recognized by opencode as a file, is not "attached" ### Screenshot and/or share link _No response_ ### Operating System linux ### Terminal lxterminal
yindo added the opentuibug labels 2026-02-16 17:36:09 -05:00
yindo closed this issue 2026-02-16 17:36:09 -05:00
Author
Owner

@DanielFGray commented on GitHub (Nov 17, 2025):

this seems to have been fixed since v1

@DanielFGray commented on GitHub (Nov 17, 2025): this seems to have been fixed since v1
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2541