Files
magpie/internal/daemon
yetone c6de0d2a54 daemon, agentenv: the service tools run through proc, and PI_DESKTOP_DATA_DIR is cleared in every sandbox
main has been red on ubuntu and macOS since 692a779d3's run (38376844048),
with two guards that each caught a commit run on chosen packages only:

- TestNoCommandBypassesProc: 5617281f5's daemon.run called exec.Command,
  so on Windows the service tools would open a console window. It now uses
  proc.Command.
- TestFolderVarsAreListed: cdb7b5ff7 made Sessions read PI-Desktop's data
  folder from $PI_DESKTOP_DATA_DIR without listing it in agentenv.Vars, so
  a test could read a developer's real PI-Desktop chats.

Run: go test -tags nogui -count=1 ./internal/agent ./internal/proc
./internal/daemon ./internal/agentenv ./internal/sessions (sandbox HOME),
all ok; both tests failed on the run above before; gofmt -l; go vet
darwin, GOOS=linux -tags nogui, GOOS=windows.
2026-10-13 17:49:07 +08:00
..