Commit Graph
1 Commits
Author SHA1 Message Date
yetone 53db4fda65 gateway: test a plugin's models through a Remote magpie (eachg0 on X)
eachg0 on X said Tabbit's plugin doesn't work when its magpie is
another magpie's Remote magpie. No magpie or plugin fault was found
on that path, so this adds only a guard: a plugin serving Chat alone
(the fake plugin, as Tabbit) is listed by the other magpie and
answers Chat, Responses and Messages, streamed and not, with tools,
each request passed to the remote once.

Run:
- TestRemoteMagpieServesPluginModels on mote at 065ca02c2: pass.
  Broken by hand (plugin rows left out of the list given to another
  magpie): red, "no models listed".
- go test -run 'Remote|Plugin' ./internal/gateway on mote: ok;
  go vet darwin, linux -tags nogui, windows: ok; gofmt clean.
- Two magpie processes in sandbox HOMEs on mote, the real Tabbit
  plugin (0.1.3) against a fake Tabbit site, A sharing with a gateway
  key, B's Remote magpie at A, over loopback and over the LAN IP:
  B lists office/tabbit/Default and GLM-5.3-Flash; Chat, Chat stream,
  Messages stream with tools and Responses stream all answer; a
  second turn in one session continues Tabbit's room (only the new
  message sent); three parallel requests queue behind maxConcurrency 1
  and all answer (3s, 6s, 9s).

Not tried: a real Tabbit account (none here), web.tabbit.ai (its 492
gate is plugins #833), the GUI on either side, Windows.
2026-11-10 22:37:48 +08:00