fix: satisfy gate checks

This commit is contained in:
Peter Steinberger
2026-01-04 01:16:53 +01:00
parent e3c543ec06
commit 8724c2aea8
8 changed files with 29 additions and 30 deletions

View File

@@ -1777,8 +1777,10 @@ function applySessionDefaults(cfg: ClawdisConfig): ClawdisConfig {
if (!session || session.mainKey === undefined) return cfg;
const trimmed = session.mainKey.trim();
const next: ClawdisConfig = { ...cfg, session: { ...session } };
next.session.mainKey = "main";
const next: ClawdisConfig = {
...cfg,
session: { ...session, mainKey: "main" },
};
if (trimmed && trimmed !== "main" && !warnedMainKeyOverride) {
warnedMainKeyOverride = true;

View File

@@ -103,9 +103,9 @@ export function resolveStorePath(store?: string) {
return path.resolve(store);
}
export function resolveMainSessionKey(
cfg?: { session?: { scope?: SessionScope; mainKey?: string } },
): string {
export function resolveMainSessionKey(cfg?: {
session?: { scope?: SessionScope; mainKey?: string };
}): string {
if (cfg?.session?.scope === "global") return "global";
return "main";
}