opencode/packages/desktop-electron
LukeParkerDev c510661ef3 fix: stop random hotkeys from snapping desktop zoom to 1
The main process was resetting webContents zoom to 1 on every
\zoom-changed\ event, which fires not just for native Chromium zoom
gestures but also for the renderer's own setZoomFactor IPC calls. Paired
with a keydown listener that re-sent the current zoom on every
ctrl-combination (ctrl+backspace, ctrl+z, ctrl+v, ...), this created a
self-triggered race that intermittently snapped the factor back to 1.

Make the renderer the single source of zoom truth: keyboard, wheel, and
menu all drive the same Solid signal, preventDefault blocks Chromium's
built-in accelerators before they race, and the main process disables
pinch zoom and no longer listens to zoom-changed.
2026-04-19 13:19:09 +10:00
..
icons fix(desktop-electron): match dev dock icon inset on macOS (#19429) 2026-03-27 17:32:05 +00:00
resources desktop: remove unnecessary macOS entitlements (#16161) 2026-03-05 05:43:21 -06:00
scripts Remove CLI from electron app (#17803) 2026-04-09 13:18:46 +08:00
src fix: stop random hotkeys from snapping desktop zoom to 1 2026-04-19 13:19:09 +10:00
.gitignore desktop: add electron version (#15663) 2026-03-04 15:12:34 +08:00
AGENTS.md desktop: add electron version (#15663) 2026-03-04 15:12:34 +08:00
electron-builder.config.ts Remove CLI from electron app (#17803) 2026-04-09 13:18:46 +08:00
electron.vite.config.ts fix: pin desktop renderer dev server to loopback 2026-04-19 13:19:08 +10:00
package.json sync release versions for v1.14.17 2026-04-19 03:02:14 +00:00
README.md desktop: add electron version (#15663) 2026-03-04 15:12:34 +08:00
sst-env.d.ts desktop: add electron version (#15663) 2026-03-04 15:12:34 +08:00
tsconfig.json fix(desktop-electron): fix resource loading under file:// protocol (#17125) 2026-03-12 12:19:44 +08:00

OpenCode Desktop

Native OpenCode desktop app, built with Tauri v2.

Development

From the repo root:

bun install
bun run --cwd packages/desktop tauri dev

This starts the Vite dev server on http://localhost:1420 and opens the native window.

If you only want the web dev server (no native shell):

bun run --cwd packages/desktop dev

Build

To create a production dist/ and build the native app bundle:

bun run --cwd packages/desktop tauri build

Prerequisites

Running the desktop app requires additional Tauri dependencies (Rust toolchain, platform-specific libraries). See the Tauri prerequisites for setup instructions.