From 9dbbee8a02c4c45c3d5748845d013e70dcaaf030 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sun, 12 Apr 2026 19:29:34 +0100 Subject: [PATCH] fix(test): align trace directive type stubs --- extensions/active-memory/index.ts | 2 +- src/auto-reply/reply/commands-subagents-focus.test.ts | 1 + src/auto-reply/reply/commands-subagents-spawn-action.test.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/extensions/active-memory/index.ts b/extensions/active-memory/index.ts index d795354cafa..f288f34b130 100644 --- a/extensions/active-memory/index.ts +++ b/extensions/active-memory/index.ts @@ -1199,7 +1199,7 @@ async function readActiveMemorySearchDebug( continue; } const details = asRecord(message.details); - const debug = asRecord(details?.debug); + const debug = asRecord(details?.debug) ?? {}; const warning = normalizeOptionalString(details?.warning); const action = normalizeOptionalString(details?.action); const error = normalizeOptionalString(details?.error); diff --git a/src/auto-reply/reply/commands-subagents-focus.test.ts b/src/auto-reply/reply/commands-subagents-focus.test.ts index d4e84495664..b2324ded3ae 100644 --- a/src/auto-reply/reply/commands-subagents-focus.test.ts +++ b/src/auto-reply/reply/commands-subagents-focus.test.ts @@ -165,6 +165,7 @@ function buildCommandParams(params?: { hasVerboseDirective: false, hasFastDirective: false, hasReasoningDirective: false, + hasTraceDirective: false, hasElevatedDirective: false, hasExecDirective: false, hasExecOptions: false, diff --git a/src/auto-reply/reply/commands-subagents-spawn-action.test.ts b/src/auto-reply/reply/commands-subagents-spawn-action.test.ts index 756137fbd42..b3810059c25 100644 --- a/src/auto-reply/reply/commands-subagents-spawn-action.test.ts +++ b/src/auto-reply/reply/commands-subagents-spawn-action.test.ts @@ -47,6 +47,7 @@ function buildContext(params?: { hasVerboseDirective: false, hasFastDirective: false, hasReasoningDirective: false, + hasTraceDirective: false, hasElevatedDirective: false, hasExecDirective: false, hasExecOptions: false,