Skip to content

feat: update to schema v1.30.0 and v2.0.0-alpha.14 - #337

Merged
benbrandt merged 1 commit into
mainfrom
feat/schema-v1.30.0
Nov 9, 2026
Merged

benbrandt merged 1 commit into
mainfrom
feat/schema-v1.30.0

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Updates the bindings to schema v1.30.0 and v2.0.0-alpha.14.

Schema changes

  • Client-provided system prompts are stable in v1 and v2 (agent-client-protocol#2765). The stable entrypoints now export SystemPrompt, SystemPromptMode and the SessionSystemPrompt*Capabilities types, and accept systemPrompt on session/new, session/load (v1) and session/resume. systemPrompt on session/fork stays unstable.
  • The validators keep the schema's rules. systemPrompt on requests is strict, so a malformed value fails with -32602 instead of creating a session without the prompt, and null means omitted. A malformed systemPrompt capability means no support.

Docs

  • MIGRATION_STABLE_UNSTABLE.md used SystemPrompt as its example of an unstable-only import. It now uses ForkSessionRequest, and the bullet covers only session/fork.
  • The v2 package docs no longer call systemPrompt unstable.
  • ActiveSession.cancelToolCall / cancelTerminal: a subagent's tool calls and terminals are reported in its child session. They are cancelled through ClientContext.request with the child's sessionId, enabled by the item's own capabilities.cancel (agent-client-protocol#2767).

Checked, no change needed

  • v2 background work: known follow-up work is reported with the removal (agent-client-protocol#2745). No SDK helper relied on the old rule.
  • Migration checklist plan literal and the session/set_mode link fixes. Neither is copied in this repo.

Tests

New v1 and v2 tests for the stable systemPrompt validators. npm run check passes.

Regenerate the v1 and v2 bindings. Client-provided system prompts are
stable: the stable v1 and v2 entrypoints now export `SystemPrompt`,
`SystemPromptMode`, and the `SessionSystemPrompt*Capabilities` types, and
accept `systemPrompt` on `session/new`, `session/load` (v1), and
`session/resume`. `systemPrompt` on `session/fork` still requires the
unstable entrypoint. Request fields stay strict, so a malformed prompt
fails with `-32602`. A malformed capability means no support.

- MIGRATION_STABLE_UNSTABLE.md uses `ForkSessionRequest` as its
  unstable-only import example and limits the `systemPrompt` bullet to
  `session/fork`.
- The v2 package docs no longer call `systemPrompt` unstable.
- `ActiveSession.cancelToolCall` and `cancelTerminal` document that a
  subagent's tool calls and terminals are cancelled with the child's
  `sessionId`, enabled by the item's own `capabilities.cancel`.
- Add v1 and v2 tests for the stable `systemPrompt` validators.

Co-Authored-By: Claude <noreply@anthropic.com>
@benbrandt
benbrandt merged commit 358de29 into main Nov 9, 2026
6 checks passed
@benbrandt
benbrandt deleted the feat/schema-v1.30.0 branch November 9, 2026 12:19
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.

1 participant