Skip to content

Windows: tests run on Windows, and 8 Windows bugs fixed - #4

Merged
doluz merged 2 commits into
mainfrom
bugfix/ms-2371-windows-tests
Nov 23, 2026
Merged

doluz merged 2 commits into
mainfrom
bugfix/ms-2371-windows-tests

Conversation

@KuramaCommit

@KuramaCommit KuramaCommit commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

What

The first CI run on main failed on windows-latest (macOS and Linux passed). This makes the test suite run on Windows and fixes the real Windows bugs it exposed.

Why

The tests created fake agent CLIs as Unix shell scripts, which Windows can't run, and one test hung on Windows' small pipe buffer, so every test after it never ran there. Several product bugs only show up on Windows.

How

Tests:

  • Fake CLIs are tiny Go programs built into the test's temp folder (with .exe), instead of shell scripts.
  • run() reads the command's output while it runs, so a large output can't fill the pipe and hang.
  • A test helper now closes its file when the test fails, so Windows can delete the temp folder.

Product fixes:

  1. The doctor port check now recognises a busy port on Windows (WSAEADDRINUSE).
  2. A downloaded Muse app no longer counts as missing on Windows, where files have no execute bit.
  3. A one-shot agent that can't start now fails the turn at once instead of after the 60 s timeout. This affected every platform; a regression test covers it.
  4. When a session is refused or a warm start fails, the terminal log now says why instead of only showing "unknown session" later.
  5. --command keeps Windows paths: a backslash only escapes ".
  6. An agent installed outside PATH is found on Windows, including .cmd and .exe names.
  7. The PATH hint on Windows is a PowerShell line instead of export PATH=….
  8. The default owner name falls back to %USERNAME% when $USER isn't set.

Testing

  • On darwin: gofmt -l is clean, go vet ./... passes, and go test -count=1 ./... passes in every package.
  • GOOS=windows go vet ./... passes, and every package's tests compile for Windows.
  • Windows execution: this PR's CI is the first real run. The earlier hang hid every test after bots list, so a few more Windows failures may still show up.

Prove it works
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

KuramaCommit and others added 2 commits November 22, 2026 17:15
…usy-port detection, Muse app detection, one-shot start failures hanging a turn, silent session start errors, backslashes in --command, off-PATH installs, PowerShell PATH hint, %USERNAME% fallback
…eetStream Agent with the OS path separator

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@doluz
doluz merged commit 28bf847 into main Nov 23, 2026
5 checks passed
@doluz
doluz deleted the bugfix/ms-2371-windows-tests branch November 23, 2026 13:26
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.

2 participants