[BUG] Binary name collision: opencode vs OpenCode on case-insensitive filesystems #6716

Open
opened 2026-02-16 18:05:02 -05:00 by yindo · 1 comment
Owner

Originally created by @jerome-benoit on GitHub (Jan 18, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Description

Commit 96975ef renamed the desktop binary from "OpenCode Desktop" to "OpenCode", causing collision with CLI binary opencode on case-insensitive filesystems (macOS/Windows default).

Root Cause

Commit: 96975ef8d6 (Dec 14, 2025)
File: packages/tauri/src-tauri/tauri.conf.json

- "mainBinaryName": "OpenCode Desktop",
+ "mainBinaryName": "OpenCode",

Problem

On case-insensitive filesystems, 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 (#8998)

Cross-Platform Binary Naming

Standard conventions prohibit:

  • Mixed case (filesystem collision)
  • Spaces (breaks shell scripting)
  • Underscores (library naming conflicts)

Recommended:

  • Lowercase with hyphens: opencode-desktop

Solution

Rename desktop binary to opencode-desktop (matches existing package naming conventions).

References

  • Breaking commit: 96975ef
  • Discussion: #9032 (comment r2700886644)
  • Related: #7666 (Windows UX confusion - different issue)
Originally created by @jerome-benoit on GitHub (Jan 18, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Description Commit 96975ef renamed the desktop binary from `"OpenCode Desktop"` to `"OpenCode"`, causing collision with CLI binary `opencode` on case-insensitive filesystems (macOS/Windows default). ### Root Cause **Commit**: 96975ef8d608b210cffd4befeaad5ce0db66e4de (Dec 14, 2025) **File**: `packages/tauri/src-tauri/tauri.conf.json` ```diff - "mainBinaryName": "OpenCode Desktop", + "mainBinaryName": "OpenCode", ``` ### Problem On case-insensitive filesystems, `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 (#8998) ### Cross-Platform Binary Naming Standard conventions prohibit: - ❌ Mixed case (filesystem collision) - ❌ Spaces (breaks shell scripting) - ❌ Underscores (library naming conflicts) Recommended: - ✅ Lowercase with hyphens: `opencode-desktop` ### Solution Rename desktop binary to `opencode-desktop` (matches existing package naming conventions). ### References - Breaking commit: 96975ef - Discussion: #9032 (comment r2700886644) - Related: #7666 (Windows UX confusion - different issue)
yindo added the windowswebnix labels 2026-02-16 18:05:02 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 18, 2026):

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

  • #7666: [FEATURE]: Rename Windows Opencode Desktop opencode.exe as opencode-desktop.exe - This requests the same solution of renaming the desktop binary to opencode-desktop to avoid collision with the CLI binary.

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

@github-actions[bot] commented on GitHub (Jan 18, 2026): This issue might be a duplicate of existing issues. Please check: - #7666: [FEATURE]: Rename Windows Opencode Desktop opencode.exe as opencode-desktop.exe - This requests the same solution of renaming the desktop binary to opencode-desktop to avoid collision with the CLI binary. Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6716