desktop clashes with other Tauri apps
Description
I am running epicenter's Whispering voice dictation app which is also a Tauri app running on localhost:1420. This means that when I attempt to launch OpenCode Desktop via
bun run --cwd packages/desktop tauri dev
(as per this comment on #6870), then it fails.
I see that this is due to deliberately hardcoding usage of port 1420 with strictPort enabled:
https://github.com/anomalyco/opencode/blob/11b0df6b868ce13c6c3690a5461827d6e551b3e5/packages/desktop/vite.config.ts#L20-L23
but surely there is a better way which allows multiple Tauri apps running peacefully together?
If I disable strictPort then it actually launches a window for Whispering not OpenCode.
I found https://github.com/tauri-apps/tauri/issues/6186 and https://github.com/tauri-apps/tauri/pull/6283/ but haven't yet figured the magic combination to get this all working.
Plugins
n/a
OpenCode version
Latest dev branch
Steps to reproduce
- Launch another Tauri app which uses port 1420
- Try to launch OpenCode Desktop
Screenshot and/or share link
No response
Operating System
openSUSE Tumbleweed
Terminal
n/a