Repository navigation
Chat: saveMessages and continueLastTurn as submitTurn (4.iii 6f, parity 5, draft) - #3314
mattzcarey wants to merge 2 commits into
Conversation
|
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
🔴 agents import sizes: 1 entry point over threshold
Changed exports (24)
How this worksEach runtime export is bundled on its own, minified, and gzipped. Changes smaller than 100 B, or smaller than 1% and 1 KiB, are ignored. Growth over 10% or 5 KiB is marked 🔴. This report is informational and does not fail CI. The workflow artifact contains every measurement. Compared |
e56ddbb to
bbb269d
Compare
840d8ff to
ca8b411
Compare
bbb269d to
6d7d937
Compare
ca8b411 to
76d22cb
Compare
6d7d937 to
6a9ccf5
Compare
76d22cb to
e6f8752
Compare
6a9ccf5 to
46166ad
Compare
e6f8752 to
8c79e89
Compare
46166ad to
592b42a
Compare
8c79e89 to
e3d8dac
Compare
592b42a to
c31f84c
Compare
e3d8dac to
366f315
Compare
c31f84c to
18be740
Compare
5bd41f6 to
e212f64
Compare
18be740 to
5b01e41
Compare
e212f64 to
319afd4
Compare
5b01e41 to
d2abd23
Compare
319afd4 to
ddaec19
Compare
d2abd23 to
5675fec
Compare
ddaec19 to
69d042a
Compare
5675fec to
b7390f3
Compare
69d042a to
7b28781
Compare
b7390f3 to
b7d894b
Compare
7b28781 to
dd8385e
Compare
b7d894b to
3e5e9b4
Compare
dd8385e to
5729f9b
Compare
5729f9b to
8c510a2
Compare
3e5e9b4 to
83ec275
Compare
8c510a2 to
669233f
Compare
83ec275 to
5176364
Compare
669233f to
b88b3b5
Compare
5176364 to
2497f3d
Compare
b88b3b5 to
0cf01c7
Compare
2497f3d to
fa10810
Compare
0cf01c7 to
e0ceb65
Compare
…ssages as submitTurn
…t, an empty reply answered again, stored or pinned body, a signal) (rv-6)
fa10810 to
861fa46
Compare
e0ceb65 to
0fed73f
Compare
DRAFT, 4.iii 6f parity step 5, stacked on #3312. AIChatAgent's and Think's
saveMessagesandcontinueLastTurnmap ontosubmitTurn.saveMessages(messages)issubmitTurn({ trigger: "server", messages }): the turn stores them when it starts, then answers. The function form andshouldApplyMessages/isCurrentare resolved by the host against the current transcript before it callssubmitTurn; they move in the 6f switch PR, wherethis.messagesis.continueLastTurn(body, options)issubmitTurn({ trigger: "server", mode: "continue", body }, { storeContext: body !== undefined, signal }). The definition extends the last assistant message, as a tool answer's turn does, with main's rules, decided before anything is stored:skipped, reasonnothing-to-continue, and nothing runs;skipped, reasonawaiting-client(continuationWaitsOnClient);storeContext); one framework code pins is that turn's only; what a turn doesn't bring comes from the stored context;signalstops the turn, waiting or running.Tests, each failing before (the first two are the happy path):
Cost: none on the hot path. A
continueLastTurnreads the transcript once, as before.