pub fn write_diff_backup_with_workspace(
workspace: &dyn Workspace,
diff_content: &str,
) -> Result<PathBuf>Expand description
Write oversized diff content to a backup file.
When a diff exceeds the inline size limit, this function writes it
to .agent/DIFF.backup so agents can read it if needed.
§Arguments
workspace- Workspace for file operationsdiff_content- The diff content to write
§Returns
Returns Ok(PathBuf) with the backup path on success, or an error.
§Errors
Returns error if the operation fails.