anomalyco / anomalyco/opencode

Desktop GUI wipes a session's message history on app restart after a provider stream failure

Open
#46,402 1 comment 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 31, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

While an open conversation is active, a provider stream failure (Model is unavailable from the configured model) is followed within ~1–2 seconds by the app tearing down all its instances and restarting. During that restart window, the session's entire message history is bulk-deleted. The user performed no delete action. The thread resets to start from the first message created after the restart.

This was initially misattributed to a UI "rename" action (the user had renamed the conversation around the same time), but event-log forensics show the deletions are bound to the restart — not the title change.

Plugins

@opencode-ai/plugin@1.18.22

OpenCode version

1.18.25

Steps to reproduce
  1. Open a conversation with existing history.
  2. Configure a model that can return Model is unavailable (e.g. via a flaky/upstream-gated model) and send a message.
  3. Let the stream fail; observe the desktop app tear down and restart.
  4. Re-open the conversation.
  5. Observed: prior history is gone.
Screenshot and/or share link

https://opncd.ai/share/qHvTNmcb

Operating System

macOS 26.6(25G72)

Terminal

macOS native Terminal.app

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.