fix(desktop): friendly already-running guard for clawcodex desktop - #808
Merged
Conversation
A second `clawcodex desktop` died mid-boot on vite's raw 'Port 5174 is already in use' stack trace. Probe the dev renderer port before launching and explain the situation instead: the app is almost certainly already running — switch to its window or quit it. --no-dev launches skip the guard (they don't bind the dev port). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
agentforce314
enabled auto-merge (squash)
August 8, 2026 08:17
Merged
agentforce314
added a commit
that referenced
this pull request
Aug 8, 2026
ClawCodex Desktop headlines 1.5.0: the native app (ui-desktop/), the clawcodex serve gateway backing it, the clawcodex desktop launcher, official crab branding, and macOS packaging — plus the ship-week fixes (lib/ tracking, 100% default UI scale, already-running launch guard). - version 1.4.0 -> 1.5.0 (pyproject + src/__init__ fallback) - CHANGELOG: cut [1.5.0] from Unreleased (#802-#808) - News: v1.5.0 item in README (v0.6.0 rotated to docs/NEWS.md archive) Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A second
clawcodex desktopdied mid-boot on vite's rawPort 5174 is already in usestack trace (user hit this when an instance was already up).Now the launcher probes the dev renderer port first and explains:
--no-devlaunches skip the guard (they don't bind the dev port). Covered by a socket-listener test (guard trips while held, clears when released, subcommand exits 1 with the message).🤖 Generated with Claude Code