You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
transport: replace MessageWithHeaders with ConversationNode
Eliminate the lossy MessageWithHeaders projection in favour of the
richer ConversationNode type on both read and write paths.
Read path: getMessagesWithHeaders() is replaced by getNodes(), which
returns ConversationNode[] directly from the conversation tree instead
of stripping fields into {message, headers?}.
Write path: Turn.addMessages() now accepts ConversationNode[] instead
of MessageWithHeaders[]. The server uses typed node fields (msgId,
parentId, forkOf) directly rather than generating UUIDs and overriding
via raw header strings. AddMessageOptions is simplified to just
clientId.
Consumers get typed msgId, parentId, forkOf, and non-optional headers
instead of digging into raw header strings — this also eliminates the
! non-null assertion that was in the demo code.
Tests add coverage for node parentId/forkOf flowing through server
transport headers.
0 commit comments