Skip to content

Conversation

@noahzweben
Copy link
Collaborator

Summary

  • Add enable_file_checkpointing option to ClaudeAgentOptions
  • Add rewind_files(user_message_id) method to ClaudeSDKClient and Query
  • Add SDKControlRewindFilesRequest type for the control protocol
  • Set CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING env var when enabled

This adds Python SDK support for the file rewind feature from claude-cli-internal PR #11265.

Test plan

  • Verified imports work correctly
  • Verified linting passes (ruff check)
  • Verified existing tests still pass (106 passed, pre-existing failures unrelated to this change)

🤖 Generated with Claude Code

Add support for the file rewind feature from claude-cli-internal PR #11265:

- Add `enable_file_checkpointing` option to ClaudeAgentOptions
- Add `rewind_files(user_message_id)` method to ClaudeSDKClient
- Add `SDKControlRewindFilesRequest` type for the control protocol
- Set `CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING` env var when enabled

This allows SDK users to enable file checkpointing and rewind tracked
files to their state at any previous user message during a session.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@noahzweben noahzweben requested review from ashwin-ant and dltn December 8, 2025 20:58
ashwin-ant
ashwin-ant previously approved these changes Dec 9, 2025
Co-authored-by: Ashwin Bhat <ashwin@anthropic.com>
Co-authored-by: Ashwin Bhat <ashwin@anthropic.com>
@ashwin-ant ashwin-ant merged commit 53482d8 into main Dec 9, 2025
14 checks passed
@ashwin-ant ashwin-ant deleted the noahz/addrewind branch December 9, 2025 18:16
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.

3 participants