Repository navigation
Resume pending Codex command and file edit approvals after a worker restart - #6115
markstuart-oai merged 2 commits into
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
Security findingsAdvisory findings (1)
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
eb7ebf6 to
4963122
Compare
There was a problem hiding this comment.
🛡️ Codex Security Review · Automatically triggered
Here are some automated security review suggestions for this pull request.
Reviewed commit: 4963122441
ℹ️ About Codex security reviews in GitHub
This is an experimental Codex feature. Security reviews are triggered when:
- You comment "@codex security review"
- A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review
Once complete, Codex will leave suggestions, or a comment if no findings are found.
jbeckwith-oai
left a comment
There was a problem hiding this comment.
Approved after independent static reviews of the current commit. Reviewed durable checkpoint ownership and immutable native receipts, streaming checkpoint acknowledgement, fresh per-call decisions, current permission and tool availability checks, file preconditions, native restoration without a model turn, cancellation/unknown-outcome handling, and the regression coverage. The existing repeated-call-ID finding is addressed: completed or executed invocations are rejected before native dispatch, and Core also enforces one execution per restored call. No remaining actionable findings.
Hosted checks: 2 skipped, 19 success. No native wheel CI job is shown for this stacked target. The process/Kubernetes results in the PR description are author-reported, not runs performed by this reviewer. Retain the planned re-review and native wheel CI check after reapplying/retargeting to feat/simple-codex following #6105 and #6106. Static review only; no candidate code or local tests executed.
4d10726
into
feature/codex-operation-tracing
Summary
When a worker dies before an approval arrives, the app can't safely guess which command or file edit to retry. With
Runner.run(..., session=...), a replacement worker can now load that exact call from Redis and approve or deny it. Codex checks current permissions and refuses to overwrite a file that changed while it was waiting.Merge after #6105 and #6106. Reapply these 16 files to
feat/simple-codexonce both land, then run wheel CI on that target.Test plan
Before the replay fix, two requests with the same call ID wrote two lines after one approval. With the fix, the file stays at one line.
The installed Linux wheel passed 10 process and 5 Kubernetes restart cases. Denials left files untouched. After a pod died just after writing, its replacement didn't write again. The node and Redis stayed up.
Issue number
None.
Checks