Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(desktop): load mode projection in the compaction harness

v_wyxgwang297008070a1a
diff --git a/apps/desktop/test/agent-compact-session-operation.test.mjs b/apps/desktop/test/agent-compact-session-operation.test.mjs
index 43c19d743..7dc139c55 100644
--- a/apps/desktop/test/agent-compact-session-operation.test.mjs
+++ b/apps/desktop/test/agent-compact-session-operation.test.mjs
@@ -69,6 +69,7 @@ function buildHarness({ hostCall, sidecarCall, resolveSessionMessageInput }) {
},
"../composer-mcp": { expandMcpInvocation: () => null },
"../runtime/mode-runs": { modeContinuationOrigin: () => undefined },
+ "../runtime/mode-sidecar-definition": load("../electron/main/runtime/mode-sidecar-definition.ts", {}),
"../runtime/background-continuations": {
backgroundContinuationOrigin: () => undefined,
backgroundCompletionMessage: () => assert.fail("compaction must not deliver a background result"),