Skip to content

fix(precompact): use platform ctx_search name in resume snapshot - #1043

Open
LHMQ878 wants to merge 1 commit into
mksglu:mainfrom
LHMQ878:fix/1028-precompact-search-tool
Open

fix(precompact): use platform ctx_search name in resume snapshot#1043
LHMQ878 wants to merge 1 commit into
mksglu:mainfrom
LHMQ878:fix/1028-precompact-search-tool

Conversation

@LHMQ878

@LHMQ878 LHMQ878 commented Aug 8, 2026

Copy link
Copy Markdown

Summary

  • Wire searchTool from createToolNamer into all PreCompact / PreCompress hooks
  • OpenCode adapter passes toolNamer ctx_search when building compaction resume snapshot
  • Ensures post-compact retrieval hints match the platform MCP tool name

Fixes #1028

Test plan

  • npx vitest run tests/hooks/precompact-search-tool.test.ts
  • npx vitest run tests/opencode-plugin.test.ts

PreCompact hooks and the OpenCode adapter now pass searchTool from
createToolNamer so resume snapshots match the platform MCP tool name.

Fixes mksglu#1028
@LHMQ878
LHMQ878 force-pushed the fix/1028-precompact-search-tool branch from e0ff0f7 to 9b9ecdf Compare August 8, 2026 09:18
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.

PreCompact resume snapshot uses bare ctx_search, not the platform tool name

1 participant