[PR #6947] fix(desktop): make dev server port configuration more flexible #12173

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

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

State: closed
Merged: No


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.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6947 **State:** closed **Merged:** No --- 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.
yindo added the pull-request label 2026-02-16 18:17:06 -05:00
yindo closed this issue 2026-02-16 18:17:06 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12173