Stream changed local audio into the workspace

This commit is contained in:
2026-12-01 20:28:58 +00:00
parent 59813b72fa
commit d70bf98871
3 changed files with 77 additions and 8 deletions

View File

@@ -652,14 +652,7 @@ func copyFileIfChanged(store artifacts.Store, src, dst string) (string, error) {
}
}
data, err := os.ReadFile(src)
if err != nil {
return "", err
}
if err := store.WriteFileAtomic(dst, data, fileops.WorkspaceFileMode); err != nil {
return "", err
}
return srcChecksum, nil
return fileops.CopyFileAtomicWithChecksum(src, dst, fileops.WorkspaceFileMode)
}
func writeBytesIfChanged(store artifacts.Store, dst string, data []byte) (string, error) {