codex - 💡(How to fix) Fix Codex Desktop drops approvals_reviewer=auto_review after context compaction/resume

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Codex Desktop appears to drop approvals_reviewer = auto_review from the regenerated permissions developer message after context compaction / resumed turns. After this happens, require_escalated tool calls are surfaced as manual approval prompts even though the thread originally started with auto-review enabled.

Root Cause

Codex Desktop appears to drop approvals_reviewer = auto_review from the regenerated permissions developer message after context compaction / resumed turns. After this happens, require_escalated tool calls are surfaced as manual approval prompts even though the thread originally started with auto-review enabled.

Code Example

approval_policy = "on-request"
approvals_reviewer = "auto_review"
sandbox_mode = "workspace-write"

---

`approvals_reviewer` is `auto_review`: Sandbox escalations with require_escalated will be reviewed for compliance with the policy.
RAW_BUFFERClick to expand / collapse

Summary

Codex Desktop appears to drop approvals_reviewer = auto_review from the regenerated permissions developer message after context compaction / resumed turns. After this happens, require_escalated tool calls are surfaced as manual approval prompts even though the thread originally started with auto-review enabled.

Environment

  • Codex Desktop app: 26.513.31313
  • Codex CLI: 0.131.0-alpha.9
  • macOS
  • Config:
approval_policy = "on-request"
approvals_reviewer = "auto_review"
sandbox_mode = "workspace-write"

Observed Behavior

In affected threads:

  1. The initial permissions developer message contains:

    `approvals_reviewer` is `auto_review`: Sandbox escalations with require_escalated will be reviewed for compliance with the policy.
  2. A context compaction event occurs.

  3. The permissions developer message is regenerated after compaction.

  4. The regenerated permissions message still contains sandbox settings, writable roots, and approved command prefixes, but no longer contains approvals_reviewer.

  5. Subsequent require_escalated calls are shown as manual user approval prompts instead of being routed through auto-review.

Expected Behavior

If a thread/session is configured with approvals_reviewer = auto_review, regenerated permissions/runtime context after compaction or resume should preserve it. Auto-review should continue to handle eligible require_escalated requests after compaction.

Actual Behavior

After compaction/resume, the regenerated permissions context often omits approvals_reviewer, and the thread behaves as if approval review had fallen back to manual user approval.

Local Pattern

Across local session logs, this is not isolated to a single thread:

  • Full permissions messages before compaction can include approvals_reviewer = auto_review.
  • Regenerated permissions messages after compaction often omit it.
  • In affected threads, fresh/new contexts may work, but older/resumed/compacted contexts lose the auto-review routing.

This suggests the problem is in the context rebuild / resume path, not in the user config file.

Related Issues

This may be related to other reports where old/resumed threads lose approval/auth/orchestration state while fresh threads behave correctly:

  • #22132
  • #21931
  • #18720
  • #19910
  • #18522

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex Desktop drops approvals_reviewer=auto_review after context compaction/resume