Skip to content

fix(tools): persist idle promotion prune after fold - #1241

Merged
TheGreatAxios merged 1 commit into
mainfrom
fix/tools-persist-fold-prune
Sep 29, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
fix/tools-persist-fold-prune

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Fold prune persists the empty activated-tool set to run.json the same way execute-promote persist does (TUI persistRunSnapshot / syncRunStateHandle, exec persist), so a crash or resume cannot re-flush pruned MCP schemas.
  • docs/MCP.md describes promote-on-execute only; tool_search does not join the next infer or run.json.

Verification

  • bun run check passes (lint, typecheck, dead-exports, build, 7846 tests)

Fold already drops execute-promoted schemas off the wire. Persist that
empty set to run.json and the crash handle so resume cannot restore them.
@TheGreatAxios
TheGreatAxios merged commit df9745d into main Sep 29, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the fix/tools-persist-fold-prune branch September 29, 2026 23:58
@linear-code

linear-code Bot commented Oct 3, 2026

Copy link
Copy Markdown

CL-9488

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.

1 participant