[codex] Recover Codex context overflow sessions

This commit is contained in:
Eyejoker
2026-05-19 21:52:54 +09:00
committed by GitHub
parent 59c7318833
commit f240cf7820
4 changed files with 46 additions and 33 deletions

View File

@@ -20,6 +20,8 @@ const SESSION_RETRY_PATTERNS = [
const CODEX_SESSION_RESET_PATTERNS = [
/Error running remote compact task/i,
/Codex ran out of room in the model's context window/i,
/Start a new thread or clear earlier history before retrying/i,
/prompt_cache_retention/i,
];