[BUG]: OpenCode Desktop consumes lots of CPU cycles on Mac M4 & freezes completely while trying new WorkSpace feature #7358

Open
opened 2026-02-16 18:06:56 -05:00 by yindo · 3 comments
Owner

Originally created by @deadcoder0904 on GitHub (Jan 23, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

I am trying to use the new workspace feature to create git worktrees.

Plugins

OpenCode version

Version 1.1.34 (1.1.34)

Steps to reproduce

  1. Create a new project folder (without git) and open it in OpenCode Desktop.
  2. Open that same project folder in your terminal and run git init.
  3. Close OpenCode Desktop completely, then try to reopen the project (since it doesn't support hot reload yet... see #8751).
  4. It fails to open. If you try to create a new workspace from inside OpenCode while it's still running, you get this error: Failed to create workspace. Worktrees are only supported for git projects
  5. The only fixes are: either delete the .git folder using rm -rf .git and reopen the project, or make sure the project already had a git repository before opening it (like your older projects do).

Screenshot and/or share link

This is how my Activity Monitor looks like:

Image

Why is the Tauri taking as much CPU cycles as Electron? I'm no performance nerd, but that looks bad I think.

And my OpenCode Desktop has hung up / freezed which causes the CPU cycles to spike up:

Image

I can't click any buttons and the loading placeholder just looks the same.

Operating System

macOS Sequoia 15.6.1

Terminal

Ghostty

Originally created by @deadcoder0904 on GitHub (Jan 23, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description I am trying to use the new workspace feature to create git worktrees. ### Plugins - ### OpenCode version Version 1.1.34 (1.1.34) ### Steps to reproduce 1. Create a new project folder (without git) and open it in OpenCode Desktop. 2. Open that same project folder in your terminal and run `git init`. 3. Close OpenCode Desktop completely, then try to reopen the project (since it doesn't support hot reload yet... see #8751). 4. It fails to open. If you try to create a new workspace from inside OpenCode while it's still running, you get this error: `Failed to create workspace. Worktrees are only supported for git projects` 5. The only fixes are: either delete the `.git` folder using `rm -rf .git` and reopen the project, or make sure the project already had a git repository before opening it (like your older projects do). ### Screenshot and/or share link This is how my Activity Monitor looks like: <img width="2328" height="1688" alt="Image" src="https://github.com/user-attachments/assets/5895c9cc-734d-43be-beac-75126dab41ac" /> Why is the Tauri taking as much CPU cycles as Electron? I'm no performance nerd, but that looks bad I think. And my OpenCode Desktop has hung up / freezed which causes the CPU cycles to spike up: <img width="2886" height="1888" alt="Image" src="https://github.com/user-attachments/assets/5cd7ee0b-bb13-4fea-9b96-f863a609c75b" /> I can't click any buttons and the loading placeholder just looks the same. ### Operating System macOS Sequoia 15.6.1 ### Terminal Ghostty
yindo added the bugperfweb labels 2026-02-16 18:06:56 -05:00
Author
Owner

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

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

  • #9901: OpenCode not launching in a random folder with .git folder
  • #9708: [BUG] Opencode desktop hangs after every edit
  • #7752: High Virtual Memory usage causing system to hang and also made other applications pause/hang
  • #8002: OpenCode hangs/freezes mid-stream on Starlink satellite internet connection
  • #5130: Mac unresponsive, significant lag
  • #6172: High CPU usage (100%+) during LLM streaming in long sessions due to O(n) text buffer rendering
  • #9059: High CPU Utilization Due To Repeated Git Process Invocations
  • #4752: files changes in sidebar not showing up when instance has many worktree subdirs

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

@github-actions[bot] commented on GitHub (Jan 23, 2026): This issue might be a duplicate of existing issues. Please check: - #9901: OpenCode not launching in a random folder with .git folder - #9708: [BUG] Opencode desktop hangs after every edit - #7752: High Virtual Memory usage causing system to hang and also made other applications pause/hang - #8002: OpenCode hangs/freezes mid-stream on Starlink satellite internet connection - #5130: Mac unresponsive, significant lag - #6172: High CPU usage (100%+) during LLM streaming in long sessions due to O(n) text buffer rendering - #9059: High CPU Utilization Due To Repeated Git Process Invocations - #4752: files changes in sidebar not showing up when instance has many worktree subdirs Feel free to ignore if none of these address your specific case.
Author
Owner

@adamdotdevin commented on GitHub (Jan 23, 2026):

Will look into this @deadcoder0904

@adamdotdevin commented on GitHub (Jan 23, 2026): Will look into this @deadcoder0904
Author
Owner

@Lermatroid commented on GitHub (Jan 23, 2026):

+1. Noticing degraded performance on my machine (m4 pro macbook pro) where the app is running at < that 60 fps and mac is reporting it as consuming significant energy.

Image
@Lermatroid commented on GitHub (Jan 23, 2026): +1. Noticing degraded performance on my machine (m4 pro macbook pro) where the app is running at < that 60 fps and mac is reporting it as consuming significant energy. <img width="312" height="59" alt="Image" src="https://github.com/user-attachments/assets/2eb0f6e0-6055-4787-be8f-4b2f6f17eaf5" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7358