Skip to content

Commit 8cf227e

Browse files
mthsmbclaude
andcommitted
test(shared): cover partial import-limit patches
A patch that sets windowDays to null and changes scanBudgetMiB keeps a customized sibling limit. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 7c5df3d commit 8cf227e

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎packages/shared/src/serverSettings.test.ts‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,20 @@ describe("serverSettings helpers", () => {
112112
browserArtifactsAfterDays: null,
113113
logsAfterDays: 30,
114114
});
115+
116+
const limited = applyServerSettingsPatch(DEFAULT_SERVER_SETTINGS, {
117+
agentSessionImport: { conversationsPerRun: 250 },
118+
});
119+
expect(
120+
applyServerSettingsPatch(limited, {
121+
agentSessionImport: { windowDays: null, scanBudgetMiB: 256 },
122+
}).agentSessionImport,
123+
).toEqual({
124+
...DEFAULT_SERVER_SETTINGS.agentSessionImport,
125+
windowDays: null,
126+
conversationsPerRun: 250,
127+
scanBudgetMiB: 256,
128+
});
115129
});
116130
it("replaces a source control host's patched field so a cleared account pin does not survive", () => {
117131
const pinned = applyServerSettingsPatch(DEFAULT_SERVER_SETTINGS, {

0 commit comments

Comments
 (0)