Linked files are broken when using history #1120

Closed
opened 2026-02-16 17:29:32 -05:00 by yindo · 3 comments
Owner

Originally created by @tsukinoko-kun on GitHub (Aug 5, 2025).

Originally assigned to: @adamdotdevin on GitHub.

I liked files using @src/component/AvailabilityCalendar.tsx, sent it and canceled using CTRL+C (exit). I then started open code again and pressed ARROW UP to get my last prompt. The files I linked look broken.

The @... things are not at the right place.

In short: The history entry is not what I wrote.

This happens every time I do that

Image
Originally created by @tsukinoko-kun on GitHub (Aug 5, 2025). Originally assigned to: @adamdotdevin on GitHub. I liked files using `@src/component/AvailabilityCalendar.tsx`, sent it and canceled using CTRL+C (exit). I then started open code again and pressed ARROW UP to get my last prompt. The files I linked look broken. The `@...` things are not at the right place. In short: The history entry is not what I wrote. This happens every time I do that <img width="1512" height="982" alt="Image" src="https://github.com/user-attachments/assets/544803b4-f69a-4ffc-925d-719c3c871f19" />
yindo closed this issue 2026-02-16 17:29:32 -05:00
Author
Owner

@Sewer56 commented on GitHub (Sep 12, 2025):

Image

Can reproduce on 0.7.3; with Alacritty.
Happens fairly consistently, both pastes of lines and pastes of files.

@Sewer56 commented on GitHub (Sep 12, 2025): <img width="1131" height="285" alt="Image" src="https://github.com/user-attachments/assets/73104d7d-fdc5-4a56-b28d-c586d9bf95cc" /> Can reproduce on 0.7.3; with Alacritty. Happens fairly consistently, both pastes of lines and pastes of files.
Author
Owner

@Sewer56 commented on GitHub (Sep 12, 2025):

Image

Worth noting, the offset of the bad paste shifts every time message is re-sent. This is probably a valuable hint.
So this happens if I send the message above, then scroll back.

@Sewer56 commented on GitHub (Sep 12, 2025): <img width="1164" height="316" alt="Image" src="https://github.com/user-attachments/assets/e48159fd-50e9-49fe-bde1-4828ad4ab32a" /> Worth noting, the offset of the bad paste shifts every time message is re-sent. This is probably a valuable hint. So this happens if I send the message above, then scroll back.
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1120