claude-agent-sdk-typescript v0.3.331
- Source
- github.com
- Author
- claude-code-publisher[bot]Top Viber
- Date

Context
The most consequential fix in this release of Anthropic's TypeScript SDK affects `rewindFiles()`, the call that undoes an agent's changes. When a developer turns on file checkpointing, the SDK backs up each file before the agent's Write, Edit or NotebookEdit tools change it, and every becomes a restore point. Rewinding to a restore point does two things: it restores the files the agent modified and deletes the files the agent created. Changes made through commands and by subagents are mostly not tracked, so a rewind does not reverse them.
According to the v0.3.331 release notes, earlier versions of `rewindFiles()` could go on deleting files after a restore had failed. A failed rewind could therefore still remove files, even though the project had not been returned to its checkpoint. The release fixes that. It also makes `rewindFiles()` refuse to run when an organization's managed settings set `fileCheckpointingEnabled` to false. Managed settings are policies an organization deploys to its developers' machines, and they override anything set in personal or project settings. Applications built on the SDK that call rewind in such an environment now get a refusal instead of a rewind.
- Agent — A system in which a model repeatedly chooses operations, a harness carries them out, and the results return to the model to inform its next choice.
- File — A named unit of stored data that keeps its contents while no program is using it.
- Prompt — Information or instructions supplied to a model; in a chat, the request you type is often called your prompt.
- Terminal and shell — A text interface for navigating files and running programs.
Checking sign-in…
Loading comments…






