Skip to content

Updating OpenCode desktop app breaks opencode CLI on macOS #16532

Closed as duplicate

Description

@btriapitsyn

Description

After updating the OpenCode desktop application on macOS, the opencode CLI stopped working.

Running: opencode upgrade
resulted in: zsh: killed opencode upgrade
and after that even: opencode --version was immediately killed.

The bundled binary inside the updated app still worked: /Applications/OpenCode.app/Contents/MacOS/opencode-cli
but the CLI binary at: ~/.opencode/bin/opencode was no longer usable.
macOS crash logs showed:

- SIGKILL (Code Signature Invalid)
- termination: CODESIGNING / Invalid Page

This looks like the desktop app update leaves the separately installed CLI in a broken or invalid state, or replaces it in a way that breaks code signing.

Workaround
Replacing the broken CLI with the app-bundled binary fixed it:
cp -f /Applications/OpenCode.app/Contents/MacOS/opencode-cli ~/.opencode/bin/opencode

Environment

  • macOS 26.3
  • Apple Silicon
  • OpenCode CLI/Desktop version: 1.2.21

Plugins

none

OpenCode version

1.2.21

Steps to reproduce

  1. Install OpenCode desktop on macOS.
  2. Update the desktop app to a newer version.
  3. Open Terminal and run opencode upgrade.
  4. Observe that the process is killed with zsh: killed opencode upgrade.
  5. Run opencode --version and observe that the CLI is also immediately killed.

Screenshot and/or share link

Unified log

2026-03-08 01:21:10.931 Df kernel[0:3119a0] CODE SIGNING: cs_invalid_page(0x10434c000): p=91675[opencode] final status 0x23010200, denying page sending SIGKILL
2026-03-08 01:21:10.931 Df kernel[0:3119a0] CODE SIGNING: process 91675[opencode]: rejecting invalid page at address 0x10434c000 from offset 0x0 in file "/Users/btriapitsyn/.opencode/
bin/opencode" (cs_mtime:1772923466.624815276 == mtime:1772923466.624815276) (signed:1 validated:1 tainted:1 nx:0 wpmapped:0 dirty:0 depth:0)
2026-03-08 01:21:10.931 Df kernel[0:3119a0] opencode[91675] Corpse allowed 1 of 5

2026-03-08 01:21:41.488 Df kernel[0:311d39] CODE SIGNING: cs_invalid_page(0x100f60000): p=91940[opencode] final status 0x23010200, denying page sending SIGKILL
2026-03-08 01:21:41.488 Df kernel[0:311d39] CODE SIGNING: process 91940[opencode]: rejecting invalid page at address 0x100f60000 from offset 0x0 in file "/Users/btriapitsyn/.opencode/
bin/opencode" (cs_mtime:1772923466.624815276 == mtime:1772923466.624815276) (signed:1 validated:1 tainted:1 nx:0 wpmapped:0 dirty:0 depth:0)
2026-03-08 01:21:41.489 Df kernel[0:311d39] opencode[91940] Corpse allowed 1 of 5

2026-03-08 01:22:08.452 Df kernel[0:311f61] CODE SIGNING: cs_invalid_page(0x10299c000): p=92003[opencode] final status 0x23010200, denying page sending SIGKILL
2026-03-08 01:22:08.452 Df kernel[0:311f61] CODE SIGNING: process 92003[opencode]: rejecting invalid page at address 0x10299c000 from offset 0x0 in file "/Users/btriapitsyn/.opencode/
bin/opencode" (cs_mtime:1772923466.624815276 == mtime:1772923466.624815276) (signed:1 validated:1 tainted:1 nx:0 wpmapped:0 dirty:0 depth:0)
2026-03-08 01:22:08.452 Df kernel[0:311f61] opencode[92003] Corpse allowed 1 of 5
2026-03-08 01:22:08.531 Df osanalyticshelper[61212:311472] (OSAnalytics) Saved type '309(<private>)' report (8 of max 25) at /Users/btriapitsyn/Library/Logs/DiagnosticReports/opencode-
2026-03-08-012208.ips

Crash report excerpt
From ~/Library/Logs/DiagnosticReports/opencode-2026-03-08-012208.ips:

"captureTime" : "2026-03-08 01:22:08.4533 +0200",
"procName" : "opencode",
"codeSigningID" : "opencode-cli",
"codeSigningTeamID" : "5NZ4Q7NXJ4",
"exception" : {"type":"EXC_BAD_ACCESS","signal":"SIGKILL (Code Signature Invalid)","subtype":"UNKNOWN_0x32 at 0x000000010299c000"},
"termination" : {"flags":0,"code":2,"namespace":"CODESIGNING","indicator":"Invalid Page"},
"osVersion" : {
"train" : "macOS 26.3",
"build" : "25D125",
"releaseType" : "User"
},
"cpuType" : "ARM-64"

Operating System

No response

Terminal

No response

Activity

  1. added
    bug
    on Mar 7, 2026
  2. added
    web
    on Mar 7, 2026
  3. github-actions commented on Mar 7, 2026

    @github-actions
    Contributor

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

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

Metadata

Metadata

Assignees

Labels

bugweb

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions