provider: Kiro's mover needs opencode-kiro-auth 0.1.32, which waits out a 429 throttle as the Kiro IDE does

onemezao on Discord: a "hi" answered, and the next message straight
after was Kiro's 429 USER_REQUEST_RATE_EXCEEDED, while the Kiro IDE on
the same account took two in a row (plugins#842, plugins#848). The IDE
gets the same throttles but tries again, 3 tries after 1s and 2s or
Kiro's retryAfterMilliseconds; the plugin sent the first 429 straight
back with Retry-After 30s. 0.1.32 (plugins 966cf717) retries the way
the IDE does. Raising min makes keepMovedCurrent update every moved
user's plugin.

Run: npm view --prefer-online --registry https://registry.npmjs.org
@magpie-community/opencode-kiro-auth version = 0.1.32 at landing;
mote-run go test -run 'Kiro|Mover|Moved' ./internal/provider/ ok;
gofmt -l clean. The plugin's own record is in its commit (package 157
pass, plugins root 6867 pass 0 fail).

Broken by hand: in the plugin (5 tests red with the retry off); nothing
here beyond the version string.

Not tried: a real throttled Kiro account; none was at hand.

Reported-by: onemezao (Discord)
This commit is contained in:
yetone
2026-11-08 04:59:59 +08:00
parent 2b08ccc838
commit 778b8e0753
File diff suppressed because one or more lines are too long