@@ -79,6 +79,16 @@ test('Reply finalizes a streaming row instead of duplicating [object Object]', (
|
||||
assert.doesNotMatch(overlay.transcript.children[0].text, /object Object/);
|
||||
});
|
||||
|
||||
test('final reply is shown after tool result rows', () => {
|
||||
const { ArcOverlay } = harness();
|
||||
const overlay = new ArcOverlay();
|
||||
overlay.addToolCall('{"name":"runtime_status"}');
|
||||
overlay.addToolResult('{"name":"runtime_status"}');
|
||||
overlay.finalizeReply('Your computer is ready.');
|
||||
assert.equal(overlay.transcript.children.length, 3);
|
||||
assert.match(overlay.transcript.children[2].text, /Your computer is ready/);
|
||||
});
|
||||
|
||||
test('addRow and token coerce objects to readable text', () => {
|
||||
const { ArcOverlay } = harness();
|
||||
const overlay = new ArcOverlay();
|
||||
|
||||
Reference in New Issue
Block a user