While a WSL distro runs, the Subagents page lists its agents that take
subagents here (Claude Code, Codex and the rest of SubagentAgents) with
a greyed chip that says magpie gives subagents only to agents on this
computer, not yet to it in WSL. With the distro stopped, they were gone
from the page: subagentsView built its agents from the targets only, and
an agent in a stopped distro is no target (#3896).
As the commit before did for the Hooks page: subagentsView now also
lists each stopped agent of those kinds that the MCP and Skills pages
list from its shape (asleepView), with the reason it has while the
distro runs (wslNoSubagents, which subagentSpecOf now shares), so its
chip, a subagent's problem for it and the "magpie can't give subagents
to ... yet" line are the same, stopped or running. Nothing of the
distro is opened. One magpie never saw (unseen) isn't listed.
No WSL agent can be given a subagent yet, so there is nothing to keep
for Woken. No change to the page; nothing new to translate. The line in
library.md that named the pages leaving a stopped distro's agents out
(#4182, #4237, #4238) is gone with this.
What was run (tree e03c52f0, on origin/main ec5571d6, go1.26.8,
linux/amd64, Linux 5.15, umask 077):
- TestWSLStoppedSubagents (new): the Subagents page's WSL agents read
while a FakeWSL distro runs (Claude Code and Codex, the kinds it
lists, each with the reason), then with it stopped and its folder
moved away: the same two, field for field. A subagent given the
stopped Claude Code has the same problem for it. Nothing was written
into the distro and FakeWSLRuns didn't move.
- Broken by hand, each alone: subagentsView skipping the stopped agents
("... while it is stopped: map[], while it ran: map[claude@wsl:...]",
and the subagent with no problem for Claude Code); the stopped agents
listed with no reason ("No:" empty against the running ones', the
same problem missing).
- library-wsl-asleep, its new Subagents case beside the Hooks one,
Chromium and WebKit, en, zh, zh-TW, ja and de at 1100 and 390px: a
subagent's chips are Claude Code and the stopped Codex, Codex's
blocked, asleep, aria-disabled, with the WSL reason as its tooltip,
the line names it, a click on it sends nothing. As for Hooks, the page
isn't changed, so only TestWSLStoppedSubagents catches the gap.
- GUI files, each alone, Chromium and WebKit, Node 22.22.1, Playwright
1.62.1, DISPLAY unset: library-wsl-asleep 44/44 each, i18n-keys 4/4,
library-subagents 6/6, library-hooks 6/6, library-gone-agents 11/11:
142 of 142.
- go test -tags nogui -count=1 ./internal/library ./internal/agent
./internal/cli: library and cli ok; agent red in TestInstalledVersion,
TestCursorFolderFromTheEditorIsNotTheCLI,
TestQoderSettingsFromAnIDEPluginIsNotTheCLI and
TestOmpDetectedWithPiDir
(#3141). go test -race -run TestWSL ./internal/library: ok.
- gofmt -l clean. go vet -tags nogui for linux, windows and darwin, go
vet for windows, go build -tags nogui for linux and darwin and go
build for windows: exit 0 each. go vet and go build without the tag on
linux: exit 1 (no GTK headers here).
- go test -tags nogui -count=1 -timeout 45m ./... (Bun 1.4.2; 9m49s,
load 20 at its start): 78 packages ok, and 8 tests red in 3 packages,
each filed: agent TestInstalledVersion,
TestCursorFolderFromTheEditorIsNotTheCLI,
TestQoderSettingsFromAnIDEPluginIsNotTheCLI, TestOmpDetectedWithPiDir
and TestZedAppPath (#3141); gui TestGatewayHeldByAContainer and
TestGatewayFixQuitsOnlyAMagpie (#3649); plugin
TestGatewayHookMixedPiPackage ("starting plugins: context deadline
exceeded", #2865, under load). The same suite on an origin/main
ec5571d6 worktree right after (10m01s): the same agent and gui reds,
test for test, and plugin ok there.
Not tried: a real distro, and the real app; FakeWSL counts the wsl.exe
-d commands run in the stopped distro (none).
Reviewed and run again by the maintainer at the stack's tree 45994757c
(this commit and the six beside it, on origin/main 90518de26), go1.26.8:
- mote (macOS, arm64): gofmt -l clean; go vet and go build for darwin,
GOOS=linux -tags nogui and GOOS=windows (library, plugin, gui): exit 0.
go test -tags nogui -count=1 -timeout 45m ./...: every package ok but
internal/gui TestSettingsSaveKeepsWhatItDoesNotSend (#4514) and
internal/proc TestNoCommandBypassesProc (#4491), both red on main
from b09349d17 and c59c547c5, in files this stack doesn't touch.
go test -race -run 'TestWSL|TestTagged|TestPinnedPiCache' for
library and plugin: ok.
- magpie-desktop (Linux, wsl-run; WebKit hangs on mote), Chromium and
WebKit: every library-*, sync-*, s3-sync, github-sync and i18n-keys
file, 4 at a time: 1003 of 1020. The 17 reds are in 6 files no commit here
touches: i18n-keys ("Unmarked", #4524), library-chip-fan, -items,
-mcp-health, -mcp-hub (#4483) and -mcp-tools. Those 6 alone, one at a
time, at load ~60: 74 of 92 here, 77 of 92 at 90518de26 itself. Red
in both: i18n-keys, -chip-fan and -items in WebKit, -mcp-tools in
Chromium ja 420; -mcp-health green in both; -mcp-hub's WebKit case
red here only, the case #4483 has red on main. -chip-fan and -items
are #3072's and #4501's kind, WebKit under load.
- Broken by hand on mote: subagentsView skipping the stopped distro's
agents turns TestWSLStoppedSubagents red.