Skip to content

fix: require spill reader in current model tools - #336

Merged
lodyai[bot] merged 1 commit into
mainfrom
fix/spill-requires-reader
Oct 1, 2026
Merged

lodyai[bot] merged 1 commit into
mainfrom
fix/spill-requires-reader

Conversation

@frostming

Copy link
Copy Markdown
Collaborator

Oversized tool results could be replaced with spill handles even when the model could not call spill.read to retrieve them. Keep the full result unless spill.read is included in the current model tool set.

The model runner records the tools available for each execution, and the spill hook checks for the model-facing spill_read name before spilling successful or failed results. This follows per-call tool filtering and refreshes the condition when tools change within a session. English and Chinese settings docs describe the condition.

Validation:

  • 94 related tests passed, including enabling/removing the reader within one session, successful and failed oversized results, and missing tool availability.
  • Ruff lint/format, mypy, and git diff --check passed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bub 6c85f89 Commit Preview URL

Branch Preview URL
Oct 01 2026, 07:55 AM

@lodyai
lodyai Bot merged commit 6aefbed into main Oct 1, 2026
6 checks passed
@frostming
frostming deleted the fix/spill-requires-reader branch October 1, 2026 08:05
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