-
fix(codex): make compression work in the Desktop/Cloud app (#337)
Release / Build aarch64-apple-darwin (push) Has been cancelledRelease / Build x86_64-apple-darwin (push) Has been cancelledRelease / Build aarch64-unknown-linux-musl (push) Has been cancelledRelease / Build aarch64-unknown-linux-gnu (push) Has been cancelledRelease / Build x86_64-unknown-linux-musl (push) Has been cancelledRelease / Build x86_64-pc-windows-gnu (push) Has been cancelledRelease / Build x86_64-unknown-linux-gnu (push) Has been cancelledRelease / Build x86_64-pc-windows-msvc (push) Has been cancelledRelease / Create Release (push) Has been cancelledRelease / Publish to crates.io (push) Has been cancelledRelease / Publish to npm (push) Has been cancelledRelease / Update Homebrew (push) Has been cancelledRelease / Announce on Twitter (push) Has been cancelled发布于
2026-06-03 06:23:31 +00:00 lean-ctx's transparent compression for Codex is hook-driven (the
codex-pretooluse hook reroutes commands throughlean-ctx -c), but the
Codex Desktop and Cloud app run in app-server mode where lifecycle hooks
do not fire (OpenAI codex#13019). Identical commands therefore compressed
in the Codex CLI but not in the app.Drive compression through the channel that IS available in the app — MCP:
- AGENTS.md block + LEAN-CTX.md now state the Desktop hook limitation and
require the agent to route shell/read/search through ctx_shell/ctx_read/
ctx_search (orlean-ctx -c) proactively. lean-ctx doctoradds an informational Codex note so a healthy config
no longer looks like a silent failure.
Hooks remain the automatic path in the Codex CLI once trusted via /hooks.
Tests: codex_docs_warn_about_desktop_hook_absence,
codex_desktop_note_is_informational_and_never_fails.Co-authored-by: Cursor cursoragent@cursor.com
下载附件
- AGENTS.md block + LEAN-CTX.md now state the Desktop hook limitation and