Skip to content

Commit bc505f2

Browse files
committed
fix(doctor): enable compaction byte-guard health check by default
1 parent e09d043 commit bc505f2

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

‎src/flows/doctor-health-contributions-initial.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,6 @@ export function resolveInitialDoctorHealthContributions(params: {
353353
id: "core/doctor/inactive-compaction-byte-guard",
354354
description:
355355
"Warn when maxActiveTranscriptBytes is configured but truncateAfterCompaction is not enabled, leaving the byte guard inactive.",
356-
defaultEnabled: false,
357356
detect: async (ctx) => collectCompactionByteGuardFindings(ctx.cfg),
358357
},
359358
run: runCompactionByteGuardHealth,

‎src/flows/doctor-health-contributions.test.ts‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,8 +1877,8 @@ describe("doctor health contributions", () => {
18771877
const check = contributionChecks.find(
18781878
(entry) => entry.id === "core/doctor/inactive-compaction-byte-guard",
18791879
);
1880-
expect(check).toMatchObject({ defaultEnabled: false });
18811880
expect(check).toBeDefined();
1881+
expect(check).not.toHaveProperty("defaultEnabled", false);
18821882

18831883
const ctx = {
18841884
cfg: {
@@ -1895,17 +1895,8 @@ describe("doctor health contributions", () => {
18951895
runtime: { log: vi.fn(), error: vi.fn(), exit: vi.fn() },
18961896
} as const;
18971897

1898-
// defaultEnabled=false → skipped unless explicitly included
1898+
// Default doctor lint runs the check without needing --only.
18991899
await expect(runDoctorLintChecks(ctx, { checks: [check!] })).resolves.toMatchObject({
1900-
checksRun: 0,
1901-
checksSkipped: 1,
1902-
});
1903-
await expect(
1904-
runDoctorLintChecks(ctx, {
1905-
checks: [check!],
1906-
onlyIds: ["core/doctor/inactive-compaction-byte-guard"],
1907-
}),
1908-
).resolves.toMatchObject({
19091900
checksRun: 1,
19101901
checksSkipped: 0,
19111902
findings: [

0 commit comments

Comments
 (0)