build(plugins): pin retained runtime and cover handoff error paths

This commit is contained in:
kartik-mem0
2026-09-10 21:03:19 +05:30
parent 59939c003f
commit 1bf083dd04
9 changed files with 69 additions and 10 deletions
@@ -131,6 +131,10 @@ describe("loadCompactTriagePrompt", () => {
});
expect(prompt).toContain("No automatic recall happens in manual mode.");
const fullPrompt = loadTriagePrompt({recall: {strategy: "manual"}});
expect(fullPrompt).toContain("No automatic recall happens in manual mode.");
expect(fullPrompt).toContain(SEARCH_GUIDANCE);
expect(fullPrompt).not.toContain("ALWAYS rewrite");
});
it("includes short config summaries and truncates oversized custom rules", () => {