Skip to content

fix(doctor): read active daemon logs on Windows - #2786

Merged
Aaronontheweb merged 6 commits into
netclaw-dev:devfrom
mikemikimike:fix/windows-shared-daemon-log-read-2704
Nov 7, 2026
Merged

Aaronontheweb merged 6 commits into
netclaw-dev:devfrom
mikemikimike:fix/windows-shared-daemon-log-read-2704

Conversation

@mikemikimike

Copy link
Copy Markdown
Contributor

Fixes #2704
#2704

netclaw doctor can read the active daemon log while the daemon keeps it open for append.
The regression test keeps the writer open and checks one success marker and one timeout marker.

Tests:

  • dotnet test Netclaw.slnx -c Release --no-restore --filter "Category!=NativeShell": the CLI test assembly reports 2,674 passed, 115 skipped, and two timezone failures. The clean current base reproduces both failures.
  • dotnet test Netclaw.slnx -c Release --no-build --no-restore --filter "Category=NativeShell": 1 passed.
  • dotnet format Netclaw.slnx --verify-no-changes --no-restore --include src/Netclaw.Cli/Doctor/MemoryCurationLlmDoctorCheck.cs src/Netclaw.Cli.Tests/Doctor/MemoryCurationLlmDoctorCheckTests.cs: passed.
  • dotnet slopwatch analyze: passed with 0 issues.

mikemikimike and others added 3 commits November 4, 2026 02:46
The message formats the failure rate with the current culture. CI wrote
"50 %" and the test expected "50%", so the test failed on Ubuntu. The
test now checks the severity and the counts "(1/2)", which prove that
doctor read and classified the open log.
@Aaronontheweb

Copy link
Copy Markdown
Collaborator

Thanks for the fix. The FileShare.ReadWrite | FileShare.Delete change is correct.

I pushed one commit to your branch (e7d075b7a). The test asserted "50%", but the message formats the rate with the current culture, and CI wrote "50 %", so the test failed on Ubuntu. The test now checks the severity and the counts "(1/2)", which do not change with the culture.

I also approved the CI runs for the new head.

@Aaronontheweb
Aaronontheweb merged commit fd3fbfd into netclaw-dev:dev Nov 7, 2026
35 checks passed
@Aaronontheweb Aaronontheweb mentioned this pull request Nov 7, 2026
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.

netclaw doctor fails Memory Curation LLM on Windows: daemon log is locked by the running daemon

2 participants