Skip to content

Commit 4094ef4

Browse files
committed
test: isolate ACP Matrix plugin routing
1 parent 009ae44 commit 4094ef4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/agents/acp-spawn.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,12 @@ vi.mock("../channels/plugins/index.js", () => ({
120120
normalizeChannelId: hoisted.normalizeChannelIdMock,
121121
}));
122122

123+
vi.mock("../channels/plugins/registry.js", () => ({
124+
getChannelPlugin: hoisted.getChannelPluginMock,
125+
getLoadedChannelPlugin: hoisted.getLoadedChannelPluginMock,
126+
normalizeChannelId: hoisted.normalizeChannelIdMock,
127+
}));
128+
123129
vi.mock("../config/sessions/paths.js", () => ({
124130
resolveStorePath: hoisted.resolveStorePathMock,
125131
}));
@@ -460,6 +466,9 @@ function enableMatrixAcpThreadBindings(): void {
460466
},
461467
});
462468
const matrixPlugin = {
469+
conversationBindings: {
470+
defaultTopLevelPlacement: "child",
471+
},
463472
messaging: {
464473
resolveDeliveryTarget: ({
465474
conversationId,

0 commit comments

Comments
 (0)