Spracherkennung für: .ts vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]
import { canonicalizeMainSessionAlias } from "../../config/sessions/main-session.js";
import type { SessionScope } from "../../config/sessions/types.js";
import { toAgentStoreSessionKey } from "../../routing/session-key.js";
export function resolveCronAgentSessionKey(params: {
sessionKey: string;
agentId: string;
mainKey?: string | undefined;
cfg?: { session?: { scope?: SessionScope; mainKey?: string } };
}): string {
const raw = toAgentStoreSessionKey({
agentId: params.agentId,
requestKey: params.sessionKey.trim(),
mainKey: params.mainKey,
});
// Canonicalize so "agent:<id>:main" → "agent:<id>:<configuredMainKey>"
// when cfg.session.mainKey differs from "main". Without this, cron sessions
// are orphaned when read paths use the configured mainKey alias (#29683).
return canonicalizeMainSessionAlias({
cfg: params.cfg,
agentId: params.agentId,
sessionKey: raw,
});
}
¤ Dauer der Verarbeitung: 0.20 Sekunden
(vorverarbeitet am 2026-04-27)
¤
*© Formatika GbR, Deutschland