Follow-up to ggbdpq's grokShaped change: its test reads grokPluginBody
alone. skygunner's TestAllowedToolsReachesGrokPlugin (852182f6 on their
fork, from the #3153 thread) posts a /v1/responses request with an
allowed_tools choice through the gateway to the fake Grok plugin and
checks its fetch gets that object as sent, which is where the plugin
decides on x_search. Taken as written; provider-plugins.md names it.
Broken by hand: with internal/provider/grok.go at d307aa648 (before
the fix) it is red ("sent" with no tool_choice), green with it. The
plugin side was read in magpie-community/plugins at 26864ec (grok
0.2.3, the mover's min): rewrite decides x_search on the choice as it
came (null or "auto" only) and deletes an object whose type isn't in
TOOLS before Grok, so no min raise is needed.
Run at the pushed head on mote: go test ./... -timeout 45m on mote with this branch on 41b5c0f19: 83 packages ok. internal/gui is red on TestSettingsSaveKeepsWhatItDoesNotSend (#4514) and TestMainWindowCorners (#3949), both red alone at 41b5c0f19 too, and on TestColdTurnsTaken (#4510). internal/update is red on TestRelaunchOpenTriedAgain (#3881). The last two pass alone at 41b5c0f19 and here. Rebased on f856d381a: agent, gateway, plugin, provider and sessions ok, gui red on #4514 and #3949 only, gofmt -l clean, go vet ok for linux (nogui), windows and darwin. Rebased on bb478f0e5: agent and gateway ok, gui the same. The last rebase, onto 573b21f4b, brings in only internal/gui/providers*.go and internal/provider/models.go, which this branch doesn't touch.
Co-authored-by: vincent <webmaster@palmit.com.au>
Co-authored-by: ggbdpq <ggbdpq@gmail.com>