Skip to content

fix: send versioned KiroIDE client id (UnsupportedClientVersionException) - #139

Open
mffassone wants to merge 1 commit into
tickernelz:masterfrom
mffassone:fix/versioned-kiro-client-id
Open

mffassone wants to merge 1 commit into
tickernelz:masterfrom
mffassone:fix/versioned-kiro-client-id

Conversation

@mffassone

Copy link
Copy Markdown

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 every generateAssistantResponse call failed with 400 UnsupportedClientVersionException.

  • src/constants.ts: add KIRO_IDE_VERSION (default 1.4.178, overridable via the KIRO_IDE_VERSION env var). KIRO_CONSTANTS.USER_AGENT is now KiroIDE-<version>. Add getKiroClientId(), which returns KiroIDE-<version>-<sha256(hostname)>, the same shape the IDE sends.
  • src/plugin/request.ts: use the versioned client id in user-agent and x-amz-user-agent.
  • src/plugin/token.ts: use KIRO_CONSTANTS.USER_AGENT instead of the hard-coded KiroIDE / KiroIDE-0.1.0.
  • README: troubleshooting entry for the error and the env override.

Testing

  • npm run typecheck, bun test (175 pass, including 2 new tests in constants.test.ts) and npm run build all pass.
  • Manual: with the built plugin on opencode 1.18.4 (macOS, IAM Identity Center), claude-sonnet-4-5 and claude-haiku-4-5 went from 400 UnsupportedClientVersionException to 200 with a normal reply.

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

400 UnsupportedClientVersionException since Kiro's Nov 9 2026 client EOL

1 participant