Files
magpie/internal
yetone 248edad80c provider: a plugin host ends with the test whose HOME it started in (#6761)
TestRemoveListedAccountLeavesHiddenNamesake failed in full runs (CI Test
at e99307fb8, ubuntu) and passed alone. A bisect over the 1779 tests
that run before it found TestPluginEmptyKeyKeyAsked: its PluginAPIKey
starts a real plugin host (Bun) and leaves it up. plugin.SignOut asks a
running host, and that host's files are the earlier test's HOME, so the
remove landed there and this test's plugin-auth.json kept the account.

claudeHome (which movedPlugin and the culprit both use) now stops a
host that is up before it sets the new HOME, and again in cleanup. That
covers every provider test that sets a HOME through it, not only this
pair.

Run (mote, then mica as mote was over its cores):
- red before: -run '^(TestPluginEmptyKeyKeyAsked|TestRemoveListedAccountLeavesHiddenNamesake)$'
  -> "the account removed is still signed in"; green after.
- go vet ./internal/provider/; go test -count=1 -timeout 45m
  ./internal/provider/ ./internal/plugin/ at this tree: ok 142.9s, ok 171.6s.
Not run: the full suite (test-only change in one package's helper).
2026-11-15 22:38:32 +08:00
..
…
…
…
…
…
…
…
…
…
…