From e4ca47b0f246f76ecf16fef7eb9845026594c9ac Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 27 Oct 2026 17:53:02 +0800 Subject: [PATCH] provider: Kiro's mover needs 0.1.18, so an image over Kiro's 5 MiB Base64 limit doesn't stick the conversation (plugins#428) kiro 0.1.18 (plugins ceda580): Kiro counts its 5,242,880-byte image limit on the Base64 string, so imwaco's 4,171,428-byte view_image PNG (5,561,904 as Base64) failed with IMAGE_SIZE_EXCEEDED on that turn and every later one. The plugin now shrinks such an image on the request it sends (Bun.Image: long edge to 2000 px, then WebP/JPEG smaller each try), leaves smaller images byte for byte, and puts a one-line note in place of one it can't bring under, so the turn still goes. npm view --prefer-online --registry=https://registry.npmjs.org/: @magpie-community/opencode-kiro-auth 0.1.18 (latest). Run: go test ./internal/provider -run 'Kiro|Mover|Moved|Min|Retir|HandOver|Adopt|KeepMoved' ok; go vet ./internal/provider (darwin, linux, windows) ok; gofmt -l clean. The whole ./internal/provider package crashes in TestUnreadLoginsWriteErrorsKeepCredentials ("close of synctest channel from outside bubble", #3632, open, on main), and an earlier run hit "no space left on device" (the disk had 290 MB). Plugin side: HOME=$(mktemp -d) bun test packages/kiro 67 pass, also under OpenCode 2.0.25's Bun 1.4.2. Broken by hand (plugin): without the fitting 7 of its 10 new tests fail. Not tried: a real Kiro account; a real move in a sandbox HOME (only the min string changed). --- 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 1e38ee8ee..c497dbb12 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.17", // 0.1.17: the Free trial and Credits windows carry their credits used and the limit, so the card's Left shows the credits left (plugins#408); a reply with no token counts says its cache is unknown (magpie_cache_unknown), not 0: Kiro caches but counts no tokens (zeewell on X); 0.1.15: an API key is used as kiro-cli uses it: GetProfile in us-east-1 then eu-central-1, and with no profile found the key goes on in us-east-1; its models are the control plane's ListAvailableModels and no profile is named in its calls (Hollowhere: Auto alone, every request "Kiro didn't take the API key: 400"); 0.1.14: each account is named by its email and the way it was signed in to, "email (Google)", "email (GitHub)", not "email (slot)" (plugins#309); 0.1.13: two sign-ins of one email through different login providers (Google, GitHub, Builder ID) stay two accounts (plugins#309); 0.1.12: a request for JSON output (output_config.format) answers in JSON, its schema in the system prompt as the built-in; 0.1.11: a thinking model offers xhigh as its own level (50k), so Claude Code's xhigh isn't routed as max (plugins#120); 0.1.10: the caller's prompt-cache marks reach Kiro as cachePoints (plugins#110) + min: "0.1.18", // 0.1.18: an image over Kiro's 5 MiB Base64 limit (a 4.2 MB view_image PNG is 5.6 MB as Base64) is shrunk on the request, or replaced by a note, so the conversation isn't stuck on IMAGE_SIZE_EXCEEDED (plugins#428); 0.1.17: the Free trial and Credits windows carry their credits used and the limit, so the card's Left shows the credits left (plugins#408); a reply with no token counts says its cache is unknown (magpie_cache_unknown), not 0: Kiro caches but counts no tokens (zeewell on X); 0.1.15: an API key is used as kiro-cli uses it: GetProfile in us-east-1 then eu-central-1, and with no profile found the key goes on in us-east-1; its models are the control plane's ListAvailableModels and no profile is named in its calls (Hollowhere: Auto alone, every request "Kiro didn't take the API key: 400"); 0.1.14: each account is named by its email and the way it was signed in to, "email (Google)", "email (GitHub)", not "email (slot)" (plugins#309); 0.1.13: two sign-ins of one email through different login providers (Google, GitHub, Builder ID) stay two accounts (plugins#309); 0.1.12: a request for JSON output (output_config.format) answers in JSON, its schema in the system prompt as the built-in; 0.1.11: a thinking model offers xhigh as its own level (50k), so Claude Code's xhigh isn't routed as max (plugins#120); 0.1.10: the caller's prompt-cache marks reach Kiro as cachePoints (plugins#110) agents: []string{"kiro"}, out: func() ([]Moving, error) { var out []Moving