Repository navigation
feat(schema)!: bump ACP v1 schema to 1.35.0 - #202
Conversation
|
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 ( We have run it in a downstream project against |
|
1.35.0 is out, mind bumping to it directly? |
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>
66bc007 to
ecf1f28
Compare
|
Done: bumped to 1.35.0 and rebased on Two things changed besides the regeneration:
|
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, sosystemPromptonsession/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, nomcp/connectormcp/disconnect), so this bump needs #193. This branch carries #193's commit, rebased onmainwith 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:
system_promptandconfig_optionstonew_session,load_session,resume_sessionandfork_session, pluscursor_idon fork andarchivedonlist_sessions. But the hand-written bodies never passed them to the request models, so they were silently dropped. New tests: a wire test thatsystem_promptreaches the agent, and an AST test that every sender uses all its parameters. Both fail when one sender's field is removed again.archive_session,unarchive_session,session_status,session_options,set_session_titleandauth_statuson the agent, and theauth_status_updatenotification on the client. Each has a round-trip test and a row in the quickstart table. The names followdelete_sessionandclose_session; happy to rename.db2116ef, "fix(unstable): remove next edit suggestions (#2266)").filevariant ofPlanUpdateContent, and the positionalvariant_model_mapthen named themarkdownvariantPlanUpdateFile. The map now reads("PlanUpdateItems", "PlanUpdateMarkdown"). Also drops the staleNesSuggestionmap, which removes the--model-name-mapwarnings.ToolCallLocation.linefor the default-on-error salvage (1.33 removed the marker fromReadTextFileRequest.line), andStringPropertySchema.formatfor inline literal values (it replacesSuggestNesRequest.trigger_kind).sessionIdandtoolCallIdonmcp/message. Both are optional. The signature generator added them, and the hand-written sender now passes them;test_mcp_requests_and_notifications_share_methodsends both.session/new'smcpServersno longer carriesx-deserialize-skip-invalid-items(onlyx-deserialize-default-on-null). So a malformed MCP server is a validation error, not skipped.test_new_session_request_rejects_untagged_mcp_server_instancenow expects that.Breaking changes
start_nes,suggest_nes,close_nes,accept_nes,reject_nes,did_open,did_change,did_close,did_save,did_focus.PlanUpdateFileis gone with the schema'sfileplan update.session/new'smcpServersnow raises instead of being skipped (schema change since 1.33).mcp_messageandnotify_mcptakeserver_idandrequest_id, andconnect_mcpanddisconnect_mcpare removed.Testing
Each step of
make checkandmake test, run locally on Python 3.13, rebased onmainat1f9db54:uv lock --locked: okruff check .andruff format --check .: cleanty check(same excludes as the Makefile): cleandeptry src: no issuespython -m pytest --doctest-modules: 634 passed, 1 skippedmake gen-check(scripts.gen_schema --check,scripts.gen_meta --check): cleanAt 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
systemPromptinappendoroverridemode 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
feat:,fix:).make gen-all) are called out if applicable.AI-assisted contribution by Claude Code (Claude Opus 5.5).
🤖 Generated with Claude Code