Repository navigation
Preserve proxy compression and session-specific native retrieval exports - #2801
Merged
ranxianglei merged 1 commit intoOct 12, 2026
Conversation
Contributor
📦 Merged Build PublishedThis merge to master was published as npm install -g billion-context@0.0.336-master.3bfd347 # this exact build
npm install -g billion-context@master # always the newest merged build
|
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.
Native retrieval through a host tool bridge currently marks a proxy session as MCP-owned. Subsequent model requests then lose proxy compression tools. Also, two sessions retrieving the same message ref export to the same filename, so a bridge reading that file afterward can return another session's original.
Keep retrieval-only calls from claiming compression ownership and return the original export text in the native tool response while holding the session lock. Existing plugin bindings, tool arguments and result text remain unchanged.
Fixes #2780.
Real native OpenCode end-to-end validation: 4/4 passed, including the existing native registration/status/compression flow. The retrieval-specific ownership and atomic export behavior is covered by the 14 focused tests. The external Windows runner allows persistence to flush before termination; tracked assertions are unchanged.
Validation: 14 focused CCR/plugin tests pass, including continued proxy compression after native retrieval and concurrent retrieval of distinct originals with identical refs. Typecheck, build and distribution import checks pass. The fixture uses the existing session header so this PR is independent of #2796. Full patched Windows suite: 6,286 passed, 24 skipped, five failures matching the pristine baseline (four SQLite fixture cleanup errors and name clearing); the baseline timing failure did not recur. No kernel, configuration schema or version changes.