diff options
| author | Adam Malczewski <[email protected]> | 2026-06-07 18:56:16 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-07 18:56:16 +0900 |
| commit | ccfd2f4157c1cbbb3d8aeceee94d9e963a82ab03 (patch) | |
| tree | 4b8a1be9ac885dd2527279bc0cb84e70b1115bba /src/core/chunks | |
| parent | 80f8a219c89a963c485da0f40dc428bf688fedb7 (diff) | |
| download | dispatch-web-ccfd2f4157c1cbbb3d8aeceee94d9e963a82ab03.tar.gz dispatch-web-ccfd2f4157c1cbbb3d8aeceee94d9e963a82ab03.zip | |
fix(core): add step-complete contract guard for [email protected]
The backend's AgentEvent union now includes TurnStepCompleteEvent
(wire/transport-contract 0.3.0). Add: no-op case in foldEvent
(transcript reducer ignores timing metadata), exhaustiveness case
in assertAgentEventExhaustive, and a step-complete sample in the
conformance test (now 12 variants).
Diffstat (limited to 'src/core/chunks')
| -rw-r--r-- | src/core/chunks/reducer.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/chunks/reducer.ts b/src/core/chunks/reducer.ts index 1dcfa39..54b1922 100644 --- a/src/core/chunks/reducer.ts +++ b/src/core/chunks/reducer.ts @@ -148,6 +148,10 @@ export function foldEvent(state: TranscriptState, event: AgentEvent): Transcript case "usage": return { ...state, latestUsage: event.usage }; + case "step-complete": + // Timing metadata — no content chunk; handled by the telemetry reducer. + return state; + case "done": { const provisional = flushAccumulating(state.provisional, state.accumulating); return { |
