anomalyco / anomalyco/opencode
Desktop GUI wipes a session's message history on app restart after a provider stream failure
@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
- Open a conversation with existing history.
- Configure a model that can return
Model is unavailable(e.g. via a flaky/upstream-gated model) and send a message. - Let the stream fail; observe the desktop app tear down and restart.
- Re-open the conversation.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.