opencode icon indicating copy to clipboard operation
opencode copied to clipboard

message history randomly flickers/disappears

Open DanielFGray opened this issue 1 month ago • 3 comments

Description

seems to be a rendering issue since opentui rewrite where occasionally messages become invisible, scrolling up and down doesn't reveal them, and resizing doesnt properly redraw them

OpenCode version

v1.0.19

Steps to reproduce

it is hard to directly replicate, but seems to happen in nearly every long-running session

Screenshot and/or share link

No response

Operating System

arch linux

Terminal

lxterminal

DanielFGray avatar Nov 04 '25 16:11 DanielFGray

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

  • #3719: [navigating away from an active session causes it to flicker/be blank when returning to it] - Very similar flickering/blank session behavior
  • #3669: [Unable to Load Old Sessions] - Session history flashing and disappearing issue
  • #3697: [Missing main view text when resizing] - Text disappearing after window resize events
  • #3776: [Screen becomes completely blank] - Similar blank screen rendering issue

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

github-actions[bot] avatar Nov 04 '25 16:11 github-actions[bot]

I think this is gonna be fixed in 1.0.21

rekram1-node avatar Nov 04 '25 16:11 rekram1-node

Still happens to me on 1.0.23. :( I found a workaround: Ctrl+P then Jump to message, or just Ctrl+X G.

kamilchm avatar Nov 04 '25 22:11 kamilchm

This still happens on 1.0.25 as well

JonathanRiche avatar Nov 05 '25 14:11 JonathanRiche

Partial 'hacky' fix to get back the messages is to trigger the "jump to message" action since it forces render

Rabeez avatar Nov 05 '25 14:11 Rabeez

Partial 'hacky' fix to get back the messages is to trigger the "jump to message" action since it forces render

Yeh it's the only way i can use it right now lol

JonathanRiche avatar Nov 05 '25 16:11 JonathanRiche

How do you guys use the workaround without pressing esc, reverting code or forking? I want to keep the actions going, not terminate them.

d33tah avatar Nov 06 '25 08:11 d33tah

I actually switched to selecting /theme.

kamilchm avatar Nov 06 '25 08:11 kamilchm

Is this still happening on the latest version 1.0.35?

kommander avatar Nov 06 '25 09:11 kommander

Is this still happening on the latest version 1.0.35?

Yes, I am still seeing bad performance, rendering problems, and bun crashes for sessions with a long message history with version 1.0.35.

aaronmcadam avatar Nov 06 '25 09:11 aaronmcadam

Could you share one such session that causes the issues? Are you also on linux?

kommander avatar Nov 06 '25 10:11 kommander

@kommander what do I use to share one with you?

d33tah avatar Nov 06 '25 10:11 d33tah

Also, wild guess: could it be a bug in the progress bar / scrolling implementation? Something that adds a lot of blank space and the actual log is above?

d33tah avatar Nov 06 '25 13:11 d33tah

You can use /share and give the URL, if you don't want to have it public DM me on discord or twitter

kommander avatar Nov 06 '25 15:11 kommander

The problem is that the scrollbox has culling, but the culling is calculated before the children are updated by the layout. I thought I mitigated that, going to fix that properly tonight.

kommander avatar Nov 06 '25 15:11 kommander

Should be better in the upcoming version.

kommander avatar Nov 07 '25 20:11 kommander

I haven't noticed this in a while, even on [some really] long sessions, so I'm gonna close it

DanielFGray avatar Nov 11 '25 18:11 DanielFGray