Make memory more resilient to failure

This commit is contained in:
Vignesh Natarajan
2026-01-27 22:17:56 -08:00
committed by Vignesh
parent 5d3af3bc62
commit 2c30ba400b
8 changed files with 26 additions and 10 deletions

View File

@@ -42,7 +42,6 @@ export type ResolvedQmdSessionConfig = {
enabled: boolean;
exportDir?: string;
retentionDays?: number;
redactToolOutputs: boolean;
};
export type ResolvedQmdConfig = {
@@ -147,12 +146,10 @@ function resolveSessionConfig(
const exportDir = exportDirRaw ? resolvePath(exportDirRaw, workspaceDir) : undefined;
const retentionDays =
cfg?.retentionDays && cfg.retentionDays > 0 ? Math.floor(cfg.retentionDays) : undefined;
const redactToolOutputs = cfg?.redactToolOutputs !== false;
return {
enabled,
exportDir,
retentionDays,
redactToolOutputs,
};
}