Skip to content

Codemap watch status doesn't work on windows #72

@ScottRosenberg2

Description

@ScottRosenberg2

What happened?
On Windows, codemap watch start reports success and leaves a running codemap process with a matching .codemap/watch.pid, but codemap watch status immediately says Watch daemon not running.

Expected behavior
After watch start succeeds, watch status should report the daemon as running when the PID in .codemap/watch.pid is still alive.

Actual output

PS> Get-Process codemap | Stop-Process -Force
PS> codemap watch start
Watch daemon started (pid 12532)
PS> codemap watch status
Watch daemon not running
PS> Get-Process -Id 12532
 NPM(K)    PM(M)      WS(M)     CPU(s)      Id  SI ProcessName
 ------    -----      -----     ------      --  -- -----------
     12    21.15      21.88       8.55   12532   1 codemap
PS> Get-Content .codemap\watch.pid
12532

**Environment
OS: Windows 11
Editor: Cursor 3.6.31
codemap version: 4.1.7
Install method: Scoop

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions