Browse Source

test: ignore defensive Remote branches

imccyu 1 month ago
parent
commit
8f919cb9ac

+ 1 - 0
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())

+ 1 - 0
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()