Repository navigation
Conversation
…sionException Kiro stopped serving IDE versions earlier than 0.11.133 on 2026-11-09 (kirodotdev/Kiro#11335). The plugin sent an unversioned 'KiroIDE' id, so every generateAssistantResponse call failed with 400 UnsupportedClientVersionException. Send KiroIDE-<version>-<machineId> like the IDE does, keep the version in one constant, and allow overriding it with KIRO_IDE_VERSION. Fixes tickernelz#138
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.
Fixes #138.
Summary
Since 2026-11-09 Kiro rejects IDE versions earlier than 0.11.133 (kirodotdev/Kiro#11335). The plugin identified itself with an unversioned
KiroIDE, so everygenerateAssistantResponsecall failed with400 UnsupportedClientVersionException.src/constants.ts: addKIRO_IDE_VERSION(default1.4.178, overridable via theKIRO_IDE_VERSIONenv var).KIRO_CONSTANTS.USER_AGENTis nowKiroIDE-<version>. AddgetKiroClientId(), which returnsKiroIDE-<version>-<sha256(hostname)>, the same shape the IDE sends.src/plugin/request.ts: use the versioned client id inuser-agentandx-amz-user-agent.src/plugin/token.ts: useKIRO_CONSTANTS.USER_AGENTinstead of the hard-codedKiroIDE/KiroIDE-0.1.0.Testing
npm run typecheck,bun test(175 pass, including 2 new tests inconstants.test.ts) andnpm run buildall pass.claude-sonnet-4-5andclaude-haiku-4-5went from400 UnsupportedClientVersionExceptionto200with a normal reply.