Skip to content

Unstable TUI #3935

Closed
Closed

Description

@randomm

Description

Good work on the v1.0! I have been testing it for just over a day now. At least on my system (Mac M2, Ghostty) the v1 UI is quite unstable. I have also, as many other users, have experienced disappearing content area, that sporadically comes back, or you have to try to change the theme to make it redraw. This still happening with v1.0.25.

However, this is a new one I started seeing today after upgrading to 1.0.25, please see the screen grab. The "saving lockfile" thing stays there for a long time, assuming until a bigger redraw of the UI.

OpenCode version

1.0.25

Steps to reproduce

Difficult to say. I use a somewhat complex opencode.json with many subagents, not sure if that affects. Happy to test any alternative versions.

Screenshot and/or share link

Image

Operating System

macOS 15.3.2

Terminal

Ghostty

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 5, 2025
  2. github-actions commented on Nov 5, 2025

    @github-actions
    Contributor

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

    Several of these issues also mention macOS and terminal-specific problems (including Ghostty), and the symptoms of disappearing content, flickering UI, and needing theme changes to redraw are very consistent across these reports.

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

  3. randomm commented on Nov 5, 2025

    @randomm
    Author

    Also, myself as well as some other users have experienced a serious slowdown of the app as the session gets older. Not sure if that is related to the number of subagent sessions I have. I use a project manager agent and a set of system prompts that then direct the project manager to delegate to subagents. In my normal workflow there are many many subagent sessions, so potentially a lot of content in subagent tabs. Personally I would be fine for opencode TUI to start deleting the subagent sessions after a while. I usually only look at the latest one, or the current one that is working.

  4. shubham-root commented on Nov 5, 2025

    @shubham-root

    Can confirm the slowdown on Mac M1 on Alacritty also. Aside from the other mentioned blackouts, the biggest issue I have been facing is inability to scroll when expected to provide a permission response.

    It looks like new content is getting is getting drawn after permission event, and the performance issue is preventing scroll to see what happened.

    This happens without subagent session also. Its possible the Anthropic Sonnet 4.5 from Anthropic provider is also slow, probably needs a lot more stability before I'd be able to use new version.

  5. pigmej commented on Nov 5, 2025

    @pigmej

    I can also confirm a slowdown on Alacritty on Apple Silicon; it's sometimes unusable at all. I don't think it's about the agents, etc, but it definitely fails with long/big sessions.
    In 0.x, it was working perfectly fine. In 1.x, it's barely usable.

  6. dpausp commented on Nov 5, 2025

    @dpausp

    Also, myself as well as some other users have experienced a serious slowdown of the app as the session gets older. Not sure if that is related to the number of subagent sessions I have. I use a project manager agent and a set of system prompts that then direct the project manager to delegate to subagents. In my normal workflow there are many many subagent sessions, so potentially a lot of content in subagent tabs. Personally I would be fine for opencode TUI to start deleting the subagent sessions after a while. I usually only look at the latest one, or the current one that is working.

    Same here, I started using such a workflow just before the switch to v1 and it's mostly unusable now. (WezTerm on Mac M2 Pro)

  7. thdxr commented on Nov 5, 2025

    @thdxr
    Member

    sorry about this - we're doing another pass on performance for the more intense sessions tonight

    we'll track it down - can stay on 0.15.x in the meantime

  8. roshbhatia commented on Nov 5, 2025

    @roshbhatia

    Some more anecdotal datapoints, but I've been seeing this on my M series MBPs in both wezterm and neovim-within-wezterm using neovim's embedded terminal. As @randomm similarly noticed it's most evident with longer sessions.

  9. fabioalmeidaweb commented on Nov 5, 2025

    @fabioalmeidaweb

    I'm not sure if it's related, but around 60% of the opencode starts, I have a mess in the TUI. Each mouse move or keyboard tap prints something like coordinates:

    Image

    Usually, I close it and try again. But sometimes, I have to try several times.

    I'm using Alacritty / Arch Linux (omarchy).

  10. rekram1-node commented on Nov 5, 2025

    @rekram1-node
    Contributor

    @fabioalmeidaweb it only happens when u are piping right? or is this a constant issue

  11. pigmej commented on Nov 5, 2025

    @pigmej

    I have this issue without piping, but on Apple silicon with alacrity.
    It happens randomly so I cannot figure out what causes it. After exiting opencode instance I need to "reset" the terminal.

  12. thdxr commented on Nov 5, 2025

    @thdxr
    Member

    yeah it happens randomly for me too - needs a restart

    we released some perf fixes in 1.0.30 - can people try opening their fat sessions in there and let us know if it's any better?

    more perf fixes are on the way, being worked on rn

  13. thdxr commented on Nov 6, 2025

    @thdxr
    Member

    more fixes in 1.0.31

  14. 1 remaining item

  15. johannesrave commented on Nov 6, 2025

    @johannesrave

    i am on 1.0.34, an M4 and kitty and am also having a lot of hangs with large but recently compacted sessions:

    • eg. pressing "enter" to confirm/allow an action was instantanious before, now takes a few seconds, such that i am unsure whether my command was registered in the first place
    • starting the TUI in the first place does is a lot slower too
    • i can't press f2 to switch betweens models anymore
    • i can't use ctrl u to delete the full command anymore (eg. after doing undo)
    • more often Error: The socket connection was closed unexpectedly. For more information, pass verbose: true in the second argument to fetch() (using anthropic models, on about every fourth message), but that might be unstable internet while travelling.
  16. randomm commented on Nov 6, 2025

    @randomm
    Author

    I have one Macbook M2 on the v1.x series and another in the old v0.x series. The latter is perfectly functional, but any real world working on the v1.x series, currently, is not very possible. It gets very sluggish, to the point of ctrl+c not even working, or ctrl+z either. Have to shut down terminal tab and try again with opencode -c, in which point it sometimes is possible to continue. But any interaction with longer sessions, especially with ones that have lots of subagent sessions, is close to impossible. I am going to downgrade my other laptop from v1.x back to the older one until v1.x is stable.

    Not complaining, this is stellar stuff that you guys are doing, and I understand that my use case - with tens and tens of subagent tabs/sub-sessions per session is probably a fringe use case, albeit a very useful one as I get a very long main chat with the orchestrator and with subagents doing all the heavy lifting.

  17. fabioalmeidaweb commented on Nov 6, 2025

    @fabioalmeidaweb

    @fabioalmeidaweb it only happens when u are piping right? or is this a constant issue

    I'm not piping, just running the "opencode" command. Sometimes works, sometimes it doesn't.

  18. insign commented on Nov 6, 2025

    @insign

    @fabioalmeidaweb Ive just installed and not working for me to. Tried via pacman and curl install. Simply nothing happens.

                       .%;888:8898898:                helio@neo
                     x;XxXB%89b8:b8%b88:              ---------
                  .8Xxd                8X:.           OS: Garuda Linux x86_64
                .8Xx;                    8x:.         Host: Predator PHN16-71 (V1.18)
              .tt8x          .d            x88;       Kernel: 6.17.6-zen1-1-zen
           .@8x8;          .db:              xx@;     Uptime: 1 hour, 3 mins
         ,tSXX°          .bbbbbbbbbbbbbbbbbbbB8x@;    Packages: 1882 (pacman)[stable]
       .SXxx            bBBBBBBBBBBBBBBBBBBBbSBX8;    Shell: fish 4.1.2
     ,888S                                     pd!    Resolution: 5120x1440
    8X88/                                       q     DE: GNOME 49.1
    8X88/                                             WM: Mutter (Wayland)
    GBB.                                              WM Theme: Tahoe-Dark
     x%88        d888@8@X@X@X88X@@XX@@X@8@X.          Theme: Tahoe-Dark [GTK2/3/4]
       dxXd    dB8b8b8B8B08bB88b998888b88x.           Icons: MacTahoe-dark [GTK2/3/4]
        dxx8o                      .@@;.              Terminal: GNOME Terminal 3.58.0
          dx88                   .t@x.                Terminal Font: FiraCode Nerd Font Mono 12
            d:SS@8ba89aa67a853Sxxad.                  CPU: 13th Gen Intel(R) Core(TM) i7-13650HX (20) @ 4.900GHz
              .d988999889889899dd.                    GPU: GeForce RTX 4060 Max-Q / Mobile
                                                      GPU: Raptor Lake-S UHD Graphics
                                                      Memory: 11134MiB / 23741MiB
    
    
    ⚡ opencode --print-logs
    INFO  2025-11-06T18:25:42 +168ms service=default version=1.0.35 args=["--print-logs"] opencode
    INFO  2025-11-06T18:25:42 +0ms service=project directory=/home/helio fromDirectory
    INFO  2025-11-06T18:25:42 +7ms service=config path=/home/helio/.config/opencode/config.json loading
    INFO  2025-11-06T18:25:42 +1ms service=config path=/home/helio/.config/opencode/opencode.json loading
    INFO  2025-11-06T18:25:42 +0ms service=config path=/home/helio/.config/opencode/opencode.jsonc loading
    INFO  2025-11-06T18:25:42 +1ms service=bun cmd=["/home/helio/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.35","--exact"] cwd=/home/helio/.config/opencode running
    INFO  2025-11-06T18:25:42 +1ms service=bun cmd=["/home/helio/.opencode/bin/opencode","add","@opencode-ai/plugin@1.0.35","--exact"] cwd=/home/helio/.opencode running
    
    
    
  19. rekram1-node commented on Nov 6, 2025

    @rekram1-node
    Contributor

    @pigmej if u run opencode --print-logs what do u see

  20. thdxr commented on Nov 6, 2025

    @thdxr
    Member

    can we make a seperate issue for the thing where opencode starts up weirdly and needs a restart? i have that as well sometimes

  21. thdxr commented on Nov 6, 2025

    @thdxr
    Member

    we landed some more perf fixes in 1.0.36 specifically for long sessions

    also what is helpful is doing opencode export > dump.json and picking a session you have an issue with. if you can send us that dump we can load it locally and dig deeper - already fixed a few issues this way

  22. thdxr commented on Nov 7, 2025

    @thdxr
    Member

    OK we figured out the issue it being broken on start and needing a restart. when the autoupdate process in the background runs it was breaking things - this is why it was flakey

    just pushed the fix for that so no need for a new issue

  23. bgaillard commented on Nov 7, 2025

    @bgaillard

    Hi, thanks a lot @thdxr, I just updated OpenCode to version 1.0.39 and I can confirm what I described in my previous comment is working now and there are not bugs anymore 👍 .

  24. pigmej commented on Nov 7, 2025

    @pigmej

    WIth 1.0.39 I also stopped having most of my issues so far.

  25. insign commented on Nov 7, 2025

    @insign

    Here too, thanks.

  26. fabioalmeidaweb commented on Nov 7, 2025

    @fabioalmeidaweb

    OK we figured out the issue it being broken on start and needing a restart. when the autoupdate process in the background runs it was breaking things - this is why it was flakeyjust pushed the fix for that so no need for a new issue

    Nice catch! Thank you!

    Is this autoupdate process triggered even if I installed using a package manager? In my case, I'm using "yay" (AUR), but when I try to "opencode upgrade", I'm unable to do so because it's managed by a package manager.

  27. thdxr commented on Nov 12, 2025

    @thdxr
    Member

    yeah it won't do it for anything that requires sudo

  28. thdxr commented on Nov 12, 2025

    @thdxr
    Member

    going to mark this as completed, any remaining issues if you run into them please open a new issue - ty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions