fix: restrict Codex warm-up to fresh quota windows

This commit is contained in:
ejclaw
2026-04-24 18:53:04 +09:00
parent cfcac88ddb
commit 884aef5c99
4 changed files with 10 additions and 8 deletions

View File

@@ -139,6 +139,7 @@ describe('config/env loading', () => {
let config = await import('./config.js');
expect(config.CODEX_WARMUP_CONFIG.enabled).toBe(false);
expect(config.CODEX_WARMUP_CONFIG.maxUsagePct).toBe(0);
expect(config.CODEX_WARMUP_CONFIG.maxD7UsagePct).toBe(0);
expect(
config.CODEX_WARMUP_CONFIG.maxConsecutiveFailures,
).toBeGreaterThanOrEqual(1);