mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
fix: isolate active memory auth health (#71539)
* fix(agents): scope helper auth failures * fix(active-memory): isolate recall auth health * fix: isolate active memory auth health (#71539) * fix: avoid auth policy import cycle (#71539)
This commit is contained in:
@@ -162,6 +162,24 @@ describe("active-memory plugin", () => {
|
||||
expect(api.on).toHaveBeenCalledWith("before_prompt_build", expect.any(Function));
|
||||
});
|
||||
|
||||
it("runs recall without recording shared auth-profile failures", async () => {
|
||||
await hooks.before_prompt_build(
|
||||
{ prompt: "what wings should i order?", messages: [] },
|
||||
{
|
||||
agentId: "main",
|
||||
trigger: "user",
|
||||
sessionKey: "agent:main:main",
|
||||
messageProvider: "webchat",
|
||||
},
|
||||
);
|
||||
|
||||
expect(runEmbeddedPiAgent).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
authProfileFailurePolicy: "local",
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it("registers a session-scoped active-memory toggle command", async () => {
|
||||
const command = registeredCommands["active-memory"];
|
||||
const sessionKey = "agent:main:active-memory-toggle";
|
||||
|
||||
@@ -1685,6 +1685,7 @@ async function runRecallSubagent(params: {
|
||||
thinkLevel: params.config.thinking,
|
||||
reasoningLevel: "off",
|
||||
silentExpected: true,
|
||||
authProfileFailurePolicy: "local",
|
||||
cleanupBundleMcpOnRunEnd: true,
|
||||
abortSignal: params.abortSignal,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user