diff --git a/extensions/active-memory/index.ts b/extensions/active-memory/index.ts index d795354caf..f288f34b13 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 d4e8449566..b2324ded3a 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 756137fbd4..b3810059c2 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,