Skip to content

macOS desktop app white screen due to orphaned process accumulation #12240

Closed as not planned

Description

@IanShaw027

Description

The macOS desktop app experiences intermittent white screen issues during normal usage. This is caused by orphaned processes accumulating and consuming excessive memory.

Root Cause

The process cleanup code in packages/desktop/src-tauri/src/lib.rs uses killall opencode-cli, but the actual process name is opencode (not opencode-cli). This means orphaned processes are never cleaned up on app restart.

Symptoms

  • Multiple opencode, openwrk, and openwork-server processes accumulate over time
  • Memory usage grows significantly (observed 5 opencode processes consuming 1.3GB RAM)
  • WebView render process gets killed by system memory pressure
  • App shows white screen

Steps to Reproduce

  1. Use OpenWork desktop app on macOS for extended period
  2. Restart the app several times
  3. Check running processes: ps aux | grep -E "opencode|openwrk" | grep -v grep
  4. Observe multiple instances of each process type
  5. Eventually the app will white screen due to memory pressure

Expected Behavior

Old processes should be cleaned up when the app starts, leaving only one instance of each process type.

Environment

  • OS: macOS
  • App: OpenWork Desktop

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    webRelates to opencode on web / desktop
    on Feb 5, 2026
  2. github-actions commented on Feb 5, 2026

    @github-actions
    Contributor

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

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

  3. Micpol commented on Feb 8, 2026

    @Micpol

    It's not only Desktop app, although I'm not 100% sure - i just noticed I have 40 orphaned opencode processes, I'm using mostly CLI through Android Studio + Ghostty, and opencode desktop for copying larger chunks of text If have to. It's 25gb ram total.

  4. zehuiHuang commented on Feb 26, 2026

    @zehuiHuang

    me too ,终端上没啥问题 ,desktop打开直接就是白屏~

  5. atuizz commented on Apr 2, 2026

    @atuizz

    我也是,终端上没啥问题 ,desktop打开直接就是白屏~

    brew install opencode
    sudo chown -R $(whoami) ~/.local
    opencode web --port 4096

  6. rekram1-node commented on Apr 9, 2026

    @rekram1-node
    Contributor
    Image

    I dont work on desktop but im p sure the process is opencode-cli

  7. removed
    perfIndicates a performance issue or need for optimization
    webRelates to opencode on web / desktop
    on May 3, 2026
  8. github-actions commented on Jul 3, 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