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,
});
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.