Codex fixes missing records when AI command approvals fail

Conceptual before-and-after workflow: a refused or failed approval was shown in the live UI but could disappear from history; after the Codex source change, core saves the command result and the reopened UI can show it.

OpenAI’s Codex project merged a change on November 27 that records declined or failed command approvals before an agent’s turn finishes. For developers building an AI-assisted service, it addresses a practical problem: a customer should be able to reopen a session and see why a proposed action did not run.

Figure: Conceptual before-and-after approval history, based on PR 64341. It illustrates the intended source-code behavior, not a benchmark or a packaged release.

Why a missing approval record matters

An agent may propose a terminal command but wait for a person’s permission before executing it. Previously, the Codex app server could send a completed command item to the live interface without saving that item in the core session history when the approval was rejected. A customer could see the result at first, then lose that evidence when reopening the conversation.

The merged implementation moves the pending command into the core approval record and records the final command item before unblocking the turn. This is a source-code change, not confirmation that a particular packaged version already contains it.

How three approval outcomes differ

Approval outcome Recorded status
Person declines Declined
Person cancels Declined
Invalid response or approval request fails Failed

The project’s added integration tests cover cancellation, refusal and malformed responses. They check that the command-completion event comes before the turn-completion event, and that the same command item appears in paginated history after reopening the session. INGOAMPT has inspected the code and test changes but has not run these tests independently.

A practical check before selling an agent-assisted service

Imagine a service that proposes a file conversion command and shows the customer an approval prompt. Test what happens when the customer refuses, closes the approval dialog or returns an invalid response. Reopen the session, compare the saved item with the live result and confirm that no action was incorrectly recorded as executed. Apply the test to the exact version you intend to deploy.

Keep the proposed action, approval decision and actual execution result distinct. A durable approval record helps explain what happened, but it does not establish that every action is authorized, that logs are tamper-proof or that a service is compliant. The change does not prove a speed improvement or a commercial outcome.

Original source: OpenAI Codex PR 64341, first published November 27, 2026 at 15:31:38 UTC and merged at 15:31:55 UTC. Follow more AI news for independent developers.