feat(primer): fire Codex primer unconditionally like the Claude primer
Raise CODEX_PRIMER_MAX_USAGE_PCT from 1 to 100 so the Codex usage-window primer fires at every fixed KST slot regardless of current 5h usage level, mirroring the Claude primer (which always fires unless rate-limited). The d7 gate stays at 100 so an account whose weekly quota is exhausted is still skipped, matching Claude's rate-limit skip. Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,7 @@ vi.mock('./codex-warmup.js', () => ({
|
||||
}));
|
||||
|
||||
describe('usage-primer', () => {
|
||||
it('refreshes Codex usage before primer selection and allows 1% fresh usage', async () => {
|
||||
it('refreshes Codex usage before primer selection and fires regardless of usage level', async () => {
|
||||
callOrder.length = 0;
|
||||
refreshAllCodexAccountUsage.mockClear();
|
||||
refreshActiveCodexUsage.mockClear();
|
||||
@@ -68,7 +68,7 @@ describe('usage-primer', () => {
|
||||
expect.objectContaining({
|
||||
enabled: true,
|
||||
minIntervalMs: 18_000_000,
|
||||
maxUsagePct: 1,
|
||||
maxUsagePct: 100,
|
||||
maxD7UsagePct: 100,
|
||||
}),
|
||||
{ ignoreZeroUsageWindow: true },
|
||||
|
||||
Reference in New Issue
Block a user