File-backed snapshots for large-file edit timeline entries.
When a file exceeds the :agent_diff_size_threshold config, entry post-image
content is written to temp files instead of held in memory. Temp files are cleaned
up when the edit timeline is reset or the session ends.
Summary
Functions
Cleans up temp files for file-backed snapshots.
Returns the raw content from a snapshot.
Creates a snapshot from file content. If the content exceeds the threshold, writes it to a temp file. Otherwise, keeps it in memory.
Types
Functions
@spec cleanup(t()) :: :ok
Cleans up temp files for file-backed snapshots.
Returns the raw content from a snapshot.
Creates a snapshot from file content. If the content exceeds the threshold, writes it to a temp file. Otherwise, keeps it in memory.