codex-cross-provider-session-repairlisted
Install: claude install-skill WardLu/skills
# Codex cross-provider session repair
Compatibility: Requires Python 3.9+ with the standard library; Windows, macOS,
and Linux Codex homes are supported. Stop Codex Desktop before applying file
or database changes. On macOS, the recommended launcher requires Terminal
automation permission so it can close only its uniquely titled repair window.
Use this skill for a damaged or incompatible *saved Codex session*, not for ordinary model/API troubleshooting. The goal is to make one existing conversation resumable while keeping its user-visible history and avoiding broad cache deletion.
## User interaction flow (end-to-end)
The user does not need to memorise CLI flags. A typical session looks like this:
1. **User opens a *new* Codex conversation** (the broken one cannot be used) and provides the session UUID and visible error.
2. **Agent runs the dry-run diagnostic** (see Workflow below). The report shows which failure mode applies and what will be changed.
3. **Agent explains the root cause and gets approval for the write.** After approval, start `scripts/start_repair.py` immediately. On macOS it opens a readable Terminal tab/window and runs the independent worker through a short temporary runner; do not paste the full worker command into the user's shell. The worker is safe whether Codex is still open, is being closed, or was already closed after the approval. Immediately tell the user in the current conversation: `修复任务已启动,最多等待 300 秒;请完全退出 Codex。终端会持续显示进度,完成前不要重新打开。 / Repair