Skip to content

Chat: server turns run with the last client request's tools and body (4.iii 6f, parity 3, draft) - #3311

Closed
mattzcarey wants to merge 1 commit into
slim/chat-fn-6f3from
slim/chat-fn-6f4
Closed

mattzcarey wants to merge 1 commit into
slim/chat-fn-6f3from
slim/chat-fn-6f4

Conversation

@mattzcarey

Copy link
Copy Markdown
Member

DRAFT, 4.iii 6f parity step 3, stacked on #3310. A client's request (submit or regenerate) stores its client tools and body as the session value transcript:chat:request, the key #3225 already uses, capped by storableRequestContext. A turn no client sent (server, tool-answer) that brings neither runs with them. Test: after a client request with tools and a body, a server turn's call carries both.

Cost: one Sessions value write per client request (as AIChatAgent and Think write today) and one read per server turn.

@changeset-bot

changeset-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d08d60f

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

@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@3311

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: d08d60f

@agent-think

agent-think Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (cd1fd407 → d08d60fe, workflow run)

@mattzcarey

Copy link
Copy Markdown
Member Author

Folded into #3298 (it fixes a regression rv-1 and Devin found there). The branch stays for reference.

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