Skip to content

fix(probe): find daemon binary with .exe on Windows - #738

Merged
Kaden-Schutt merged 1 commit into
warpfront:betafrom
harrytyp:fix/coherence-probe-windows-exe
Sep 9, 2026
Merged

fix(probe): find daemon binary with .exe on Windows#738
Kaden-Schutt merged 1 commit into
warpfront:betafrom
harrytyp:fix/coherence-probe-windows-exe

Conversation

@harrytyp

@harrytyp harrytyp commented Sep 9, 2026

Copy link
Copy Markdown

Problem

find_daemon_binary() probes target/release/daemon and target/debug/daemon without the .exe extension, so coherence_probe always exits with "daemon binary not found" on Windows.

Fix

Add the .exe candidates first (release + debug), keeping the extensionless ones for Unix. Two-line change, no behavior change on non-Windows (the .exe paths simply don't exist there and exists() falls through).

Validation

Verified locally on Windows 11: probe now locates target/release/daemon.exe and proceeds past binary discovery.

HW-gate routes

  • scripts/serve_harness.py: generation/state-lifecycle changed? No
  • scripts/redline_daemon_harness.py: kernel/dispatch change? No (example tooling only)

find_daemon_binary() probes target/release/daemon without the .exe
extension, so coherence_probe always fails with 'daemon binary not
found' on Windows. Add the .exe candidates first (release + debug),
keeping the extensionless ones for Unix.

Signed-off-by: kolja <kolja@local>
@Kaden-Schutt
Kaden-Schutt merged commit abfec18 into warpfront:beta Sep 9, 2026
@Kaden-Schutt

Copy link
Copy Markdown
Collaborator

Merged into beta at d2e2ee0, preserving the original commit and adding 7240773 to follow the CLI platform policy: Unix ignores stale .exe files; Windows prefers .exe with the existing bare-name fallback. Independent code review approved. Extracted real-function filesystem smoke passed 5 Unix and 6 simulated-Windows cases. Actual Windows process launch was not exercised here; the PR author supplied the original Windows discovery receipt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants