mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 15:50:46 +00:00
fix: let active memory recall failures degrade (#69485) (thanks @Magicray1217)
This commit is contained in:
@@ -1147,12 +1147,9 @@ describe("active-memory plugin", () => {
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it("returns undefined instead of throwing when an unexpected error escapes the recall path", async () => {
|
||||
runEmbeddedPiAgent.mockRejectedValueOnce(new Error("network reset"));
|
||||
hoisted.updateSessionStore.mockRejectedValueOnce(new Error("store unavailable"));
|
||||
|
||||
it("returns undefined instead of throwing when an unexpected error escapes prompt building", async () => {
|
||||
const result = await hooks.before_prompt_build(
|
||||
{ prompt: "what should i eat? escape test", messages: [] },
|
||||
{ prompt: "what should i eat? escape test", messages: undefined as never },
|
||||
{
|
||||
agentId: "main",
|
||||
trigger: "user",
|
||||
|
||||
Reference in New Issue
Block a user