feat: add codex review failover and suppress output hardening

This commit is contained in:
Eyejoker
2026-03-28 05:40:38 +09:00
parent d1c693fb17
commit ba9f6871b6
49 changed files with 3884 additions and 1763 deletions

View File

@@ -5,7 +5,7 @@ import {
classifyClaudeAuthError,
detectClaudeProviderFailureMessage,
isClaudeOrgAccessDeniedMessage,
isNoFallbackCooldownReason,
shouldRotateClaudeToken,
} from './agent-error-detection.js';
@@ -65,11 +65,4 @@ describe('agent-error-detection', () => {
expect(shouldRotateClaudeToken('success-null-result')).toBe(false);
});
it('marks only no-fallback cooldown reasons as skip-worthy', () => {
expect(isNoFallbackCooldownReason('usage-exhausted')).toBe(true);
expect(isNoFallbackCooldownReason('auth-expired')).toBe(true);
expect(isNoFallbackCooldownReason('org-access-denied')).toBe(true);
expect(isNoFallbackCooldownReason('429')).toBe(false);
expect(isNoFallbackCooldownReason('success-null-result')).toBe(false);
});
});