22 more tests red on Windows at main 67d0e4da6, alone too (not in #1827/#1388/#2808/#1356)
Run on the Windows box (xiaomi-gpu, Windows 11, Go 1.26.8, win-run) at origin/main 67d0e4da6, first in the package run (go test -count=1 -timeout 45m <pkg>), then each one again alone with -run. Every test below is red alone too, unless marked. None of these is in #1827, #1388, #2808 or #1356 (searched by test name); those issues' tests are still red and are commented there. The two package timeouts are #4113 (gateway) and #4114 (sessions).
The groups are read from the error messages. No cause below has been traced in code except where it says so. This box also has real WSL distros, so tests that look for WSL find them (Windows CI has none).
A. A macOS or Linux case run on Windows paths (the test doesn't force its OS, or builds a Unix path with filepath)
- internal/agent
TestWorkBuddyRestartOnMac:apprestart_test.go:103: no Restart for WorkBuddy started an hour before magpie wrote its models (asked ["^C:\\Users\\...\\Applications\\WorkBuddy\.app\\Contents\\MacOS... - internal/agent
TestWorkBuddyOwnSaveAfterStartIsNoChange/darwin:apprestart_test.go:319: no Restart for WorkBuddy started half an hour before magpie wrote its models - internal/agent
TestDesktopExec:lody_test.go:368: "[Desktop Entry]\nExec=/bin/sh -c 'x' %U\n": [], want ["/bin/sh" "-c" "'x'" "L"](and two more cases) - internal/agent
TestOpenLodyRunsItsDesktopEntry:lody_test.go:277: open ...\Apps $1\Lody "x".AppImage: The filename, directory name, or volume label syntax is incorrect.(a"can't be in a Windows file name) - internal/sessions
TestAgySessions:agy_test.go:55: two turns: title "Hello from the fake." cwd "\\work\\proj" - internal/sessions
TestAgyRowOnly:agy_test.go:237: row only: {... Cwd:\work\old ... - internal/provider
TestCodexDaemonEnvIsTheTerminals:codex_daemon_test.go:592: env ["HOME=/home/u" "PATH=/usr/bin" "no_proxy=*" "LANG=C"], want ["HOME=/home/u" "LANG=C" "PATH=/home/u/.local/bin:/usr/bin" "https_proxy=http://127.0.0.1:7890" "NO_PROXY=localhost"]
B. The box's real WSL (or its bash.exe) reaches the test
- internal/library
TestCheckMixedServerEachSide:mcp_check_wsl_test.go:151: got {State:ok Tools:3 ...}, want ok here and in Ubuntu - internal/library
TestGoneAgentListedToTakeOut:gone_agents_test.go:35: hermes wasn't given the skills - internal/agent
TestHermesOffAndOnKeepsEveryBotsModel:hermes_test.go:698: off: writer is on {Provider:magpie Default:kimi-k3 Key:model.default}, want {Provider:mine Default:kimi-k3 Key:} - internal/agent
TestHermesProfileModels:hermes_test.go:891: one profile only, yet pickers [profile:default profile:chat profile:empty profile:later profile:writer] - internal/agent
TestHermesProfilesFollowMagpieModel(package run only, passes alone):hermes_test.go:616: flash: old is on magpie/deepseek/pro, want magpie/deepseek/flash
C. Windows folders the test doesn't set
- internal/gui
TestLodyImportHandoff,TestImportStatusUnreadableIsUnknown,TestAionUiImportRow:lody_test.go:40/154/181: %AppData% is not defined - internal/agent
TestClaudeDesktopCarriesTheLanguage:claudedesktop_test.go:679: open ...\AppData\Local\Claude-3p\config.json: The system cannot find the file specified. - internal/agent
TestCodexSyncMendsGoneCatalog/not_the_provider:codex_catalog_gone_test.go:153: config.toml still names C:/Users/.../.codex/magpie-models.json
D. Processes and executables on Windows
- internal/gui
TestUpdateThatWontStart:update_blocked_test.go:71: relaunched 0 times(log:fork/exec ...\magpie.new: %1 is not a valid Win32 application.) - internal/gui
TestGatewayHeldByAContainer:TempDir RemoveAll cleanup: unlinkat ...\002\magpie.exe: Access is denied.(the exe the test started is still running at cleanup) - internal/sqlitedb
TestSQLiteSurvivesMalformedEnv:sqlitedb_test.go:37: a magpie started with an entry with no "=" couldn't open SQLite: fork/exec ...\sqlitedb.test.exe: The parameter is incorrect.(Windows refuses such an environment block, so the case may not exist there)
E. Other
- internal/plugin
TestPiPackage(54s alone):pi_test.go:189: second prompt = <nil>, the plugin host quit: exit status 1; the package run also logstestenv: a test asked models.dev:443, refused - internal/plugin
TestPluginLeavesTheUserNetworkDirect:plugin_lan_test.go:218: a public address: 0 "proxyconnect tcp: 502 Bad Gateway", want it through the proxy - internal/provider
TestCodexListTagKeptWhileNothingChanged:codex_list_tag_test.go:96: with nothing changed, the tags took 216 allocations (26032 bytes) a call: the catalog built again(held too, line 103)
Windows CI only compiles the tests (#923), so nothing shows these. Each needs its cause found and fixed, not a skip; please take one by saying so here, or split it out, before starting.
One more for group A, not in the list above: internal/agent TestT3CodeCodexInstance. It is red on the Windows box (xiaomi-gpu, win-run, Go 1.26.8) at a808c31a7, in the package run and alone with -run '^TestT3CodeCodexInstance$':
t3code_codex_test.go:79: CreateFile C:\Users\yeton\AppData\Local\Temp\TestT3CodeCodexInstance904431898\001\T3 "a" $b\userdata\settings.json: The filename, directory name, or volume label syntax is incorrect.
It's the same cause as TestOpenLodyRunsItsDesktopEntry: the fixture folder's name has a ", which a Windows file name can't hold. The other 13 internal/agent reds there are the ones listed here, in #1827 and in #1388. They are the same at a808c31a7 and with the #3269 change on top.
Causes traced for three internal/agent reds listed here (Windows 11 ARM64, Go 1.26.8, v0.1.2310 and v0.1.2519; each alone with -run):
TestCodexSyncMendsGoneCatalog/not_the_provider(group C): split out to #4785 with the cause (ownCatalogcompares a/-spelled absolute path as a raw string) and a fix checked green.TestHermesProfileModels(group B): here it isn't WSL. The test swaps HOME but not LOCALAPPDATA (hermes_test.go:851-857), where Hermes profiles live on Windows (internal/appdir/hermes.go:34-45), so it sees the profiles an earlier Hermes test left in the same process. Red afterTestHermesProfilesFollowMagpieModelin one run, green alone in a fresh process.TestHermesProfilesFollowMagpieModel(group B, package run only): aprofiles/.deleted/oldleft in the shared LOCALAPPDATA makesoldrightly skipped. Red with that tombstone there, green in a fresh LOCALAPPDATA, same assertion (hermes_test.go:619).
Also six "kept" allocation tests not listed here: #4786 (environSum hashes os.Environ() on every StampNow, which allocates a string per variable on Windows).
TestPiPackage on Windows (xiaomi-gpu, win-run) at 125fd93ec: the cause is the fixture, not the host. fakepi.ts:186 spawns sh -c 'read -r l …' and Bun fails with Executable not found in $PATH: "sh" (ENOENT), which is uncaught, so the host exits 1 and the second prompt gets "the plugin host quit: exit status 1". The fixture needs a Windows command, or the spawn's error needs handling.
Same class on Windows at 662546e78 (codex-switch-projects branch, a change in neither file): TestOpenMausBotRestartOnMac — openmausbot_test.go:577: no Restart for OpenMausBot started an hour before magpie wrote its engine, beside TestWorkBuddyRestartOnMac. Both build a macOS bundle path from a Windows temp dir, so the process pattern never matches.
One more of the same group, not listed above: TestCherryStudioImportRow, red on the Windows box (xiaomi-gpu, Go 1.26.8, win-run) at origin/main b46f23ffa, in the package run and again alone with -run:
--- FAIL: TestCherryStudioImportRow (0.00s)
lody_test.go:298: %AppData% is not defined
Same message as TestLodyImportHandoff / TestAionUiImportRow here. Not traced in code. Found while running internal/gui for an unrelated sidebar change; not taking it.
Seen at origin/main 72f2deebe on the Windows box (win-run, Go 1.26.8): TestLodyImportHandoff, TestImportStatusUnreadableIsUnknown and TestAionUiImportRow are still red, and TestCherryStudioImportRow (internal/gui/lody_test.go:298) fails the same way, %AppData% is not defined; it was not in this list.
Cause of that group, read in code, not fixed here: sandboxHome (internal/gui/backup_test.go:35) sets APPDATA and LOCALAPPDATA to "", so on Windows os.UserConfigDir() returns that error. Setting them under the temp HOME (AppData\Roaming, AppData\Local) instead of "" should clear all four. Not taking it in this session (I am on the Discover plugin counts); found while running that change on Windows.
Taking the two left here (TestGoneAgentListedToTakeOut, TestCheckMixedServerEachSide): both still red alone on Windows at origin/main 961427f12. TestPluginImportCarryOnOffRemove was fixed in ff11275ae (#6065).
TestGoneAgentListedToTakeOut and TestCheckMixedServerEachSide fixed in f978d0bee (test-only: Hermes's Windows home; the Unix-only fake skipped on Windows). internal/library is now ok whole on Windows. The other packages listed here are still open.