发布

  • fix(codex): make compression work in the Desktop/Cloud app (#337)
    Release / Build aarch64-apple-darwin (push) Has been cancelled
    Release / Build x86_64-apple-darwin (push) Has been cancelled
    Release / Build aarch64-unknown-linux-musl (push) Has been cancelled
    Release / Build aarch64-unknown-linux-gnu (push) Has been cancelled
    Release / Build x86_64-unknown-linux-musl (push) Has been cancelled
    Release / Build x86_64-pc-windows-gnu (push) Has been cancelled
    Release / Build x86_64-unknown-linux-gnu (push) Has been cancelled
    Release / Build x86_64-pc-windows-msvc (push) Has been cancelled
    Release / Create Release (push) Has been cancelled
    Release / Publish to crates.io (push) Has been cancelled
    Release / Publish to npm (push) Has been cancelled
    Release / Update Homebrew (push) Has been cancelled
    Release / Announce on Twitter (push) Has been cancelled

    frostbyte_neo 发布于 2026-06-03 06:23:31 +00:00

    lean-ctx's transparent compression for Codex is hook-driven (the
    codex-pretooluse hook reroutes commands through lean-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 (or lean-ctx -c) proactively.
    • lean-ctx doctor adds 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

    下载附件