Performance issues #4102

Closed
opened 2026-02-16 17:42:37 -05:00 by yindo · 12 comments
Owner

Originally created by @bcardarella on GitHub (Jan 2, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

All of a sudden today Opencode has started to have major performance issues. I haven't updated OC today and so I supect perhaps OhMyOpencode updated and this is the cause? It's hard to say the culprit. But This video is of a fresh system restart and a new prompt. Activity Monitor shows opencode's process isn't consuming significant memory or CPU. Something else is up. (if you wait a moment you'll see the Knight Rider spinner come into view and animate very slowly)

https://github.com/user-attachments/assets/b92963f0-3002-4eba-813a-4e072fb0a02f

OpenCode version

1.0.223

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

MacOS

Terminal

Ghostty

Originally created by @bcardarella on GitHub (Jan 2, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description All of a sudden today Opencode has started to have major performance issues. I haven't updated OC today and so I supect perhaps OhMyOpencode updated and this is the cause? It's hard to say the culprit. But This video is of a fresh system restart and a new prompt. Activity Monitor shows opencode's process isn't consuming significant memory or CPU. Something else is up. (if you wait a moment you'll see the Knight Rider spinner come into view and animate very slowly) https://github.com/user-attachments/assets/b92963f0-3002-4eba-813a-4e072fb0a02f ### OpenCode version 1.0.223 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System MacOS ### Terminal Ghostty
yindo added the bugperf labels 2026-02-16 17:42:37 -05:00
yindo closed this issue 2026-02-16 17:42:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 2, 2026):

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

  • #6488: Bash Fork Issues - Investigation Included
  • #3822: Output starts to slow to a crawl
  • #6172: High CPU usage (100%+) during LLM streaming in long sessions due to O(n) text buffer rendering
  • #6213: Memory leak during prolonged usage

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

@github-actions[bot] commented on GitHub (Jan 2, 2026): This issue might be a duplicate of existing issues. Please check: - #6488: Bash Fork Issues - Investigation Included - #3822: Output starts to slow to a crawl - #6172: High CPU usage (100%+) during LLM streaming in long sessions due to O(n) text buffer rendering - #6213: Memory leak during prolonged usage Feel free to ignore if none of these address your specific case.
Author
Owner

@mromanuk commented on GitHub (Jan 2, 2026):

it's happening to me with latest version, memory goes to the roof and UI freeze.

@mromanuk commented on GitHub (Jan 2, 2026): it's happening to me with latest version, memory goes to the roof and UI freeze.
Author
Owner

@arsham commented on GitHub (Jan 2, 2026):

I've seen the same behaviour (Linux) sometime after the #6319 was merged. I'm not saying that the PR was the culprit, I'm just saying the issue started around that time. What I've noticed that when tasks are issued through the API there is a high memory consumption.

@arsham commented on GitHub (Jan 2, 2026): I've seen the same behaviour (Linux) sometime after the #6319 was merged. I'm not saying that the PR was the culprit, I'm just saying the issue started around that time. What I've noticed that when tasks are issued through the API there is a high memory consumption.
Author
Owner

@rekram1-node commented on GitHub (Jan 2, 2026):

@arsham that PR hasn't been released so unless u run against dev it couldn't be the issue.

Today we have made no releases whatsoever so if you started seeing issues I think it is your plugins

@rekram1-node commented on GitHub (Jan 2, 2026): @arsham that PR hasn't been released so unless u run against dev it couldn't be the issue. Today we have made no releases whatsoever so if you started seeing issues I think it is your plugins
Author
Owner

@arsham commented on GitHub (Jan 2, 2026):

@rekram1-node I am running against dev. I will try to bisect and tell you if I could identify the issue. It may well be my plugins are not behaving correctly.

@arsham commented on GitHub (Jan 2, 2026): @rekram1-node I am running against dev. I will try to bisect and tell you if I could identify the issue. It may well be my plugins are not behaving correctly.
Author
Owner

@bcardarella commented on GitHub (Jan 2, 2026):

I'm pretty sure this was in Oh My Opencode. Sorry for the false report here.

@bcardarella commented on GitHub (Jan 2, 2026): I'm pretty sure this was in Oh My Opencode. Sorry for the false report here.
Author
Owner

@rekram1-node commented on GitHub (Jan 2, 2026):

Sounds good

@rekram1-node commented on GitHub (Jan 2, 2026): Sounds good
Author
Owner

@rekram1-node commented on GitHub (Jan 2, 2026):

@arsham could also be this potentially:
https://github.com/anomalyco/opencode/commit/ff0bd84870d4f3335f5f60621a46efaec6579332

@rekram1-node commented on GitHub (Jan 2, 2026): @arsham could also be this potentially: https://github.com/anomalyco/opencode/commit/ff0bd84870d4f3335f5f60621a46efaec6579332
Author
Owner

@bcardarella commented on GitHub (Jan 2, 2026):

Does opencode update its own deps under the hood or is opentui statically included?

@bcardarella commented on GitHub (Jan 2, 2026): Does opencode update its own deps under the hood or is opentui statically included?
Author
Owner

@rekram1-node commented on GitHub (Jan 2, 2026):

Oh I was talking to him since he is running dev directly, you arent. You wouldnt have this change im referring to

@rekram1-node commented on GitHub (Jan 2, 2026): Oh I was talking to him since he is running dev directly, you arent. You wouldnt have this change im referring to
Author
Owner

@arsham commented on GitHub (Jan 3, 2026):

@arsham could also be this potentially: ff0bd84

@rekram1-node good catch. I'll revert this locally and will report back.

@arsham commented on GitHub (Jan 3, 2026): > [@arsham](https://github.com/arsham) could also be this potentially: [ff0bd84](https://github.com/anomalyco/opencode/commit/ff0bd84870d4f3335f5f60621a46efaec6579332) @rekram1-node good catch. I'll revert this locally and will report back.
Author
Owner

@arsham commented on GitHub (Jan 3, 2026):

@rekram1-node it was unrelated to this commit, might be my own setup.

@arsham commented on GitHub (Jan 3, 2026): @rekram1-node it was unrelated to this commit, might be my own setup.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4102