docs: Claude Code v2.1.212 - Agent SDK new fields, remote isolation, Zod schema fix#1062
Merged
Merged
Conversation
…Zod schema fix Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
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.
Night shift report
WHY THIS MATTERS: Today's Agent SDK docs update ships three new capabilities developers can start using immediately (
session_id,task_budget,load_timeout_msonClaudeAgentOptions), a newremoteisolation mode for TypeScript'sAgentInput, and fixes two correctness issues that silently burn users today — Zod structured-output schemas requiretarget: "draft-7"or they're rejected at runtime, and a "success" result with nostructured_outputvalue must be treated as a failure (previously undocumented edge case). The subagent docs finally spell out exactly what non-fork subagents don't inherit (output styles, auto memory, the parent context window), reducing a common source of "why doesn't my subagent respect my settings" confusion.HIGHLIGHTS:
z.toJSONSchema(schema, { target: "draft-7" })is now required — the SDK validates against draft-07 and rejects schemas declaring a newer version, which Zod produces by default. Existing code silently broke.session_idfield inClaudeAgentOptions(Python): explicitly assign a UUID session ID instead of letting the SDK generate one, useful for deterministic session tracking.task_budgetfield inClaudeAgentOptions(Python): API-side token budget sent viaoutput_config.task_budgetwith thetask-budgets-2026-03-13beta header.load_timeout_msfield inClaudeAgentOptions(Python): per-call timeout forsession_store.load()during resume materialization (default 60s).remoteisolation mode in TypeScriptAgentInput.isolation: previously only"worktree"existed;"remote"is now a valid option.subtype === "success"but nostructured_outputvalue must be handled as a failure — the updated code samples now include anelsebranch for this case.Agenttool.async forfragments wrapped inasync def main()+asyncio.run()throughout the Python SDK reference.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning