provider: Qoder's mover min is 0.2.65 (plugins#930)
opencode-qoder-auth before 0.2.65 joined two tool calls Qoder streams at
one tool_calls index into one, even with their own ids and names, so the
client got a single tool_use whose input was {"key":"A"}{"key":"B"}
(invalid JSON) and neither call ran. 0.2.65 (plugins 34786eda) keeps them
apart. Raising the min lets keepMovedCurrent move every moved Qoder and
Qoder CN user onto it.
TestQoderMoversKeepToolCallsAtOneIndexApart holds both movers at 0.2.65 or
later, as the 0.2.53/0.2.54/0.2.61 floors do.
npm: `npm view --prefer-online @magpie-community/opencode-qoder-auth
version` prints 0.2.65, checked again just before this commit.
Run on mote (mote-run, at this tree rebased on 1ad9d157f; the same was green on fbc1808f2 first):
- gofmt -l internal/provider: empty
- go vet ./internal/provider/...: ok
- go test -count=1 -timeout 45m ./internal/provider/...: ok (156.4s)
Broken by hand: with the min put back to 0.2.64,
TestQoderMoversKeepToolCallsAtOneIndexApart fails ("the qoder mover
installs opencode-qoder-auth 0.2.64, which joins two tool calls at one
index into invalid JSON").
Not tried: no real Qoder account was moved or chatted through 0.2.65, and
keepMovedCurrent's update was not run against a real install. The
plugin's own parser fix is tested in the plugins repo, not here.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -0,0 +1,20 @@
|
||||
package provider
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/yetone/magpie/internal/update"
|
||||
)
|
||||
|
||||
// Qoder's plugin before 0.2.65 joined two tool calls Qoder streams at one
|
||||
// index into one, even with their own ids and names, so the client got one
|
||||
// tool_use whose input was {"key":"A"}{"key":"B"}, invalid JSON, and neither
|
||||
// call ran (plugins#930). The movers keep every moved Qoder and Qoder CN user
|
||||
// on a version that keeps them apart.
|
||||
func TestQoderMoversKeepToolCallsAtOneIndexApart(t *testing.T) {
|
||||
for _, id := range []string{"qoder", QoderCNID} {
|
||||
if update.Newer("0.2.65", movers[id].min) {
|
||||
t.Fatalf("the %s mover installs opencode-qoder-auth %s, which joins two tool calls at one index into invalid JSON", id, movers[id].min)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user