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
{{ message }}
Repository navigation
Commit b717829
Browse filesBrowse the repository at this point in the historyBrowse files
fix(streaming): preserve paragraph separators across block-streamed deliveries
Carry the paragraph boundary through the delivered block-reply path and keep
emitted chunks within maxChars (#42106):
- chunker: attach the canonical `\n\n` separator to paragraph-split chunks and
reserve its length in the fit check; re-attach in #emitBreakResult only when
the result stays within maxChars.
- emitBlockChunk: preserve a single trailing `\n\n` on non-final deliveries
(the separator the chunker attached) so successive separate deliveries
reconstruct the blank line; keep assistantTexts separator-free via visibleChunk.
- coalescer: joinBufferedText strips a trailing whitespace run from the left
before re-joining (whitespace joiner) so separator-carrying chunks in one
flush do not produce `\n\n\n\n`.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Copy file name to clipboardExpand all lines: src/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.keeps-indented-fenced-blocks-intact.test.ts
Copy file name to clipboardExpand all lines: src/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.reopens-fenced-blocks-splitting-inside-them.test.ts
Copy file name to clipboardExpand all lines: src/agents/embedded-agent-subscribe.subscribe-embedded-agent-session.streams-soft-chunks-paragraph-preference.test.ts
0 commit comments