Repository navigation
fix(profile): stop sending maxResults to ListAvailableProfiles - #164
Closed
18005798765 wants to merge 1 commit into
Closed
18005798765 wants to merge 1 commit into
18005798765 wants to merge 1 commit into
Conversation
Upstream now rejects the maxResults field on ListAvailableProfiles with HTTP 400 REQUEST_BODY_INVALID. That 400 is not the Builder ID 403 the resolver treats as a soft error, so ensureRestProfileArn fails with "no available Kiro profile" and GetUsageLimits never runs. Builder ID accounts end up with no usage data even though getUsageLimits works fine without a profile ARN. Send an empty body on the first page and only nextToken when paginating. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Mo-cn
added a commit
to Mo-cn/Kiro-Go
that referenced
this pull request
Oct 5, 2026
…x#151, Quorinex#153, Quorinex#164, Quorinex#150) - stream: treat meteringEvent as the terminal signal on a clean EOF so IdC/Builder ID accounts that never emit metadataEvent stop failing every completed turn as "upstream truncated response without stop reason". Reasoning-only streams stay truncated and an explicit stopReason (e.g. MAX_TOKENS) is never overwritten. - responses: parse Codex additional_tools input items, flatten namespace groups, support custom tools, and emit custom_tool_call / namespace fields (upstream PR Quorinex#152, fixes Quorinex#151). - profiles: stop sending maxResults to ListAvailableProfiles, which upstream now rejects with HTTP 400 REQUEST_BODY_INVALID (upstream PR Quorinex#164; also the root cause of Quorinex#149 usage-quota failures). - refresh: skip Builder ID accounts that cannot resolve a profile ARN in the background refresh loops (upstream PR Quorinex#153). - security: generate a random admin password on first run (honouring ADMIN_PASSWORD) and warn while the legacy default is still in place (Quorinex#150).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ListAvailableProfilesnow rejects themaxResultsfield. Every call fromlistKiroProfilesInRegionContextreturns:The same request with an empty JSON body
{}is accepted:200 {"nextToken":null,"profiles":[]}403 AWS Builder ID is not supported for this operation.This is the errorisBuilderIDProfileUnsupportedErroralready expects.Because the 400 is neither the Builder ID 403 nor transient,
ResolveProfileArnfalls through tono available Kiro profile.ensureRestProfileArnthen treats that as a hard error, soGetUsageLimitsnever runs. For Builder ID accounts this means usage and subscription info are never populated.getUsageLimitswithout a profileArn returns 200 with valid usage for those accounts.Change
{}on the first page and onlynextTokenwhen paginating. The unusedpageSizeconstant is removed.maxResults.Testing
go test ./proxy/passes.resolve profileArn: no available Kiro profilenow refreshes and shows usage, limit, subscription title, and reset date. A social account still refreshes normally.🤖 Generated with Claude Code