Files
magpie/internal
yetone ab7cb55371 plugin: a page-only plugin's options are set under plugins.json's lock too (#4666)
0d6162c8a put every plugins.json change under the file's lock, but
SetPageOptions writes a page-only plugin's options itself, under listMu
alone, so another magpie's save meanwhile was still lost there. It now
takes listFileMu before listMu, as SetOptions does.

Run (mote, darwin/arm64):
- go test ./internal/plugin -run Meanwhile -v: the three Meanwhile tests ok
- page.go reverted with the test kept: TestPluginPageOptionsKeepWhatAnotherMagpieSetMeanwhile
  red ("SetPageOptions went on while another magpie held plugins.json's
  lock"); restored, green
- full suite (go test -tags nogui ./... -timeout 45m, mote) with this
  stack at b566b9d3c on 0b8c4bfc3: every package ok but two reds of that
  base, both fixed on main since: internal/cli
  TestEveryRouteHasACommandOrIsNamed (4c86b0ab4) and internal/tui
  TestEveryWordHasZh "permission mode" (e9fcc6229)
- rebased on f1c9014cd: go vet (darwin, linux nogui, windows) and
  go test of internal/gateway, internal/plugin, internal/cli and
  internal/tui at the pushed head: ok (gateway 899s, plugin 158s, cli, tui)
- go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet
  ./..., darwin/linux/windows builds: ok at b566b9d3c

Refs #4666
2026-11-15 06:40:19 +08:00
..
…
…
…
…
…
…
…
…
…
…