Skip to content

desktop clashes with other Tauri apps #6943

@aspiers

Description

@aspiers

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:

// 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

  1. Launch another Tauri app which uses port 1420
  2. Try to launch OpenCode Desktop

Screenshot and/or share link

No response

Operating System

openSUSE Tumbleweed

Terminal

n/a

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions