[PR #10604] fix(desktop): rename binary to avoid collision with CLI #13499

Closed
opened 2026-02-16 18:18:21 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10604

State: closed
Merged: No


Summary

  • Rename the desktop binary from OpenCode to opencode-desktop to prevent collision with the CLI binary opencode on case-insensitive filesystems (macOS, Windows)
  • Add explicit mainBinaryName to production config (was previously inheriting from productName)

Problem

On case-insensitive filesystems (macOS default, Windows), OpenCode and opencode are treated as the same file:

  • Desktop binary overwrites CLI binary (or vice versa)
  • Cannot install both in same directory
  • Blocks Nix packaging (#9032) and breaks existing installations

Solution

Use lowercase with hyphens (opencode-desktop) which:

  • Avoids filesystem collision
  • Follows standard binary naming conventions
  • Matches existing package naming patterns

Test plan

  • Verify desktop app launches correctly with new binary name
  • Verify CLI (opencode) still works independently
  • Test installation on macOS and Windows

Fixes #9273

🤖 Generated with Claude Code

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10604 **State:** closed **Merged:** No --- ## Summary - Rename the desktop binary from `OpenCode` to `opencode-desktop` to prevent collision with the CLI binary `opencode` on case-insensitive filesystems (macOS, Windows) - Add explicit `mainBinaryName` to production config (was previously inheriting from `productName`) ## Problem On case-insensitive filesystems (macOS default, Windows), `OpenCode` and `opencode` are treated as the same file: - Desktop binary overwrites CLI binary (or vice versa) - Cannot install both in same directory - Blocks Nix packaging (#9032) and breaks existing installations ## Solution Use lowercase with hyphens (`opencode-desktop`) which: - Avoids filesystem collision - Follows standard binary naming conventions - Matches existing package naming patterns ## Test plan - [ ] Verify desktop app launches correctly with new binary name - [ ] Verify CLI (`opencode`) still works independently - [ ] Test installation on macOS and Windows Fixes #9273 🤖 Generated with [Claude Code](https://claude.com/claude-code)
yindo added the pull-request label 2026-02-16 18:18:21 -05:00
yindo closed this issue 2026-02-16 18:18:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13499