Skip to content

Chat: connectChat sends a connecting tab the transcript (4.iii 6f, parity 6, draft) - #3315

Closed
mattzcarey wants to merge 1 commit into
slim/chat-fn-6f6from
slim/chat-fn-6f7
Closed

mattzcarey wants to merge 1 commit into
slim/chat-fn-6f6from
slim/chat-fn-6f7

Conversation

@mattzcarey

Copy link
Copy Markdown
Member

DRAFT, 4.iii 6f parity step 6, stacked on #3314. connectChat(deps, connection, { hydrationByteBudget }) sends a connecting tab the transcript as cf_agent_chat_messages: the newest messages that fit the budget when one is set, through frameText so an oversized list is logged and not sent (#3218). This is the connect list the hosts send today. Test: a connecting tab gets one messages frame with the stored question.

Not here: the messages waiting requests hold (AIChatAgent's queued view). Each question is stored when it arrives (#3308), so it is already in the transcript.

Cost: one transcript read per connect, as today.

@changeset-bot

changeset-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 5d685c0

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 5d685c0

@agent-think

agent-think Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (366f3150 → 5d685c0b, workflow run)

@mattzcarey

Copy link
Copy Markdown
Member Author

Closed per rv-2's pre-review: the connect frames (nothing on a plain connect, the queued view, the resume notice, the pre-stream park, the recovering frame) move with their only caller, the 6f switch PR. There the queued view comes from the waiting runs' inputs.

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