opencode icon indicating copy to clipboard operation
opencode copied to clipboard

fix(desktop): make dev server port configuration more flexible

Open aspiers opened this issue 1 week ago • 13 comments

Without this patch, the desktop application requires a strict port configuration (port 1420) and hardcodes the devUrl in tauri.conf.json. This causes issues when the port is already in use during development.

This is a problem because developers cannot easily run multiple instances or work around port conflicts without manual configuration changes.

This patch solves the problem by removing the hardcoded devUrl from tauri.conf.json, setting strictPort to false in vite.config.ts to allow Vite to find an available port, and updating the Rust code to read the dev URL from the Tauri config or fall back to the default localhost:1420.

Closes #6943.

aspiers avatar Jan 05 '26 13:01 aspiers