fix(memory-core): harden request-scoped dreaming fallback (#64156)

* memory-core: harden request-scoped dreaming fallback

* memory-core: tighten request-scoped fallback classification
This commit is contained in:
Mariano
2026-04-10 12:11:57 +02:00
committed by GitHub
parent 948909b3fb
commit 46f8c4dfd5
6 changed files with 193 additions and 9 deletions

View File

@@ -1,5 +1,18 @@
// Shared error graph/format helpers without the full infra-runtime surface.
export const SUBAGENT_RUNTIME_REQUEST_SCOPE_ERROR_CODE = "OPENCLAW_SUBAGENT_RUNTIME_REQUEST_SCOPE";
export const SUBAGENT_RUNTIME_REQUEST_SCOPE_ERROR_MESSAGE =
"Plugin runtime subagent methods are only available during a gateway request.";
export class RequestScopedSubagentRuntimeError extends Error {
code = SUBAGENT_RUNTIME_REQUEST_SCOPE_ERROR_CODE;
constructor(message = SUBAGENT_RUNTIME_REQUEST_SCOPE_ERROR_MESSAGE) {
super(message);
this.name = "RequestScopedSubagentRuntimeError";
}
}
export {
collectErrorGraphCandidates,
extractErrorCode,