Skip to content

Claude Code v2.1.212: Zod schema fix, new Agent SDK fields (session_id, task_budget, remote isolation) #445

Description

@claude-yolo

WHY users should care

Zod users: your structured output code may be silently broken. The SDK now validates against JSON Schema draft-07, but Zod defaults to draft-2019-09 — rejected at runtime. Fix: add { target: 'draft-7' } to z.toJSONSchema().

Whats new

  • session_id on ClaudeAgentOptions (Python) — deterministic session tracking
  • task_budget on ClaudeAgentOptions (Python) — API-side token budget control
  • load_timeout_ms on ClaudeAgentOptions (Python) — timeout for session resume
  • remote isolation mode in TypeScript AgentInput.isolation — alongside existing worktree
  • Structured output: success with no structured_output must be treated as failure (now documented)
  • Sub-agents docs clarify what non-fork subagents dont inherit (output styles, auto memory, parent context window)

Reference

PR: thevibeworks/claude-code-yolo-docs#1062 (fetch-docs night shift 2026-07-17)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions