fix(studio): make sdk cutover transactional (#2155)

This commit is contained in:
James Russo
2026-07-15 10:29:22 -04:00
committed by GitHub
parent 7d21cc9b8a
commit 42055296ee
45 changed files with 2481 additions and 654 deletions
+4 -2
View File
@@ -227,8 +227,10 @@ function foldElementPatches(
/**
* The single commit owner for element patch batches. All files are resolved,
* read, and folded before the first write; any unmatched target refuses the
* whole request. The final snapshots/writes are synchronous, so another route
* cannot interleave once the commit section begins.
* whole request. Studio Server is intentionally single-process; within that
* process the final snapshots/writes are synchronous, so another route cannot
* interleave once the commit section begins. A multi-process deployment must
* replace this process-local guarantee with a shared per-project file lock.
*/
export function commitElementPatchBatches(
projectDir: string,