Repository navigation
fix: align adapter with ACP SDK 2.7 and current protocol rules - #769
Merged
Merged
Conversation
nyssance
added a commit
to nyssance/codex-acp
that referenced
this pull request
Nov 18, 2026
…otocol#769, agentclientprotocol#771) Adopt upstream's MCP-over-ACP and drop the fork's own endpoint (AcpMcpEndpoint and the @modelcontextprotocol/server dependency): Codex now reaches `type: "acp"` servers through the ACP SDK's authenticated loopback bridge, the transport is advertised only when the Codex binary implements mcp_2026_07_28, and that feature is enabled for threads that use a bridged server. The wire contract for clients is unchanged. Fork-specific parts kept: the session-open wrapper on v2 resume and fork (now passing the resume signal), the responses routes and provider catalog in the session config (now built from the expanded overrides), and the SDK 2.8.0 pin. Parameter properties in upstream code become plain fields because this repository enables erasableSyntaxOnly. Snapshots follow upstream's replay boundaries: current state comes after replay_complete, and announced children end their history with it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
benbrandt
pushed a commit
that referenced
this pull request
Nov 19, 2026
🤖 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>
mrmans0n
added a commit
to mrmans0n/codex-acp
that referenced
this pull request
Nov 19, 2026
Upstream v2.8.0 (agentclientprotocol#780) updates Codex to 0.170.0, whose regenerated GetAccountResponse requires `userId`; upstream updated every getAccount mock in its tests to `{account: null, userId: null, ...}`. fdcc23c replays cleanly, but its fork point test in session-fork.test.ts still mocks getAccount without `userId`, so `npm run typecheck` fails (TS2741) on the candidate. The adaptation adds `userId: null` to that mock, like upstream's other fork tests. Every other added and removed line is identical to fdcc23c (originally fc9a61e). Upstream's fork changes in v2.8.0 do not touch the fork point contract: agentclientprotocol#775 rejects a fork at an ACP session cursor before the patch checks the neutral _meta fork point, and agentclientprotocol#769 makes forkSessionV2 ignore initial configOptions. resolveForkTurnId and the forkPoint metadata are unchanged.
mrmans0n
added a commit
to mrmans0n/codex-acp
that referenced
this pull request
Nov 19, 2026
Upstream v2.8.0 (agentclientprotocol#775) renames the initialize-v2 test that follows 3f96716's v2 test to "still routes a v1 initialize to the v1 chain", so the pick conflicted on that context line only. The adaptation keeps the patch's test before upstream's renamed test; its sorted added and removed lines are identical to 3f96716 (originally 2a1384e). Upstream v2.8.0 does not change SessionFailureIds, the event handler's failure and notice reports, SessionFailureExtension or the session failure format in ClientCapabilities. Its new notice for missing child history (agentclientprotocol#769) is sent only on ACP v2; v1 keeps the advisory thought, so the ACP v1 _meta.sessionFailure records keep their contract.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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) through6faa3d9f74e94da307ed89f521416a9fb3b99bf9, 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
replay_completeon 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.speedcategory 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.configOptionsfield consistently with new/resume. The adapter does not implement or advertisesession.options, so it does not apply initial values.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.npm run check— passed, including generated-file checks, lint, formatting, spelling, typecheck, build, package checks, 657 tests, and four TypeDoc entrypoints.codex-testskill completed withend_turn.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.