test: ignore defensive Remote branches

This commit is contained in:
imccyu
2026-08-23 16:16:06 +08:00
parent c5efa5ce9c
commit 8f919cb9ac
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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())
@@ -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()