Windows CLI status does not reuse recorded local daemon metadata
Platform: Windows x64
ClawMaster version: 0.1.0
Node.js version: v24.13.0
Describe the bug
On Windows, clawmaster status does not consistently reuse the recorded local daemon metadata/token from service-state.json for the recorded service. In this repository checkout, the existing CLI test status reuses the local daemon token and metadata for the recorded service fails locally and the command reports the service as unreachable even though the test server is running and expects the stored bearer token.
Steps to reproduce
- Clone the repository on Windows.
- Run
npm install. - Run
npm test. - Observe the failure in
bin/clawmaster.test.mjsforstatus reuses the local daemon token and metadata for the recorded service.
Additional context Observed local failure:
clawmaster statusreports:ClawMaster service is not reachable at http://127.0.0.1:<port>: fetch failed- The neighboring test
status --url does not reuse local daemon token or metadata for a different targetpasses.
This suggests a Windows-specific issue in the CLI status/service-state path rather than a general service probe failure.
I reproduced this locally on Windows and plan to work on a focused fix for the CLI status/service-state path. My approach will be: 1) isolate the Windows-specific behavior around local daemon metadata/token reuse, 2) add or tighten a regression test if needed, 3) patch the CLI implementation, and 4) verify with pm test before opening a PR.
Planning to address the Windows CLI service-state path gap while reviewing cross-platform clawmaster serve/status/stop behavior.
Scope I’m taking:
- verify the CLI reads/writes service metadata from the intended home directory on Windows
- keep the fix limited to the CLI web-console path
- validate it alongside the existing CLI tests so win/linux/mac behavior stays aligned
I’m also handling a separate favicon/brand asset cleanup under its own feature issue so the scopes stay clear.