Skip to content

feat(schema)!: bump ACP v1 schema to 1.35.0 - #202

Merged
frostming merged 2 commits into
agentclientprotocol:mainfrom
raymondfeng:feat/schema-1.33
Nov 25, 2026
Merged

frostming merged 2 commits into
agentclientprotocol:mainfrom
raymondfeng:feat/schema-1.33

Conversation

@raymondfeng

@raymondfeng raymondfeng commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Regenerates the v1 bindings from schema-v1.35.0 (make gen-all). (It was 1.33.0 until 2026-11-25; bumped to 1.35.0 on request.) The SDK is on 1.23.0 today, so systemPrompt on session/new (stable v1) cannot be sent.

This builds on #193 by @xelandernt and should merge after it. 1.33 and later use the stateless MCP-over-ACP shape (serverId + requestId, no mcp/connect or mcp/disconnect), so this bump needs #193. This branch carries #193's commit, rebased on main with its author kept. Only the second commit is new here. If #193 merges first, I will rebase so this PR shows only that commit.

What the second commit does:

  • Passes the new session fields to the wire. The signature generator added system_prompt and config_options to new_session, load_session, resume_session and fork_session, plus cursor_id on fork and archived on list_sessions. But the hand-written bodies never passed them to the request models, so they were silently dropped. New tests: a wire test that system_prompt reaches the agent, and an AST test that every sender uses all its parameters. Both fail when one sender's field is removed again.
  • Adds the 1.33 methods, all unstable: archive_session, unarchive_session, session_status, session_options, set_session_title and auth_status on the agent, and the auth_status_update notification on the client. Each has a round-trip test and a row in the quickstart table. The names follow delete_session and close_session; happy to rename.
  • Removes next edit suggestions and the document notifications, which the schema removed (agent-client-protocol db2116ef, "fix(unstable): remove next edit suggestions (#2266)").
  • Fixes a naming regression in the generator config. 1.33 drops the file variant of PlanUpdateContent, and the positional variant_model_map then named the markdown variant PlanUpdateFile. The map now reads ("PlanUpdateItems", "PlanUpdateMarkdown"). Also drops the stale NesSuggestion map, which removes the --model-name-map warnings.
  • Moves two tests off models the schema changed: ToolCallLocation.line for the default-on-error salvage (1.33 removed the marker from ReadTextFileRequest.line), and StringPropertySchema.format for inline literal values (it replaces SuggestNesRequest.trigger_kind).
  • 1.35: sessionId and toolCallId on mcp/message. Both are optional. The signature generator added them, and the hand-written sender now passes them; test_mcp_requests_and_notifications_share_method sends both.
  • Updates fix(schema): raise instead of silently dropping invalid local model instances #204's test for the schema. Since 1.33, session/new's mcpServers no longer carries x-deserialize-skip-invalid-items (only x-deserialize-default-on-null). So a malformed MCP server is a validation error, not skipped. test_new_session_request_rejects_untagged_mcp_server_instance now expects that.
  • Regenerates experimental v2 at its current pin (alpha.7) with the current generator. This resolves the rebase conflict and keeps v2 out of scope.

Breaking changes

  • The NES and document methods and their models are gone: start_nes, suggest_nes, close_nes, accept_nes, reject_nes, did_open, did_change, did_close, did_save, did_focus.
  • PlanUpdateFile is gone with the schema's file plan update.
  • A malformed entry in session/new's mcpServers now raises instead of being skipped (schema change since 1.33).
  • From feat(mcp)!: adopt stateless MCP-over-ACP binding #193: mcp_message and notify_mcp take server_id and request_id, and connect_mcp and disconnect_mcp are removed.

Testing

Each step of make check and make test, run locally on Python 3.13, rebased on main at 1f9db54:

  • uv lock --locked: ok
  • ruff check . and ruff format --check .: clean
  • ty check (same excludes as the Makefile): clean
  • deptry src: no issues
  • python -m pytest --doctest-modules: 634 passed, 1 skipped
  • make gen-check (scripts.gen_schema --check, scripts.gen_meta --check): clean

At 1.33, I also checked the change against the Claude Agent ACP adapter (0.108.0) and the Codex ACP adapter (2.7.0). With these bindings, a systemPrompt in append or override mode reaches the agent. Before the body fix, it was dropped.

Docs & screenshots

docs/quickstart.md: the method table lists the new methods and drops the NES and document rows. (The MCP-over-ACP docs come from #193.)

Checklist

  • Conventional Commit title (e.g. feat:, fix:).
  • Tests cover the change or are not required (explain above).
  • Docs/examples updated when behaviour is user-facing.
  • Schema regenerations (make gen-all) are called out if applicable.

AI-assisted contribution by Claude Code (Claude Opus 5.5).

🤖 Generated with Claude Code

@raymondfeng
raymondfeng marked this pull request as ready for review November 19, 2026 03:34
@raymondfeng

raymondfeng commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Marking this ready for review.

This PR regenerates the SDK from ACP schema 1.33, so clients can send the session fields added since 1.23 (systemPrompt among them). It is stacked on #193 and includes #193's commit, so the order would be #193 first, then this one.

We have run it in a downstream project against claude-agent-acp 0.108.0 and codex-acp 2.7.0: eight live checks pass on both, and 15 full builds ran on Claude through it with no protocol errors. Happy to rebase or split it if that helps review.

@frostming

Copy link
Copy Markdown
Contributor

1.35.0 is out, mind bumping to it directly?

xelandernt and others added 2 commits November 24, 2026 20:18
Regenerate the v1 bindings from schema-v1.35.0 (`make gen-all`). Builds on the
stateless MCP-over-ACP binding, which 1.33 and later require.

- Pass the new session fields to the wire. The signature generator added them to
  the senders, but the hand-written bodies dropped them: `system_prompt` and
  `config_options` on new/load/resume/fork, `cursor_id` on fork, `archived` on
  list. Add a wire test, and a test that every sender uses all its parameters.
- Add the methods 1.33 introduces, all unstable: `archive_session`,
  `unarchive_session`, `session_status`, `session_options`, `set_session_title`,
  `auth_status`, and the client notification `auth_status_update`.
- Remove next edit suggestions and the document notifications, which the schema
  removed (agent-client-protocol db2116ef, #2266).
- Name the 1.33 `PlanUpdateContent` variants by kind. The schema dropped the
  `file` variant, and the positional name map turned `markdown` into
  `PlanUpdateFile`. Drop the stale `NesSuggestion` map.
- Move two tests off models the schema changed: `ToolCallLocation.line` for the
  default-on-error salvage, `StringPropertySchema.format` for inline literals.
- 1.35 adds the optional `sessionId` and `toolCallId` to `mcp/message`: the
  sender passes them, and a test sends both.
- Since 1.33, `session/new`'s `mcpServers` is no longer
  `x-deserialize-skip-invalid-items`: a malformed server is a validation error,
  not skipped. The agentclientprotocol#204 test now says so.
- Regenerate experimental v2 at its current pin (alpha.7) with the current
  generator.

BREAKING CHANGE: the NES and document methods are gone (`start_nes`,
`suggest_nes`, `close_nes`, `accept_nes`, `reject_nes`, `did_open`, `did_change`,
`did_close`, `did_save`, `did_focus`), and so are their models.
`PlanUpdateFile` is gone with the schema's `file` plan update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@raymondfeng raymondfeng changed the title feat(schema)!: bump ACP v1 schema to 1.33.0 feat(schema)!: bump ACP v1 schema to 1.35.0 Nov 25, 2026
@raymondfeng

Copy link
Copy Markdown
Contributor Author

Done: bumped to 1.35.0 and rebased on main (1f9db54).

Two things changed besides the regeneration:

  • 1.35 adds the optional sessionId and toolCallId to mcp/message. The sender now passes them, and a test sends both.
  • The test from fix(schema): raise instead of silently dropping invalid local model instances #204, test_new_session_request_rejects_untagged_mcp_server_instance, expected a malformed MCP server in session/new to be skipped. Since 1.33 the schema marks mcpServers only x-deserialize-default-on-null, not skip-invalid-items, so the regenerated model raises instead. I changed that part of the test to expect a validation error. If you'd rather keep skipping here, it would need a schema change upstream or an override in the generator.

make check, make gen-check, and the full suite pass locally: 634 passed, 1 skipped. The branch still carries #193's commit underneath.

@frostming frostming left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@frostming
frostming merged commit 9aedba3 into agentclientprotocol:main Nov 25, 2026
9 checks passed
@PsiACE PsiACE linked an issue Nov 25, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support stateless MCP-over-ACP

3 participants