Repository navigation
Still targets ACP schema 1.32.0 (acp.SchemaVersion = "1.32.0"). No API break: one new exported field (CreateElicitationOther.AdditionalProperties), plus two behavior fixes that align decoding with the Rust SDK, a quieter log level for unhandled notifications, and a reference session/load implementation in example/agent.
Added
CreateElicitationOther.AdditionalProperties map[string]json.RawMessagepreserves members that the schema of theothermode ofelicitation/createdoes not name, and writes them back on encode. Previously a proxy or logger that round-tripped an unknown elicitation mode dropped extras like{"extra":{"k":1}}(#114, fixes #102).
Fixed
- Decoding at properties marked
x-deserialize-default-on-errororx-deserialize-skip-invalid-itemsnow checks each hinted value against its schema shape. A value that misses a required member, holds an unknown closed-enum value, or holdsnullwhere the schema rejects it now reads as the default or is dropped, matchingagent-client-protocol-schema1.18.0. Before, such values were kept with zero fields — e.g.{"sessions":[{"sessionId":"s"}]}kept aSessionInfowith an emptycwd, and plan entries with unknownprioritywere kept (#113, fixes #96).
Changed
- Unhandled notifications (an unknown method, or an optional interface such as
ClientUnstableAuthStatusUpdatethat you do not implement) are now logged at DEBUG asignored unhandled notification, not ERROR. Decode failures (-32602) and handler errors still log at ERROR, and requests still answer-32601. This silences one ERROR per Claude Code session for clients that don't implementauth/status_update(#110). example/agentnow advertisesloadSession: trueand implementssession/loadas a reference: it replays the session's prompts and priorsession/updatenotifications before responding, accepts a newsystemPrompt(applied only after a successful replay), refuses an unknown session with-32002(withsessionIdindata), and refuses a mismatchedcwdwith-32602. Notices are not replayed, and tool call IDs stay unique across turns. The README documents the new lock order (#112).
Performance
- The new shape check parses each hinted value a second time. With
-cpu 1, decoding messages heavy in hinted values takes 15–34% longer (geomean +18%); text chunks are unchanged. SeeBenchmarkUnmarshalJSON_HintedValues(#113).
Full Changelog: v0.18.0...v0.19.0