const lifecycle: string[] = []; if (idleTimeoutMs > 0) {
lifecycle.push(
`idle auto-unfocus after ${formatThreadBindingDurationLabel(idleTimeoutMs)} inactivity`,
);
} if (maxAgeMs > 0) {
lifecycle.push(`max age ${formatThreadBindingDurationLabel(maxAgeMs)}`);
}
const intro =
lifecycle.length > 0
? `${normalized} session active (${lifecycle.join("; ")}). Messages here go directly to this session.`
: `${normalized} session active. Messages here go directly to this session.`;
if (params.reason === "idle-expired") { const label = formatThreadBindingDurationLabel(
normalizeThreadBindingDurationMs(params.idleTimeoutMs),
); return prefixSystemMessage(
`Session ended automatically after ${label} of inactivity. Messages here will no longer be routed.`,
);
}
if (params.reason === "max-age-expired") { const label = formatThreadBindingDurationLabel(
normalizeThreadBindingDurationMs(params.maxAgeMs),
); return prefixSystemMessage(
`Session ended automatically at max age of ${label}. Messages here will no longer be routed.`,
);
}
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.