Skip to content

Pretty-spill oversized tool results into session files (CL-7055) - #675

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-7055-materialize-large-tool-results-as-session-artifacts-pretty
Aug 25, 2026
Merged

Pretty-spill oversized tool results into session files (CL-7055)#675
TheGreatAxios merged 2 commits into
mainfrom
cl-7055-materialize-large-tool-results-as-session-artifacts-pretty

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Over the truncation gate, leisure-materialize tool results (minified JSON → pretty application/json; NDJSON preserved; else text/plain) before spilling to the session blob store.
  • Truncation notices include both a tool-output:/// URI and an absolute contextDir/tool-output/… path when the session context dir is plumbed.
  • MCP tools share the same scrub-then-truncate path; under-gate results stay unchanged.

Closes CL-7055

Test plan

  • src/plugins/tool-result-materialize.test.ts and updated truncation / MCP plugin tests
  • Pre-commit typecheck + build passed on commit

@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

CL-7055

Over the truncation gate, leisure-materialize content
before spilling to the session blob store so the model
gets a tool-output URI and an absolute on-disk path to
the pretty (or preserved NDJSON) full result.
@TheGreatAxios
TheGreatAxios force-pushed the cl-7055-materialize-large-tool-results-as-session-artifacts-pretty branch from b265641 to c923c11 Compare August 25, 2026 17:47
@TheGreatAxios
TheGreatAxios merged commit bc9e02c into main Aug 25, 2026
5 checks passed
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
* Pretty-spill oversized tool results into session files

Over the truncation gate, leisure-materialize content
before spilling to the session blob store so the model
gets a tool-output URI and an absolute on-disk path to
the pretty (or preserved NDJSON) full result.

* Harden spilled tool result materialization
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
* Pretty-spill oversized tool results into session files

Over the truncation gate, leisure-materialize content
before spilling to the session blob store so the model
gets a tool-output URI and an absolute on-disk path to
the pretty (or preserved NDJSON) full result.

* Harden spilled tool result materialization
@TheGreatAxios
TheGreatAxios deleted the cl-7055-materialize-large-tool-results-as-session-artifacts-pretty branch August 28, 2026 00:09
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