[Bug]: ProviderAdapterProcessError: Provider adapter process error (codex) for thread ...: session ... is archived. Run `codex unarchive ...` to unarchive it first. #10481
delu999(GitHub profile, opens in a new tab) added labelsbug
delu999(GitHub profile, opens in a new tab) added labelsneeds-triage
juliusmarminge removed labelsneeds-triage
juliusmarminge added labelsvia-triage
juliusmarminge added labelsaccepted
maria-rcks closed this
Sign in to join this conversation.
Triage#
Confirmed bug. Archiving the conversation in ChatGPT archives the Codex CLI session (rollout moves to
archived_sessions). The next send in T3 tries to resume that session and Codex refuses:session … is archived. Run \codex unarchive …` to unarchive it first.`T3 wraps that as
ProviderAdapterProcessErrorand shows the toast. It does not unarchive and retry.This is not T3 thread archive.
Where it breaks#
apps/server/src/provider/Layers/CodexSessionRuntime.ts—openCodexThread()doesthread/resume, then only falls back to a freshthread/startfor missing-thread errors (not found,no rollout found, …). “is archived” is not in that list (good — a fresh start would drop history), and there is no unarchive path.apps/server/src/provider/Layers/CodexAdapter.ts—startSessionmaps the failure toProviderAdapterProcessError.thread/unarchive({ threadId }). T3 handlesthread/archived/thread/unarchivednotifications but never callsthread/unarchive.Not duplicates#
archived_sessions/Suggested fix#
On
thread/resumefailure that looks like an archived session (is archived/codex unarchive):thread/unarchivewith the resume-cursor provider thread idthread/resumeDo not treat “archived” as a recoverable missing-thread error.
Workaround#
Run
codex unarchive <session-id>from the toast, then resend in T3.Severity#
Minor / occasional — only after ChatGPT (or Codex) archives the session. Accepting as a Codex resume-path bug.