(error: string | null)
| 138 | } |
| 139 | |
| 140 | function isContextCompactRetryableCodexError(error: string | null): boolean { |
| 141 | if (!error) { |
| 142 | return false; |
| 143 | } |
| 144 | const normalized = error.toLowerCase(); |
| 145 | return CONTEXT_COMPACT_RETRYABLE_ERROR_PATTERNS.some((pattern) => normalized.includes(pattern)); |
| 146 | } |
| 147 | |
| 148 | function formatGoalStatus(status: unknown): string { |
| 149 | switch (status) { |