Skip to content

fix: omit deprecated enable_diff_snapshots parameter#191

Closed
claude-claude[bot] wants to merge 1 commit intodiff-snapshotfrom
claude/fix-21343191949
Closed

fix: omit deprecated enable_diff_snapshots parameter#191
claude-claude[bot] wants to merge 1 commit intodiff-snapshotfrom
claude/fix-21343191949

Conversation

@claude-claude
Copy link
Copy Markdown
Contributor

@claude-claude claude-claude bot commented Jan 26, 2026

Auto-Fix for PR #188

Issues Fixed

  • [MEDIUM] Changed enable_diff_snapshots: Some(false) to enable_diff_snapshots: None to completely omit the deprecated Firecracker parameter from API requests

Changes

Updated restore_from_snapshot() in src/commands/common.rs:

  • Changed enable_diff_snapshots: Some(false) to enable_diff_snapshots: None
  • Updated comment to clarify we're omitting the parameter entirely rather than setting it to false

Why This Matters

The struct has #[serde(skip_serializing_if = "Option::is_none")], so None values aren't sent in the API request at all. This is cleaner than explicitly sending false for a deprecated parameter and avoids any interaction with the deprecated Firecracker API.


Generated by Claude | Review Run

Change enable_diff_snapshots from Some(false) to None to completely
omit the deprecated Firecracker parameter from the API request.

The struct has #[serde(skip_serializing_if = "Option::is_none")], so
None values aren't sent in the API request at all. This is cleaner than
explicitly sending false for a deprecated parameter.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@ejc3
Copy link
Copy Markdown
Owner

ejc3 commented Jan 26, 2026

Closing: base branch (diff-snapshot) has been merged to main

@ejc3 ejc3 closed this Jan 26, 2026
@ejc3 ejc3 deleted the claude/fix-21343191949 branch February 8, 2026 18:28
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