Merge branch 'code-mode-ui/web-ui-v1' into code-mode-ui/live-parallel

Conflict resolution: session.ts keeps this branch's paired-start callTime
(the start event exists here; a settle-only window stays null — the PR2
fix's semantics compose). The README's codeDispatches section is restored
to the running→settled lifecycle this branch implements, keeping PR2's
null-callTime nuance for starts outside the window.
This commit is contained in:
Tianyi Cui
2026-07-26 15:29:33 +08:00
3 changed files with 6 additions and 1 deletions

View File

@@ -685,6 +685,9 @@ describe('run_code sub-dispatch indexing', () => {
expect(subs?.[0]).toMatchObject({
kind: 'tool-result', callId: 'p1:code:1',
call: { name: 'bash', argsRaw: '{"command":"ls","description":"列目录"}' },
// The settle event carries no start time: callTime stays null (never a
// fabricated zero-duration).
callTime: null,
isError: false, content: [{ type: 'text', text: 'demo.txt' }],
})
expect(subs?.[1]).toMatchObject({ callId: 'p1:code:2', isError: true })