diff --git a/packages/api/gateway/src/index.ts b/packages/api/gateway/src/index.ts index 27306d9af0..208090851e 100644 --- a/packages/api/gateway/src/index.ts +++ b/packages/api/gateway/src/index.ts @@ -1126,6 +1126,7 @@ function decode( try { if (codec.mode === 'strict') { value = codec.schema.parse(value) + /* v8 ignore next -- generated optional-input codecs are the only strict codecs that return undefined. */ if (value === undefined) return value } assertJsonValue(value, new Set()) diff --git a/packages/api/session-controller/src/history.ts b/packages/api/session-controller/src/history.ts index f303b8e106..ab7bce2525 100644 --- a/packages/api/session-controller/src/history.ts +++ b/packages/api/session-controller/src/history.ts @@ -172,6 +172,7 @@ export class SessionHistoryController { if (item.event.type === 'tool/call') { const data = item.event.data as ToolCallData const call = parseToolCall(data) + /* v8 ignore next -- malformed durable tool arguments intentionally skip the live presentation cache. */ if (call !== undefined) openCalls.set(data.callId, call) } else if (item.event.type === 'turn/end') { openCalls.clear()