Skip to content

feat: read chat streams one way and share reply parts with the model chat - #3843

Merged
themaherkhalil merged 1 commit into
devfrom
feat/shared-chat-transcript
Nov 3, 2026
Merged

themaherkhalil merged 1 commit into
devfrom
feat/shared-chat-transcript

Conversation

@themaherkhalil

Copy link
Copy Markdown
Contributor

Every chat reads its stream with the SDK's readPixelStreamChunk, which hands text, reasoning, tool deltas, and token usage to their handlers, skips empty text and reasoning, and ignores a kind it does not know. The model chat no longer takes a usage chunk, or the chunk that closes a tool call, for a tool call, and the playground no longer logs usage chunks as unknown. The SDK's stream types include usage.

The playground's reasoning toggle, generating line, and loading messages move to @semoss/shared as ChatReasoning, ChatGeneratingIndicator, and useLoadingMessage, beside a display-only ChatToolCallRow, with their words in a transcript namespace. The model chat shows its reasoning, tool calls, and the wait for the first words with them, so a reply reads the same in both chats.

…chat

Every chat reads its stream with the SDK's readPixelStreamChunk, which
hands text, reasoning, tool deltas, and token usage to their handlers,
skips empty text and reasoning, and ignores a kind it does not know.
The model chat no longer takes a usage chunk, or the chunk that closes
a tool call, for a tool call, and the playground no longer logs usage
chunks as unknown. The SDK's stream types include usage.

The playground's reasoning toggle, generating line, and loading messages
move to @semoss/shared as ChatReasoning, ChatGeneratingIndicator, and
useLoadingMessage, beside a display-only ChatToolCallRow, with their
words in a transcript namespace. The model chat shows its reasoning,
tool calls, and the wait for the first words with them, so a reply
reads the same in both chats.
@themaherkhalil
themaherkhalil requested a review from a team as a code owner November 3, 2026 18:26
@themaherkhalil
themaherkhalil merged commit f7c724c into dev Nov 3, 2026
3 of 4 checks passed
@themaherkhalil
themaherkhalil deleted the feat/shared-chat-transcript branch November 3, 2026 18:26
@snyk-io

snyk-io Bot commented Nov 3, 2026

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant