Luis Pater
1f5bf2a569
fix(codex): release refresh claims on pre-send errors and defer macOS wakes
...
- Classify request creation and pre-handoff connection failures separately from ambiguous post-connection errors so unsubmitted refresh grants release their journal claim and remain retryable.
- Implement owner-bound, single-attempt claim release across memory, file, PostgreSQL, Git, and S3 refresh journals while preserving replay protection for completed or uncertain exchanges.
- Apply macOS power-state readiness deferral to ordinary Codex refreshes and preserve a positive reschedule backoff in the auto-refresh manager.
Closes : #7450
Co-authored-by: Dylan <1990016@gmail.com >
Co-authored-by: lzt404 <2596933790@qq.com >
2026-11-11 17:49:05 +08:00
Luis Pater
68cd75724e
fix(codex): prevent replay after uncertain refresh outcomes
...
- Preserve refresh failure stages and prevent immediate or later grant replay.
- Coordinate durable claims and recovery receipts across file, PostgreSQL, Git, and S3 stores.
- Add regression coverage for retries, concurrency, persistence, and recovery.
Closes : #7289
2026-11-07 01:44:42 +08:00