Codex app on macOS fails automatically during context compaction

Resolved 💬 2 comments Opened Jun 10, 2026 by XMSECODE Closed Jun 16, 2026

Hi OpenAI Codex team,

I’m using the latest Codex app on macOS. I encountered a recurring issue where the app automatically fails when it tries to compact/compress the conversation context.

Issue

When a Codex thread becomes long and the app starts context compaction automatically, the compaction process fails. After that, the thread cannot continue normally, and I need to restart or open a new thread.

Expected behavior

The Codex app should successfully compact the context and continue the thread, or provide a clear recoverable error message.

Actual behavior

Context compaction starts automatically but fails. The thread becomes interrupted/stuck and cannot continue as expected.

Steps to reproduce

  1. Open the latest Codex app on macOS.
  2. Start a local coding thread in a project.
  3. Continue the conversation until the context becomes long enough for automatic context compaction.
  4. Wait for Codex to compact/compress the context.
  5. The compaction process fails automatically.

Environment

  • App: Codex app for macOS
  • Codex bundled version: codex-cli 0.138.0-alpha.7
  • macOS version: macOS 26.5.1, build 25F80
  • Mac model / chip: Mac mini Macmini9,1, Apple M1, 16 GB memory, arm64
  • Plan: [Plus / Pro / Business / Enterprise]
  • Project type: Objective-C / Cocoa macOS app
  • Approximate time of failure: 2026-06-10, Asia/Shanghai timezone

Additional note

Running /Applications/Codex.app/Contents/Resources/codex --version also printed:
WARNING: proceeding, even though we could not create PATH aliases: Operation not permitted (os error 1)

I can provide logs if needed. Please investigate the automatic context compaction failure in the latest macOS Codex app.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗