fix: stabilize zalouser account-scope regression hook (#26672) (thanks @bmendonca3)

This commit is contained in:
Peter Steinberger
2026-03-02 15:33:26 +00:00
parent f4c3e483fe
commit f1cab9c5e5
2 changed files with 20 additions and 0 deletions

View File

@@ -612,3 +612,22 @@ export async function monitorZalouserProvider(
return { stop };
}
export const __testing = {
processMessage: async (params: {
message: ZcaMessage;
account: ResolvedZalouserAccount;
config: OpenClawConfig;
runtime: RuntimeEnv;
statusSink?: (patch: { lastInboundAt?: number; lastOutboundAt?: number }) => void;
}) => {
await processMessage(
params.message,
params.account,
params.config,
getZalouserRuntime(),
params.runtime,
params.statusSink,
);
},
};