Repository navigation
Comparing changes
Open a pull request
base repository: agentclientprotocol/codex-acp
base: v2.7.0
head repository: agentclientprotocol/codex-acp
compare: v2.8.0
- 9 commits
- 259 files changed
- 4 contributors
Commits on Nov 17, 2026
-
fix: align adapter with ACP SDK 2.7 and current protocol rules (#769)
## Summary Update the adapter from ACP SDK 2.6.x to 2.7.0 (schemas 1.32.0 / 2.0.0-alpha.16) and align existing features with the latest protocol clarifications. The review covered the full ACP repository change range from `0849001ca66fb975fc01111ddab9093bc8304e98` (the previous schema baseline) through `6faa3d9f74e94da307ed89f521416a9fb3b99bf9`, including stable/draft guides, RFDs, Rust models, and all four JSON schemas. The TypeScript SDK already contains the published schema changes and needs no additional source changes for this target. ## Compatibility fixes - End v2 resume history with `replay_complete` on the root and every announced child, including empty histories. A child first discovered in live traffic during setup gets its announcement before its own empty replay boundary. - Hold live updates, current-state snapshots, metadata/config updates, and client interactions outside replayed history. Use a scoped async history context at the v2 send boundary so concurrent live producers and the separate session-info serializer follow the same rule. - Do not mark failed or cancelled history complete. Keep session activation tied to the successful setup response, not the replay boundary. - Report missing child history as a live v2 notice after the boundary rather than inserting a synthetic thought into history. Preserve v1's existing advisory behavior. - Leave repeated inter-session messages unlinked when recipient/text matching is ambiguous instead of guessing the sender view. Preserve existing known-session references and lost-observability behavior. - Use the `speed` category for the existing fast-mode control. Preserve Codex's model-advertised reasoning-effort order, including advanced and provider-defined values, rather than imposing an incomplete global ranking. - Handle the newly exposed fork `configOptions` field consistently with new/resume. The adapter does not implement or advertise `session.options`, so it does not apply initial values. - Keep typed skill invocation unadvertised and reject skill blocks before prompt insertion. Narrow command consumers using the SDK guard and handle the newly known session-update variant exhaustively. - Add repeated-logout coverage and update plan/subagent documentation and client-visible snapshots. ## Scope This preserves existing features; it does not enable session cursors, typed skill invocation, standard prompt suggestions, session options, or idempotency keys. The existing AIR prompt-suggestion extension remains unchanged. The temporary compatibility-review document is not included. ## Validation - `npm run typecheck` — passed. - `npm run build` — passed. - `npm test` — 2,526 passed, 39 skipped; final run without snapshot-update mode. - `git diff --check` — passed. - TypeScript SDK checkout: `npm run check` — passed, including generated-file checks, lint, formatting, spelling, typecheck, build, package checks, 657 tests, and four TypeDoc entrypoints. - Real Codex: no-tool prompt through the `codex-test` skill completed with `end_turn`. - Real v2 stdio smoke: create session, insert a no-tool prompt, wait for idle, and resume with full replay. Raw wire frames retained the inserted message ID, contained exactly one replay boundary, placed current state after the boundary, and placed the response last. Not run: the full integration/opt-in E2E suites, cross-platform executable bundles, or Rust checks. The separate Rust runtime SDK is not part of this change.
Configuration menu - View commit details
-
Copy full SHA for 887aab6 - Browse repository at this point
Copy the full SHA 887aab6View commit details -
feat: support MCP-over-ACP in the Codex adapter (#771)
## Summary Support [MCP-over-ACP](https://agentclientprotocol.com/rfds/mcp-over-acp.md) on ACP v1 and v2. Clients can declare a `type: "acp"` server at session setup and serve tools on their existing connection. Codex accepts MCP URLs, not ACP registrations, so the adapter uses the ACP SDK's authenticated loopback HTTP bridge. Its listener and credentials belong to the ACP connection, not an individual session. The adapter redacts the bearer header from its outgoing app-server trace. ## Compatibility - Advertise the transport only if the running Codex binary lists `mcp_2026_07_28`. Enable that feature only for threads that actually use a bridged server: the bridge requires modern discovery and does not accept the legacy `initialize` handshake. - Existing stdio and HTTP servers can coexist with ACP registrations. Discovery mode is thread-wide, so legacy HTTP servers may see `server/discover` before Codex falls back to `initialize`. - Preserve servers from `CODEX_CONFIG` when adding registrations. Resolve name conflicts before opening endpoints, including when a server URL uses a dotted config key. ## Verification - `npm run typecheck` and `npm run build` - `npm test` — 2,532 passed, 39 skipped - `npm run test:integration` — 21 passed. Real bundled Codex 0.166.0 discovers and calls a client tool in a session with legacy HTTP and stdio servers, on both ACP versions. The tests also check request-scoped progress, MCP errors, bearer authentication, and listener lifetime. - `npm run bundle:all` — all six platform binaries built No live model or API key is required by the new tests. The separate live-model E2E suite was not run.
Configuration menu - View commit details
-
Copy full SHA for b9503ae - Browse repository at this point
Copy the full SHA b9503aeView commit details
Commits on Nov 18, 2026
-
fix: align adapter with ACP SDK 2.8 and current protocol rules (#775)
## Summary Update `@agentclientprotocol/sdk` from 2.7.0 to 2.8.0 (ACP schemas v1.33.0 and v2.0.0-alpha.17) and align existing adapter behavior with the [full protocol diff since the previous schema release](agentclientprotocol/agent-client-protocol@13b7658...dbff792), including the later v2 documentation clarifications. - Implement v2 `session/prompt` idempotency. Concurrent retries share one insertion outcome. A session-scoped derived message ID lets the adapter recover retained receipts from Codex history after a restart without storing the raw key. The integration test verifies no duplicate model call after restart and no key inheritance across forks. - Prime each chunked replay field before appending. Keep recorded child outcomes on historical parent `subagent_update` notifications, not live child completions. Reject restricted child requests with `-32602` in both versions. - Publish the current state of a non-idle new v2 session after the response. Stop waiting for abandoned foreground elicitations, omit string `pattern` on v2 forms, prevent tool-call status regressions, and check that emitted diffs have at least one change. - Reject unsupported fork cursors instead of doing a full fork. Use the v2 request fallback to return `-32601` for unimplemented methods: published SDK 2.8.0 otherwise returns `-32602` for unimplemented tool and terminal cancellation. This PR does not depend on an unpublished SDK fix. Session cursor issuance, standard background reporting and per-item cancel controls, and plan removal are intentionally out of scope. ## Verification - `npm run typecheck`, `npm run build`, and all six targets via `npm run bundle:all` - `npm test`: 2,550 passed, 39 skipped - `npm run test:integration`: 22 passed, including real Codex against a local mock model endpoint for the restart and retry test - Live no-tool Codex smoke prompt completed with `end_turn`. The opt-in live-model E2E suite was not run. - `git diff --check`
Configuration menu - View commit details
-
Copy full SHA for 0a17129 - Browse repository at this point
Copy the full SHA 0a17129View commit details
Commits on Nov 19, 2026
-
fix: avoid stack overflow when snapshotting deeply nested JSON (#742)
I maintain the [nixpkg](https://github.com/NixOS/nixpkgs/blob/1a04a224938e97a7a4d4d5bfb36a4099f9c6ab21/pkgs/by-name/co/codex-acp/package.nix#L65) of codex-acp, and I'm trying to [upgrade](NixOS/nixpkgs#582790) from v2.1.1 to v2.5.0. Linux x86-64 builds are currently failing for a few reasons, which I plan to file PRs to fix here upstream. From Codex: > On Node 24.21.0 on Linux, `JSON.stringify` successfully serializes the > existing 4,000-level nested test value, while `jsonSnapshot` throws > `RangeError: Maximum call stack size exceeded`. This also reproduces > outside Vitest. > > The snapshot walk recursively descends 256 levels before delegating to > native serialization, leaving hundreds of calls on the stack. Replace > that recursion with an explicit container stack, preserving getter order, > serialization behavior, and snapshot reuse. > > The original 4,000-level regression test now passes without reducing its > depth or increasing Node's stack limit. Typechecking and compilation pass; > the full test suite reports 2,481 passed and 39 skipped. Related to #741
Configuration menu - View commit details
-
Copy full SHA for 06425cc - Browse repository at this point
Copy the full SHA 06425ccView commit details -
feat: report ACP v2 background work and cancel individual terminals (#…
…777) ## Summary - Report detached child sessions and live background terminals in ACP v2 `state_update.background`. Resume reannounces listed entities before the current-state snapshot. `session/cancel` leaves listed work and its pending interactions alone; `session/close` still stops it. An explicitly waited-on child is foreground work while the wait is pending. - Implement `terminal/cancel` for independently stoppable background processes. Resolve the process handle from the terminal and its owning ACP session, not from the client. Announce the exit and clear the terminal's cancel capability before removing it from the list. Cancelling a terminal does not interrupt the turn or stop any other terminal. Codex's process inventory includes foreground commands, so discovery waits until a process has outlived its turn. - Map an explicit empty Codex checklist to an empty `items` update followed by `plan_removed` on v2. Keep the existing empty checklist update on v1, including AIR. Do not infer removal from turn completion or apply it to Markdown plans. AIR retains its private subagent routing and `_session/async_task/stop`. On v2, standard terminal reporting and cancellation coexist with the private extension. The shared inventory now survives a same-connection resume, so current standard terminals are re-announced without re-sending private spawn events for already-known tasks. Session cursors and generic `tool_call/cancel` are out of scope. Codex does not expose an independent stop operation for arbitrary model tool calls. ## Verification - `npm test`: 2,563 passed, 39 skipped, including AIR golden snapshots and a v1 AIR checklist-clear test. - `npm run test:integration`: 23 passed. The real Codex background test starts two processes, resumes the session, cancels one terminal during an unrelated foreground turn, cancels the turn without stopping the other process, and then closes the session. - `npm run typecheck`, `npm run build`, all six `npm run bundle:all` targets, and `git diff --check` passed. - Live no-tool Codex smoke prompt completed with `end_turn`. The opt-in live-model E2E suite and the JetBrains client itself were not run.
Configuration menu - View commit details
-
Copy full SHA for 74dffa0 - Browse repository at this point
Copy the full SHA 74dffa0View commit details -
fix: put model settings first in session config options (#778)
The current ordering was pretty arbitrary. Put them in order of most used. Most clients likely anchor these based on category anyway, but if not, this ordering makes more sense
Configuration menu - View commit details
-
Copy full SHA for 3645fab - Browse repository at this point
Copy the full SHA 3645fabView commit details -
ci: fix Codex Update on Ubuntu 26.04 (#779)
## Summary The [scheduled Codex update](https://github.com/agentclientprotocol/codex-acp/actions/runs/44316562515) installs Codex and regenerates the app-server types, then fails before pushing a branch or opening a PR. On Ubuntu 26.04, `codex-action` v1.13's `drop-sudo` probe incorrectly reports that the runner can still write to the D-Bus socket after its access has been denied. Pin `openai/codex-action` to v1.14, which includes the [upstream fix](openai/codex-action#192). This keeps the existing runner and privilege restrictions in place. ## Validation - `actionlint .github/workflows/codex-update.yml` and `git diff --check` passed locally. - Upstream's fix passed its Ubuntu 26.04 verification. After merging, dispatch a fresh **Codex Update** run on `main` to confirm that it opens the dependency update PR.
Configuration menu - View commit details
-
Copy full SHA for 298b77e - Browse repository at this point
Copy the full SHA 298b77eView commit details -
fix: update codex to 0.170.0 (#780)
[What's new](https://github.com/openai/codex/releases/tag/rust-v0.170.0) - Native input replay failed because it assumed audio always had a URL. Replay now handles saved audio file IDs the same way it handles image file IDs. - Paginated history failed because its snapshot lacked the new `moderation` field. I updated the snapshot and added the required nullable `moderation` and `userId` fields to test fixtures. - The event handler now explicitly ignores `thread/section/changed` because ACP has no corresponding session update. - The mock Responses API tests failed because the sandbox denied localhost socket binding. Three app-server supervisor tests failed because their child processes exited before delivering the expected output. Those tests were left unchanged. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 77b12a1 - Browse repository at this point
Copy the full SHA 77b12a1View commit details -
chore(main): release 2.8.0 (#770)
🤖 I have created a release *beep* *boop* --- ## [2.8.0](v2.7.0...v2.8.0) (2026-11-19) ### Features * report ACP v2 background work and cancel individual terminals ([#777](#777)) ([74dffa0](74dffa0)) * support MCP-over-ACP in the Codex adapter ([#771](#771)) ([b9503ae](b9503ae)) ### Bug Fixes * align adapter with ACP SDK 2.7 and current protocol rules ([#769](#769)) ([887aab6](887aab6)) * align adapter with ACP SDK 2.8 and current protocol rules ([#775](#775)) ([0a17129](0a17129)) * avoid stack overflow when snapshotting deeply nested JSON ([#742](#742)) ([06425cc](06425cc)) * put model settings first in session config options ([#778](#778)) ([3645fab](3645fab)) * update codex to 0.170.0 ([#780](#780)) ([77b12a1](77b12a1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: acp-release-bot[bot] <246668977+acp-release-bot[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for ad09e0e - Browse repository at this point
Copy the full SHA ad09e0eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v2.7.0...v2.8.0