From 420e092d90ef8029773c364cc35dfd745cc1184b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 10 Apr 2026 18:50:23 +0100 Subject: [PATCH] test: remove duplicate matrix approval fallback case --- extensions/matrix/src/approval-native.test.ts | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/extensions/matrix/src/approval-native.test.ts b/extensions/matrix/src/approval-native.test.ts index 45ea392a68c..662492b6beb 100644 --- a/extensions/matrix/src/approval-native.test.ts +++ b/extensions/matrix/src/approval-native.test.ts @@ -117,32 +117,6 @@ describe("matrix approval capability", () => { expect(targets).toEqual([{ to: "user:@owner:example.org" }]); }); - it("falls back to the session-key origin target for plugin approvals when the store is missing", async () => { - const target = await matrixApprovalCapability.native?.resolveOriginTarget?.({ - cfg: buildConfig({ - dm: { allowFrom: ["@owner:example.org"] }, - }), - accountId: "default", - approvalKind: "plugin", - request: { - id: "plugin:req-1", - request: { - title: "Plugin Approval Required", - description: "Allow plugin access", - pluginId: "git-tools", - sessionKey: "agent:main:matrix:channel:!ops:example.org:thread:$root", - }, - createdAtMs: 0, - expiresAtMs: 1000, - }, - }); - - expect(target).toEqual({ - to: "room:!ops:example.org", - threadId: "$root", - }); - }); - it("suppresses same-channel plugin forwarding when Matrix native delivery is available", () => { const shouldSuppress = matrixApprovalCapability.delivery?.shouldSuppressForwardingFallback; if (!shouldSuppress) {