Skip to content

Preserve proxy compression and session-specific native retrieval exports - #2801

Merged
ranxianglei merged 1 commit into
ranxianglei:masterfrom
mariopasquali:2026-10-11_native-retrieval-exports
Oct 12, 2026
Merged

ranxianglei merged 1 commit into
ranxianglei:masterfrom
mariopasquali:2026-10-11_native-retrieval-exports

Conversation

@mariopasquali

@mariopasquali mariopasquali commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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.

@mariopasquali
mariopasquali marked this pull request as ready for review October 12, 2026 08:32
@ranxianglei
ranxianglei merged commit 3bfd347 into ranxianglei:master Oct 12, 2026
15 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

📦 Merged Build Published

This merge to master was published as 0.0.336-master.3bfd347 (rolling master tag).

npm install -g billion-context@0.0.336-master.3bfd347  # this exact build
npm install -g billion-context@master  # always the newest merged build

npm view billion-context@master prints the current version at any time.

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.

Retrieval-only native tool calls claim full plugin ownership and need session-bound original export snapshots

2 participants