Repository navigation
feat(think): configurable messenger concurrency strategy (#2313) - #2354
Merged
threepointone merged 2 commits intoSep 24, 2026
Merged
threepointone merged 2 commits into
threepointone merged 2 commits into
Conversation
threepointone
added this pull request to stack #2357
September 24, 2026 01:08
🦋 Changeset detectedLatest commit: 5a9f62a The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
🟡 agents import sizesMeasured 344 runtime imports as minified bundles. The primary size is gzip; raw minified size is included for diagnosis. An existing import growing by more than 10% is marked red. This report is informational.
Compared Changed imports (2)
All 344 current runtime imports
Reported by agent-think[bot]. |
threepointone
marked this pull request as ready for review
September 24, 2026 01:12
agents
@cloudflare/ai-chat
@cloudflare/codemode
hono-agents
@cloudflare/shell
@cloudflare/think
@cloudflare/voice
@cloudflare/worker-bundler
commit: |
threepointone
force-pushed
the
feat/think-messenger-concurrency
branch
from
September 24, 2026 01:35
d428b0e to
995b367
Compare
threepointone
force-pushed
the
feat/think-messenger-concurrency
branch
2 times, most recently
from
September 24, 2026 02:03
9d5ec6e to
dda1edc
Compare
…Concurrency Co-authored-by: Cursor <cursoragent@cursor.com>
threepointone
force-pushed
the
feat/think-messenger-concurrency
branch
from
September 24, 2026 07:03
dda1edc to
5a9f62a
Compare
Merged
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.
New
messengerConcurrencyproperty picks the Chat SDK concurrency strategy for messenger replies. It accepts anyConcurrencyStrategy("queue","burst","debounce","drop"or"concurrent") or aConcurrencyConfig. The default, exported asDEFAULT_MESSENGER_CONCURRENCY, is the existing{ strategy: "burst", debounceMs: 600 }, so behavior does not change.One
Chatinstance serves every messenger on an agent, so the setting is per agent. It must be a class field, because the runtime reads it beforeonStart.Test: under
"queue", the first message of a burst is answered on its own right away, and every line is still answered. Under the defaultburststrategy, the first prompt would be all three lines joined. The test fails when the runtime ignores the setting.Closes #2313
Closes #1946
Docs: a new "Change the Concurrency Strategy" section in
docs/think/messengers.md.