-
Notifications
You must be signed in to change notification settings - Fork 5k
Description
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:
opencode/packages/desktop/vite.config.ts
Lines 20 to 23 in 11b0df6
| // 2. tauri expects a fixed port, fail if that port is not available | |
| server: { | |
| port: 1420, | |
| strictPort: true, |
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 tauri-apps/tauri#6186 and tauri-apps/tauri#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