Skip to main content

Module snapshots

Module snapshots 

Source

Structs§

ActionSnapshot
A snapshot of the agent state taken before executing a single action (tool call).
CheckpointRestore
FileSnapshot
PromptCheckpointLease
Holds this session’s checkpoint lock until the complete agent turn has settled.
RollbackResult
Result of a rollback operation — describes what was undone.
SnapshotConfig
SnapshotManager
SnapshotMetadata
SnapshotSkippedPath
One workspace path a checkpoint could not snapshot.
SnapshotSkippedPaths
Paths a checkpoint left out. The turn proceeds anyway; rewind surfaces this so a restore never silently claims completeness it does not have.
SnapshotTurnContext
SnapshotTurnDiagnostics
StoredSnapshot

Enums§

BeginPromptFailure
Why a turn-start checkpoint could not be taken.
FileEncoding
RevertScope

Constants§

DEFAULT_CHECKPOINTS_ENABLED
DEFAULT_MAX_AGE_DAYS
DEFAULT_MAX_SNAPSHOTS
REWIND_ACTIVE_KEEP
How many newest active turns a finished session keeps pinned for rewind. Older entries are dropped on thread completion so their snapshots become prune-eligible instead of sitting protected for the full age window.

Functions§

checkpoint_failure_is_recoverable
Whether a turn may proceed without its start-of-turn checkpoint.
classify_begin_prompt_error
Classify a begin_prompt failure from its full error chain.
declare_prompt_edit
Capture final local write arguments after host hook rewriting and before tool execution.