mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-08 15:55:15 +01:00
c04dae2fa4
* Insert paragraph separator between Copilot CLI assistant messages When the CLI emits multiple assistant messages in a single turn, each message arrives as its own `assistant.message_delta` / `assistant.message` event with a distinct `messageId`. The handlers forwarded each event to `stream.markdown(...)` with no separator, so consecutive messages fused into a run-on paragraph (e.g. "...wiring:Now add..."). Track the last emitted `messageId` and prepend `\n\n` whenever the incoming event carries a different (defined) id. Streaming deltas sharing the same `messageId` remain unaffected. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Add regression test for undefined messageId legacy behavior Addresses Copilot review feedback: lock in that legacy SDK emissions without a defined messageId continue to be concatenated without an inserted separator, rather than producing spurious blank paragraphs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>