Repository navigation
Chat: hydrationByteBudget bounds what a model call reads (4.iii 6f, parity 4, draft) - #3312
Closed
mattzcarey wants to merge 2 commits into
Closed
mattzcarey wants to merge 2 commits into
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: |
Contributor
|
✅ agents import sizes: no significant changes ( |
mattzcarey
force-pushed
the
slim/chat-fn-6f4
branch
from
November 26, 2026 23:34
5a9595e to
651c845
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 26, 2026 23:34
e56ddbb to
bbb269d
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f4
branch
from
November 26, 2026 23:46
651c845 to
0951e2c
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 26, 2026 23:46
bbb269d to
6d7d937
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f4
branch
from
November 26, 2026 23:52
0951e2c to
4adaf93
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 26, 2026 23:52
6d7d937 to
6a9ccf5
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f4
branch
from
November 27, 2026 00:02
4adaf93 to
d08d60f
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
2 times, most recently
from
November 27, 2026 00:13
46166ad to
592b42a
Compare
mattzcarey
changed the base branch from
slim/chat-fn-6f4
to
slim/chat-fn-6f1
November 27, 2026 00:13
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 00:23
592b42a to
c31f84c
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 00:43
4c2daf9 to
720b90e
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 00:43
c31f84c to
18be740
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 00:48
720b90e to
9e874b0
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 00:48
18be740 to
5b01e41
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 01:00
9e874b0 to
8a7ace3
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 01:00
5b01e41 to
d2abd23
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 01:07
8a7ace3 to
bd30552
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 01:07
d2abd23 to
5675fec
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 01:20
bd30552 to
38dab6e
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 01:20
5675fec to
b7390f3
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 01:29
38dab6e to
7b1fd32
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 01:29
b7390f3 to
b7d894b
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 01:39
7b1fd32 to
ecc5043
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 01:39
b7d894b to
3e5e9b4
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 02:01
ecc5043 to
433b706
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 02:04
433b706 to
0a8bb74
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 02:04
3e5e9b4 to
83ec275
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 02:07
0a8bb74 to
102698b
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 02:07
83ec275 to
5176364
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 02:13
102698b to
ab0d47c
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 02:13
5176364 to
2497f3d
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 02:27
ab0d47c to
9636fcf
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 02:27
2497f3d to
fa10810
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f1
branch
from
November 27, 2026 04:11
9636fcf to
77bec88
Compare
mattzcarey
force-pushed
the
slim/chat-fn-6f5
branch
from
November 27, 2026 04:11
fa10810 to
861fa46
Compare
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DRAFT, 4.iii 6f parity step 4, stacked on #3311.
ChatHost.options.hydrationByteBudget(RFCChatOptions) bounds the transcript a model call reads: the definition readssession.getRecentHistory(budget), the newest messages that fit, always at least the latest, instead of the whole path. That is what AIChatAgent and Think's budget does today. Test: with three 2 KB messages and a 3,000-byte budget, the call gets the newest and not the oldest.maxPersistedMessages(AIChatAgent's cap on stored messages) is the next parity step.Cost: a budgeted read reads fewer rows than the whole path.