feat(FN-4733): complete Step 1 — add chat auto-cleanup setting

Fusion-Task-Id: FN-4733
Fusion-Task-Lineage: 38495ced-c7a0-40aa-be22-7f02fe958806
This commit is contained in:
Fusion (runfusion.ai)
2026-05-16 08:35:02 -07:00
committed by gsxdsm
parent c6daa5e1a7
commit 7ec2711aa8
3 changed files with 10 additions and 0 deletions

View File

@@ -90,6 +90,12 @@ describe("settings key parity", () => {
expect(isGlobalSettingsKey("autoClaimCandidatesInPrompt")).toBe(false);
});
it("defaults chatAutoCleanupDays to off and keeps it project-scoped", () => {
expect(DEFAULT_PROJECT_SETTINGS.chatAutoCleanupDays).toBe(0);
expect(isProjectSettingsKey("chatAutoCleanupDays")).toBe(true);
expect(isGlobalSettingsKey("chatAutoCleanupDays")).toBe(false);
});
it("keeps heartbeatScopeDiscipline project-scoped with strict default", () => {
expect(DEFAULT_PROJECT_SETTINGS.heartbeatScopeDiscipline).toBe("strict");
expect(isProjectSettingsKey("heartbeatScopeDiscipline")).toBe(true);