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
{{ message }}
Repository navigation
Pass x-opencode-session for memory, roll-call, and expand-prompt calls - #14015
The previous fix for opencode's backend only resolved the main inference endpoints (that we share with opencode). Kilo has other entrypoints that use inference, and all of these need the x-opencode-session headers as well
The new opencodeSessionHeaders helper correctly mirrors the providerID.startsWith("opencode") gate and User-Agent used by LLMRequestPrep.prepare, and it is wired into all three direct AI SDK call sites (memory consolidation, roll-call, prompt enhancement). All touched files are Kilo-owned paths, so no upstream merge markers are needed. The required sessionID addition to MemoryPorts.ModelPort.run is applied consistently across the host adapter and kilo-memory callers, and the new tests exercise the real header plumbing rather than mocking it. No resource leaks introduced in the changed code.
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.
Issue
The previous fix for opencode's backend only resolved the main inference endpoints (that we share with opencode). Kilo has other entrypoints that use inference, and all of these need the x-opencode-session headers as well
Fixes #13723
Implementation
How to Test
kilo roll-call anthropic, using the vscode plugin with this fix, and using memoryManual/local verification
TBD
Checklist