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

@@ -7,6 +7,7 @@ import {
generateMusic as generateRuntimeMusic,
listRuntimeMusicGenerationProviders,
} from "../../music-generation/runtime.js";
import { RequestScopedSubagentRuntimeError } from "../../plugin-sdk/error-runtime.js";
import { resolveGlobalSingleton } from "../../shared/global-singleton.js";
import {
createLazyRuntimeMethod,
@@ -119,7 +120,7 @@ function createRuntimeModelAuth(): PluginRuntime["modelAuth"] {
function createUnavailableSubagentRuntime(): PluginRuntime["subagent"] {
const unavailable = () => {
throw new Error("Plugin runtime subagent methods are only available during a gateway request.");
throw new RequestScopedSubagentRuntimeError();
};
return {
run: unavailable,