old messages disappear #4459

Open
opened 2026-02-16 17:43:50 -05:00 by yindo · 1 comment
Owner

Originally created by @JoshuaDietz on GitHub (Jan 8, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

I have a pretty long chat where I went on a sidequest for a bit. When scrolling up to see one of my old messages again, I noticed that it's not there anymore. The chat starts with a "Thinking" message from the assistant now. The missing message is also not visible using the "Jump to Message" feature, it seems like all messages before a certain point are just gone.

Are messages outside of the context window completely deleted? I'm actually pretty annoyed because the message that I'm searching is a long one with lots of important information which seems to be completely gone.

I've also tried if I can maybe use the "share" feature to see the message, but the feature actually does not seem to work at all, the page is loading for a while and then I just see an entirely black page.

Lastly, I also tried the "export" feature, there the chat is also starting with the same message as in the chat, same for the "copy" feature.

My suspicion is, that this is somehow connected to me switching models mid-chat. Is that possible? Or am I missing a concept here and messages are actually filtered by used model?

Plugins

No response

OpenCode version

Chat was done with 1.0.203, updated to 1.1.7 to see if this will bring the message back (it didn't)

Steps to reproduce

No idea, I'm not even sure if this is intended behavior (I hope it is not, purging messages without confirmation is a no-go in my opinion)

Screenshot and/or share link

No response

Operating System

NixOS 25.11

Terminal

Kitty

Originally created by @JoshuaDietz on GitHub (Jan 8, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description I have a pretty long chat where I went on a sidequest for a bit. When scrolling up to see one of my old messages again, I noticed that it's not there anymore. The chat starts with a "Thinking" message from the assistant now. The missing message is also not visible using the "Jump to Message" feature, it seems like all messages before a certain point are just gone. Are messages outside of the context window completely deleted? I'm actually pretty annoyed because the message that I'm searching is a long one with lots of important information which seems to be completely gone. I've also tried if I can maybe use the "share" feature to see the message, but the feature actually does not seem to work at all, the page is loading for a while and then I just see an entirely black page. Lastly, I also tried the "export" feature, there the chat is also starting with the same message as in the chat, same for the "copy" feature. **My suspicion is, that this is somehow connected to me switching models mid-chat. Is that possible? Or am I missing a concept here and messages are actually filtered by used model?** ### Plugins _No response_ ### OpenCode version Chat was done with 1.0.203, updated to 1.1.7 to see if this will bring the message back (it didn't) ### Steps to reproduce No idea, I'm not even sure if this is intended behavior (I hope it is not, purging messages without confirmation is a no-go in my opinion) ### Screenshot and/or share link _No response_ ### Operating System NixOS 25.11 ### Terminal Kitty
yindo added the bugnix labels 2026-02-16 17:43:50 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 8, 2026):

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

  • #6137: Cannot scroll to beginning of long conversations (hardcoded 100-message limit)
  • #5101: Switching from an image supported model to a non-image model breaks the thread
  • #3101: Missing context after network interruption
  • #2945: Session automatically compacted, destroying the entire working context
  • #3031: Model in BUILD mode does not have enough context to continue after compaction
  • #5448: Unable to Share Session (related to the share feature not working mentioned in your issue)
  • #4196: Reading chat history during LLM responses re-snaps the history
  • #4321: Missing messages in TUI (intermittent message display issues)

Based on your description, this appears to be related to message compaction, context window limits, or model switching causing messages to be permanently removed from the session history rather than just hidden from view. The fact that the messages don't appear in Jump to Message, share, export, or copy features suggests they've been removed from the session entirely.

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

@github-actions[bot] commented on GitHub (Jan 8, 2026): This issue might be a duplicate of or related to existing issues. Please check: - #6137: Cannot scroll to beginning of long conversations (hardcoded 100-message limit) - #5101: Switching from an image supported model to a non-image model breaks the thread - #3101: Missing context after network interruption - #2945: Session automatically compacted, destroying the entire working context - #3031: Model in BUILD mode does not have enough context to continue after compaction - #5448: Unable to Share Session (related to the share feature not working mentioned in your issue) - #4196: Reading chat history during LLM responses re-snaps the history - #4321: Missing messages in TUI (intermittent message display issues) Based on your description, this appears to be related to message compaction, context window limits, or model switching causing messages to be permanently removed from the session history rather than just hidden from view. The fact that the messages don't appear in Jump to Message, share, export, or copy features suggests they've been removed from the session entirely. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4459