From e88f4fe5f406d061fc424c3255f3f17f729df747 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sat, 4 Apr 2026 02:33:50 +0900 Subject: [PATCH] fix(ci): narrow matrix action test discovery --- extensions/matrix/src/actions.test.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/extensions/matrix/src/actions.test.ts b/extensions/matrix/src/actions.test.ts index 2793ecbf034..95361ba25d7 100644 --- a/extensions/matrix/src/actions.test.ts +++ b/extensions/matrix/src/actions.test.ts @@ -196,11 +196,16 @@ describe("matrixMessageActions", () => { }, } as CoreConfig; - const assistantDiscovery = matrixMessageActions.describeMessageTool!({ + const describeMessageTool = matrixMessageActions.describeMessageTool; + if (!describeMessageTool) { + throw new Error("matrix message action discovery is unavailable"); + } + + const assistantDiscovery = describeMessageTool({ cfg, accountId: "assistant", } as never); - const opsDiscovery = matrixMessageActions.describeMessageTool!({ + const opsDiscovery = describeMessageTool({ cfg, accountId: "ops", } as never);