Last message from terminal gets reverted #2700

Open
opened 2026-02-16 17:36:52 -05:00 by yindo · 7 comments
Owner

Originally created by @mariusolariuimperatives on GitHub (Nov 8, 2025).

Originally assigned to: @thdxr on GitHub.

Description

In all the 1.x versions when you navigate away from the terminal tab with opencode and return back the last message is reverted, this is annoying. Sometimes I let opencode to do the work and produce an answer and I go and do something else but when I return my last message that I was waiting for it's gone.

OpenCode version

1.0.45

Steps to reproduce

  1. Ask opencode to do something that takes some time
  2. Navigate away from terminal tab (I use iterm2)
  3. Come back to the terminal tab and the last answer that it was working on it's reverted

Screenshot and/or share link

Image

Operating System

macos Tahoe

Terminal

iterm2

Originally created by @mariusolariuimperatives on GitHub (Nov 8, 2025). Originally assigned to: @thdxr on GitHub. ### Description In all the 1.x versions when you navigate away from the terminal tab with opencode and return back the last message is reverted, this is annoying. Sometimes I let opencode to do the work and produce an answer and I go and do something else but when I return my last message that I was waiting for it's gone. ### OpenCode version 1.0.45 ### Steps to reproduce 1. Ask opencode to do something that takes some time 2. Navigate away from terminal tab (I use iterm2) 3. Come back to the terminal tab and the last answer that it was working on it's reverted ### Screenshot and/or share link <img width="1679" height="985" alt="Image" src="https://github.com/user-attachments/assets/a0723b2b-7d9f-4141-b583-9ba244fdc379" /> ### Operating System macos Tahoe ### Terminal iterm2
yindo added the opentuibug labels 2026-02-16 17:36:52 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 8, 2025):

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

  • #3905: Message history randomly flickers/disappears - very similar symptoms of messages becoming invisible, especially since the opentui rewrite
  • #3719: Navigating away from active session causes it to flicker/be blank when returning - nearly identical navigation pattern and symptoms
  • #3669: Unable to Load Old Sessions - related session persistence issue where conversation history flashes and disappears
  • #3776: Screen becomes completely blank - related UI rendering issue that can be fixed by switching themes

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

@github-actions[bot] commented on GitHub (Nov 8, 2025): This issue might be a duplicate of existing issues. Please check: - #3905: Message history randomly flickers/disappears - very similar symptoms of messages becoming invisible, especially since the opentui rewrite - #3719: Navigating away from active session causes it to flicker/be blank when returning - nearly identical navigation pattern and symptoms - #3669: Unable to Load Old Sessions - related session persistence issue where conversation history flashes and disappears - #3776: Screen becomes completely blank - related UI rendering issue that can be fixed by switching themes Feel free to ignore if none of these address your specific case.
Author
Owner

@thdxr commented on GitHub (Nov 11, 2025):

i'm confused - are you saying /undo triggers whenever you unfocus and refocus the terminal?

@thdxr commented on GitHub (Nov 11, 2025): i'm confused - are you saying `/undo` triggers whenever you unfocus and refocus the terminal?
Author
Owner

@mariusolariuimperatives commented on GitHub (Nov 13, 2025):

yes

@mariusolariuimperatives commented on GitHub (Nov 13, 2025): yes
Author
Owner

@mariusolariuimperatives commented on GitHub (Nov 13, 2025):

for instance in this session it has produced an answer then I navigated away and back to it, it has removed the answer from the back and put the prompt back into the input field

Image
@mariusolariuimperatives commented on GitHub (Nov 13, 2025): for instance in this session it has produced an answer then I navigated away and back to it, it has removed the answer from the back and put the prompt back into the input field <img width="1020" height="899" alt="Image" src="https://github.com/user-attachments/assets/516e8e2e-6ed9-4123-844f-525c24549e4c" />
Author
Owner

@rekram1-node commented on GitHub (Nov 13, 2025):

and this happens everytime? Do u have any keybind set for session revert that u could be hitting?

@rekram1-node commented on GitHub (Nov 13, 2025): and this happens everytime? Do u have any keybind set for session revert that u could be hitting?
Author
Owner

@mariusolariuimperatives commented on GitHub (Nov 16, 2025):

it seems that in update 1.0.67 this has been fixed somehow, I will come back to you in the next days to tell if this is for sure or not

@mariusolariuimperatives commented on GitHub (Nov 16, 2025): it seems that in update 1.0.67 this has been fixed somehow, I will come back to you in the next days to tell if this is for sure or not
Author
Owner

@rekram1-node commented on GitHub (Nov 16, 2025):

yeah I havent heard anyone else report this so I guess lemme know if u continue having issues

@rekram1-node commented on GitHub (Nov 16, 2025): yeah I havent heard anyone else report this so I guess lemme know if u continue having issues
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2700