Skip to content

UI stuck on '2 message reverted' while model runs invisibly #9811

@ycros

Description

@ycros

Description

This is a weird ux state bug I think, here is what happened:

  1. open up opencode, model is GLM 4.7 free
  2. decide to test the model
  3. go into plan mode, type up a plan - it tries to use the model but I see errors (something about high concurrency usage of this api, retrying, red text).
  4. I hit esc to interrupt, open up providers, go to opencode zen, grab an api key for zen (I wasn't authed on this machine). (I am still using the same model, I was just thinking that maybe with an api key and credits loaded I'd get some sort of priority or it'd use my credits, but that doesn't seem to be the case.)
  5. I do what I usually do, I ctrl+x u to undo my plan message, and re-send it. I do this frequently if I typo, or if the model borks, or whatever. This is my normal workflow for "I want to retry the last action".
  6. I see two identical plan messages! I think, hmm, that's weird, that's not how that usually works.
  7. I wait a bit, the model starts to think. I see the thinking trace output streaming in.
  8. Suddenly, it shows "2 message reverted" (not a typo, the plural is missing) - what? My messages are gone, the model's brief thinking output is gone.
  9. The above is ALL I see in my session log, the busy spinner in the lower left is twiddling.
  10. I'm waiting. Eventually I see some concurrency warnings. Context usage is increasing, so, I'm guessing the model is busy actually doing work even though I can't see anything except for "2 message reverted"
  11. Eventually it stops. I still can't see anything!
  12. I open a new terminal, type opencode export. I can't see the session. (I guess it only shows up once I exit? I do an /export in the session instead)

Plugins

none

OpenCode version

1.1.28

Steps to reproduce

I tried to repro following my own steps above, and was unable to.

Screenshot and/or share link

The contents of the share link also looks wrong!
https://opncd.ai/share/WKRec63b

I attached the export as well, this one seems to have actually captured all the work the model did:
session-ses_4200.md

Operating System

Windows 11 25H2

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindowszenRelates to Zen

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions