Skip to content

Last message from terminal gets reverted #4090

Closed

Description

@mariusolariuimperatives

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

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 8, 2025
  2. github-actions commented on Nov 8, 2025

    @github-actions
    Contributor

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

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

  3. thdxr commented on Nov 12, 2025

    @thdxr
    Member

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

  4. self-assigned this
    on Nov 12, 2025
  5. mariusolariuimperatives commented on Nov 13, 2025

    @mariusolariuimperatives
    Author

    yes

  6. mariusolariuimperatives commented on Nov 13, 2025

    @mariusolariuimperatives
    Author

    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
  7. rekram1-node commented on Nov 13, 2025

    @rekram1-node
    Contributor

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

  8. mariusolariuimperatives commented on Nov 16, 2025

    @mariusolariuimperatives
    Author

    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

  9. rekram1-node commented on Nov 16, 2025

    @rekram1-node
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions