Repository navigation
refactor(agui): delimit the outbound message id and its suffix - #4554
Merged
jujn merged 1 commit intoDec 2, 2026
Merged
Conversation
jujn
approved these changes
Dec 2, 2026
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.
Summary
This is an optimization of the outbound message ID format, not a bug fix.
AguiMessageConverter.toAguiMessagesbuilds the ID of an outbound AG-UI message asagui::<sourceId>-<UUID>. That format is usable: a reader who knows that the suffix is a UUID can strip it by its length. It is simply less reliable to depend on in the long run. The separator is a hyphen, which the UUID itself and many source ids also contain, so the source id can only be recovered by counting the fixed length of the UUID rather than by finding a boundary the format guarantees.This changes the tail to
::<UUID without hyphens>. The suffix no longer contains the separator, so the source id is whatever precedes the last::. Reading the source id back then no longer depends on the length of the suffix, and source ids that contain hyphens or colons need no special handling. The prefix and the rule that reuses an id which already carries it are unchanged. The id format introduced in #3239 changes for callers of these conversion methods; the adapter's run path streams events and does not call them.Changes
generatedMessageIdappends::and a hyphen-free UUID instead of-and a UUID.toAguiMessagesandtoAguiMessageListstates the format and how to read the source id back.