You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cherry-pick OpenCode #30800 to upgrade the CLI and core OpenRouter provider to 2.9.0
align Kilo Gateway's direct provider dependency with the same upstream fix
Context
The disabled question dock was caused upstream of VS Code: @openrouter/ai-sdk-provider@2.8.1 could emit the same tool call twice when complete JSON arguments were followed by a trailing whitespace delta. That created two question request IDs for one persisted tool invocation.
Provider 2.9.0 includes OpenRouter #489, which guards against re-emitting a tool call after it has already been sent. This PR intentionally cherry-picks the corresponding OpenCode dependency bump (e45e0e1125) and adds the Kilo-specific gateway pin. The earlier optimistic VS Code workaround is removed from the final diff.
The only change since the previous review (3f9c025) is commit a58ec826 which removes the provider regression test that was added to verify @openrouter/ai-sdk-provider@2.9.0 guards against re-emitting tool calls.
The removal is clean — the test was exercising behavior owned by the upstream @openrouter/ai-sdk-provider package (not Kilo code), and removing it reduces the gateway test surface to only Kilo-owned logic (buildRequestHeaders). The root fix (the provider version bump to 2.9.0) and the VS Code-side workaround removal remain in place from the previous commits.
No new bugs, security issues, or style violations are introduced.
Files Reviewed (1 file, incremental)
packages/kilo-gateway/test/provider.test.ts — regression test removed, header test intact
Reviewed by claude-4.6-sonnet-20260217 · 177,370 tokens
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
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
2.9.0Context
The disabled question dock was caused upstream of VS Code:
@openrouter/ai-sdk-provider@2.8.1could emit the same tool call twice when complete JSON arguments were followed by a trailing whitespace delta. That created two question request IDs for one persisted tool invocation.Provider
2.9.0includes OpenRouter #489, which guards against re-emitting a tool call after it has already been sent. This PR intentionally cherry-picks the corresponding OpenCode dependency bump (e45e0e1125) and adds the Kilo-specific gateway pin. The earlier optimistic VS Code workaround is removed from the final diff.