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

@@ -25,6 +25,7 @@ describe('extractCodexUsageRows staleness', () => {
it('returns real rows when usageRowsFetchedAt is within maxAgeMs', () => {
const now = Date.now();
const snapshot: StatusSnapshot = {
serviceId: 'codex-main',
agentType: 'codex',
assistantName: 'test',
updatedAt: new Date(now).toISOString(),
@@ -40,6 +41,7 @@ describe('extractCodexUsageRows staleness', () => {
it('returns degraded row when usageRowsFetchedAt exceeds maxAgeMs', () => {
const now = Date.now();
const snapshot: StatusSnapshot = {
serviceId: 'codex-main',
agentType: 'codex',
assistantName: 'test',
updatedAt: new Date(now).toISOString(), // heartbeat is fresh
@@ -57,6 +59,7 @@ describe('extractCodexUsageRows staleness', () => {
it('returns degraded row when usageRowsFetchedAt is missing', () => {
const now = Date.now();
const snapshot: StatusSnapshot = {
serviceId: 'codex-main',
agentType: 'codex',
assistantName: 'test',
updatedAt: new Date(now).toISOString(),
@@ -77,6 +80,7 @@ describe('extractCodexUsageRows staleness', () => {
it('returns empty array when usageRows is empty', () => {
const snapshot: StatusSnapshot = {
serviceId: 'codex-main',
agentType: 'codex',
assistantName: 'test',
updatedAt: new Date().toISOString(),