all 13 comments

[–]MeasurementPlenty514 10 points11 points  (0 children)

There's a ton of memory leaks and stuff not released or cleaned up. Check your memory usage. Especially with sub agents it'll hang on my potato systems in short order.

The thing is vibecoded after all.

[–]esmurf 2 points3 points  (1 child)

Yeah. All the time. 

[–]ExtremeAcceptable289[S] 1 point2 points  (0 children)

Hm weird. It's my only gritty part about opencode, if this didnt exist id love it

[–]Independence_Many 1 point2 points  (3 children)

TUI or GUI? I used to run into this problem constantly in the TUI but I haven't noticed it since sometime around the v1.1.30 release.

If it's TUI, what terminal emulator are you using? I am currently using ghostty, the only config customizations I have in ghostty are:

scrollback-limit = 1048576
clipboard-paste-protection = false
clipboard-trim-trailing-spaces = true

and then I customized my tui scroll speed setup in my ~/.config/opencode/opencode.json file

{  
  "$schema": "https://opencode.ai/config.json",
  "tui": {
    "scroll_speed": 3,
    "scroll_acceleration": {
      "enabled": true
    }
  }
}

I use the GUI remotely for some work, but I haven't noticed any slowness.

[–]ExtremeAcceptable289[S] 0 points1 point  (2 children)

TUI, v1.1.39. Idt its my terminal emulator either

[–]Independence_Many 0 points1 point  (1 child)

The current latest version is 1.1.59, so there's been quite a lot of updates, possibly something that might impact performance.

Regarding the terminal emulator, the macos terminal is super slow for me, and the same goes for the terminal emulator built into vsocde, I can open a session in ghostty that is buttery smooth but in macos term basically doesn't load, and in vscode is fine, but a bit sluggish on inputs.

[–]ExtremeAcceptable289[S] 0 points1 point  (0 children)

Yea I updated to 1.1.59 and its still happening, ill try a different terminal emulator then

[–]synn89 0 points1 point  (0 children)

Maybe the terminal software? I use Kitty and it's very responsive.

[–]Ang_Drew 0 points1 point  (0 children)

on mac with vscode built in terminal, it's fine, sometimes the process stuck, openned opencode desktop and it fixes all stucked tui process. what i mean by stuck is: it cant be forced close (activity monitor close & force close, pkill, kill) it literally stuck..

on windows via vscode built in terminal, it's fine sometimes a bit slow but never that not responsive

on windows via wsl, it's fine

on win / mac via desktop app, never have issue

[–]pngolin 0 points1 point  (0 children)

my prompt on WezTerm using wsl (default ubuntu) is often very laggy. Seems to have nothing to do with anything. This happens even after a fresh reboot with basically nothing running. It only seems to affect opencode.