Skip to content

Desktop: WebKit renderer process uses excessive memory (~7.5GB) #19167

@athal7

Description

@athal7

Description

The OpenCode Desktop app's WebKit renderer process (com.apple.WebKit.WebContent) grows to very high memory usage over time. In my case it reached ~7.5GB RSS, contributing significantly to system memory pressure.

Steps to reproduce

  1. Open OpenCode Desktop
  2. Use it for an extended session (several hours, multiple conversations)
  3. Check memory usage: ps aux | grep WebKit | sort -rk6

Expected behaviour

WebKit renderer memory should stay bounded and be released between sessions or when not actively rendering.

Observed behaviour

The WebKit process grows unboundedly and is not released. On macOS it reparents to launchd (PID 1) making it look like an orphan, but it continues consuming memory. The process started at the same time as the Desktop app.

Plugins

opencode-pty, opencode-wakatime

OpenCode version

v1.3.0

Operating System

macOS (Apple Silicon)

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

perfIndicates a performance issue or need for optimizationwebRelates to opencode on web / desktop

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions