fix(chat): separate merged output segments
This commit is contained in:
@@ -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')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user