From f575da41cc5589deeebad08839c2ee18f874f06f Mon Sep 17 00:00:00 2001 From: yetone Date: Fri, 9 Oct 2026 19:31:33 +0800 Subject: [PATCH] provider: the Kiro mover asks for opencode-kiro-auth 0.1.8, which sends a tool named past 64 characters under a short name (#1393) Kiro answers a tool name longer than 64 characters "Invalid tool use format." (REQUEST_BODY_INVALID). Claude Code names a plugin's MCP tools mcp__plugin____ (the reporter's Cloudflare docs tools are 70 and 71), so every turn of a moved Kiro account that offered one failed: the plugin passed the name through. The built-in has cut such names since e3b6397a (#369, TestBuildKiroToolImagesAndLongNames), so users who haven't moved were not affected and the built-in is unchanged. magpie-community/plugins e1efc3d (kiro 0.1.8) gives the plugin the built-in's rule: a name outside [a-zA-Z0-9_-]{1,64} is sent as its head plus a hash of the whole name, the same in every turn, and Kiro's calls come back under the caller's name, streamed and not. Raising min makes keepMovedCurrent update every moved user's plugin. Run: HOME= go test -tags nogui ./internal/provider (ok) and -run Kiro ./internal/gateway (ok); go vet (darwin, linux, windows) and gofmt -l on ./internal/provider. Plugin side: tool-names.test.mjs fails 3 of 3 without its change and passes; bun test across the repo 1003 pass. npm view shows 0.1.8. Not tried against Kiro itself: no Kiro sign-in on this machine. --- internal/provider/migrate_kiro.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/migrate_kiro.go b/internal/provider/migrate_kiro.go index 5a72d7dad..0f17df5ea 100644 --- a/internal/provider/migrate_kiro.go +++ b/internal/provider/migrate_kiro.go @@ -21,7 +21,7 @@ import ( func init() { movers["kiro"] = &mover{ pkg: "@magpie-community/opencode-kiro-auth", - min: "0.1.7", // a Builder ID sign-in asked with Builder ID's service profile, as the built-in (plugins#16) + min: "0.1.8", // a tool named past 64 characters sent under a short name, as the built-in (#1393) agents: []string{"kiro"}, out: func() ([]Moving, error) { var out []Moving