clawmaster icon indicating copy to clipboard operation
clawmaster copied to clipboard

Windows CLI status does not reuse recorded local daemon metadata

Open AIwork4me opened this issue 7 months ago • 2 comments

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

  1. Clone the repository on Windows.
  2. Run npm install.
  3. Run npm test.
  4. Observe the failure in bin/clawmaster.test.mjs for status reuses the local daemon token and metadata for the recorded service.

Additional context Observed local failure:

  • clawmaster status reports: 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 target passes.

This suggests a Windows-specific issue in the CLI status/service-state path rather than a general service probe failure.

AIwork4me avatar Apr 18 '26 13:04 AIwork4me

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.

AIwork4me avatar Apr 18 '26 13:04 AIwork4me

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.

webup avatar Apr 20 '26 11:04 webup