fix(chat): separate merged output segments
Build / build (push) Canceled after 0s
Playwright / e2e (push) Canceled after 0s

This commit is contained in:
2026-11-05 15:52:53 +08:00
parent 43eda89d47
commit 10ce9e5c28
7 changed files with 42 additions and 7 deletions
@@ -11,6 +11,7 @@ describe('groupRunMessages', () => {
expect(active.map(m => m.role)).toEqual(['user', 'assistant'])
expect(active[1].toolMessages).toEqual([input[2]])
expect(active[1]).toMatchObject({ id: 'b', content: 'first\n\nsecond' })
expect(active[1].contentSegments).toEqual(['first', 'second'])
const finished = groupRunMessages(input, false)
expect(finished.at(-1)?.systemType).toBe('run-end')
})