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 Builder ID account and model (claude-haiku-5.5) took two messages in a row (plugins#842, plugins#848). The IDE gets the same throttles; it rides them out. Its chat client (kiro.kiro-agent 1.1.787, dist/extension.js) classifies a ThrottlingException with reason USER_REQUEST_RATE_EXCEEDED or CREDIT_CONSUMPTION_RATE_EXCEEDED (ClientThrottleError) or any other throttle (ServiceThrottleError) as retryErrorType THROTTLING, and its QClientRetryStrategy tries 3 times: Kiro's retryAfterMilliseconds when said, else 1s doubling (20% jitter, 20s max), counting each try in amz-sdk-request and x-amzn-kiro-attempt. It shows "Retrying in N seconds" over 2s. The plugin sent the first 429 back at once, and since 0.1.30 with Retry-After 30s, so magpie didn't retry either. Now paced() sends a chat call the same way: a 429 throttle (those three reasons, or a reasonless "too many requests"/throttling) is waited out and sent again, up to 3 tries, one invocation id, attempt=N; max=3. A wait Kiro says is over 20s isn't held: the 429 goes back with it as before. Usage limits (MONTHLY/DAILY/..., USAGE_LIMIT), model capacity and other statuses aren't retried. A cancelled request ends during the pause and isn't sent again. The last try's 429 keeps 0.1.30's words and Retry-After. The 47.3K input tokens of a "hi" are Kiro's own contextUsagePercentage times the model's window: the agent's system prompt and tools, not something the plugin adds. Run (mote, HOME and TMPDIR inside the run dir): - packages/kiro: bun test, 157 pass 0 fail. - repo root: bun test; bun scripts/check.mjs kiro. Root: 6867 pass, 0 fail, 6887 tests across 499 files; check ok. Broken by hand: paced() returning the first answer (n >= 1) turns 5 tests red (the four new throttle tests in errors.test.mjs and region.test.mjs's rate-limit case). Not tried: a real throttled Kiro account. No Builder ID account that Kiro throttles was at hand, so the retry is checked against the IDE's code and mocked answers only, not against Kiro. Reported-by: onemezao (Discord)
13 lines
536 B
JSON
13 lines
536 B
JSON
{
|
|
"name": "@magpie-community/opencode-kiro-auth",
|
|
"version": "0.1.32",
|
|
"description": "Kiro subscriptions (Free, Pro, Pro+, Power) in OpenCode and magpie",
|
|
"type": "module",
|
|
"main": "./opencode.mjs",
|
|
"exports": { ".": "./opencode2.mjs" },
|
|
"files": ["index.mjs", "opencode.mjs", "opencode2.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "kiro"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/kiro" }
|
|
}
|