tui: use random free port and enable icon discovery by default

- Tauri app now automatically finds an available port instead of defaulting to 4096
- Icon discovery feature is now enabled by default in the Tauri app
- Prevents port conflicts when multiple OpenCode instances are running
This commit is contained in:
Dax Raad
2025-12-10 16:13:04 -05:00
parent 59fb3ae606
commit 9ad828dcd0
3 changed files with 12 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ export namespace Project {
await migrateFromGlobal(id, worktree)
}
}
if (Flag.OPENCODE_EXPERIMENTAL) discover(existing)
if (Flag.OPENCODE_EXPERIMENTAL_ICON_DISCOVERY) discover(existing)
const result: Info = {
...existing,
worktree,