Skip to content

Context.prepare drops the tools option nothing but tests used - #3274

Merged
mattzcarey merged 2 commits into
mainfrom
slim/ext-delete
Nov 26, 2026
Merged

mattzcarey merged 2 commits into
mainfrom
slim/ext-delete

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Context.prepare no longer takes tools. Since #3250 ThinkHarness records a request's tools with prepareTurn and then recordSent, after beforeTurn. The tools option on prepare was left behind, and only the context tests called it. They now go through a small prepareWithTools helper over the same two calls, with their assertions unchanged. This also deletes ExtensionHookName, an @internal type in the extension core that nothing uses.

Both are internal (@internal), so there's no changeset. No behaviour changes.

Validation: context suite 106 and harness-think suite 131 passing; pnpm run build and pnpm run check green.


Devin Review

@changeset-bot

changeset-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7303189

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread packages/agents/src/context/context.ts Resolved
@pkg-pr-new

pkg-pr-new Bot commented Nov 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@3274

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@3274

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@3274

hono-agents

npm i https://pkg.pr.new/hono-agents@3274

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@3274

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@3274

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@3274

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@3274

commit: 7303189

@agent-think

agent-think Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (4e03a353 → 7303189c, workflow run)

@mattzcarey
mattzcarey merged commit deb932f into main Nov 26, 2026
37 of 39 checks passed
@mattzcarey
mattzcarey deleted the slim/ext-delete branch November 26, 2026 15:16
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