Skip to content

Fix Windows debug startup detection#7

Merged
cluic merged 1 commit into
mainfrom
codex/fix-windows-debug-start
May 20, 2026
Merged

Fix Windows debug startup detection#7
cluic merged 1 commit into
mainfrom
codex/fix-windows-debug-start

Conversation

@cluic

@cluic cluic commented May 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • fix direct-execution detection in node/src/server.mjs so Windows paths are recognized correctly
  • add a regression test covering Windows and POSIX execution paths
  • include a patch changeset for the next npm release

Root Cause

crp start --debug launches node src/server.mjs in the foreground. The server process decides whether to auto-start by comparing import.meta.url with process.argv[1]. On Windows, those values use different path formats (file:///C:/... vs C:\...), so the comparison fails and the child process exits successfully without starting the server.

Verification

  • npm install && npm test

@cluic cluic merged commit bb93ba6 into main May 20, 2026
1 check passed
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.

1 participant