1.0.2 Undo back to a prompt with @ shows full file contents #2417

Closed
opened 2026-02-16 17:35:31 -05:00 by yindo · 2 comments
Owner

Originally created by @Cluster444 on GitHub (Oct 31, 2025).

Originally assigned to: @thdxr on GitHub.

Description

When I have a prompt with an @ file include, then revert back with undo, i get the raw file contents dumped into the prompt box

OpenCode version

1.0.2

Steps to reproduce

Prompt with a file mention
Let it run
Undo

Screenshot and/or share link

Image

Operating System

Omarchy 3

Terminal

Ghostty

Originally created by @Cluster444 on GitHub (Oct 31, 2025). Originally assigned to: @thdxr on GitHub. ### Description When I have a prompt with an @ file include, then revert back with undo, i get the raw file contents dumped into the prompt box ### OpenCode version 1.0.2 ### Steps to reproduce Prompt with a file mention Let it run Undo ### Screenshot and/or share link <img width="1468" height="1004" alt="Image" src="https://github.com/user-attachments/assets/58041c4c-9913-4e07-baad-5584ae8ef9e4" /> ### Operating System Omarchy 3 ### Terminal Ghostty
yindo added the opentuibug labels 2026-02-16 17:35:31 -05:00
yindo closed this issue 2026-02-16 17:35:31 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2025):

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

  • #3368: Similar undo functionality issue where /undo doesn't put previous prompt in the input box correctly

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

@github-actions[bot] commented on GitHub (Oct 31, 2025): This issue might be a duplicate of existing issues. Please check: - #3368: Similar undo functionality issue where /undo doesn't put previous prompt in the input box correctly Feel free to ignore if none of these address your specific case.
Author
Owner

@thdxr commented on GitHub (Oct 31, 2025):

nice find, fixed

@thdxr commented on GitHub (Oct 31, 2025): nice find, fixed
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2417