Skip to content

[Bug] High CPU and Memory usage on macOS ARM64 #30126

Closed as not planned
Closed as not planned

Description

@Stephenchangchang

Bug Description

opencode consumes extremely high CPU (100%+) and memory (~2.5GB) on macOS ARM64 after starting.

Environment

  • macOS: 15.7.4 (24G517)
  • Chip: Apple Silicon (arm64)
  • opencode version: v1.15.13

Steps to Reproduce

  1. Start opencode
  2. Wait a few seconds or send a message ("hi")
  3. Process becomes unresponsive with high resource usage

Process Status

chenstephen  113.0% CPU, 15.4% memory (2.5GB) for opencode main process

Expected Behavior

opencode should consume reasonable resources (< 10% CPU, < 500MB memory).

Additional Context

This issue also occurred on v1.15.12. The issue appears consistently when running opencode on this MacBook. Please advise if any logs or further information is needed.

Activity

  1. github-actions commented on May 31, 2026

    @github-actions
    Contributor

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

    If your issue is already covered, please add a +1 or additional context there instead.

  2. shuans commented on Jun 1, 2026

    @shuans

    +1

  3. itxtoledo commented on Jun 1, 2026

    @itxtoledo

    +1

  4. asaf92 commented on Jun 2, 2026

    @asaf92

    Does it happen in an empty session? Some sessions (ones with large diffs after tool call block) can behave like that even when resumed (opencode -s ...)

  5. github-actions commented on Aug 2, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions