Skip to content

Write HTML. Render video. Built for agents.

chore(studio): trim comments to the ratchet

Vance Ingalls2d690968ccb5
diff --git a/packages/studio/src/hooks/useDomEditCommitsHelpers.ts b/packages/studio/src/hooks/useDomEditCommitsHelpers.ts
index e9db2c69ef..19eeb06995 100644
--- a/packages/studio/src/hooks/useDomEditCommitsHelpers.ts
+++ b/packages/studio/src/hooks/useDomEditCommitsHelpers.ts
@@ -198,7 +198,6 @@ export async function postPatchElement(
return (await response.json()) as PatchElementResponse;
}
-/** Writes `prepare`'s embellishment over the server's patch; returns what the file ends up holding. */
export async function writePreparedContent(
targetPath: string,
patchedContent: string,
@@ -212,7 +211,6 @@ export async function writePreparedContent(
await writeProjectFile(targetPath, preparedContent, patchedContent);
return preparedContent;
} catch (error) {
- // The patch already landed on disk; keep it rather than revert a committed change.
showToast(
`Saved, but couldn't finish updating ${targetPath}: ${getErrorDetail(error)}`,
"error",
diff --git a/packages/studio/src/hooks/useDomEditPersist.ts b/packages/studio/src/hooks/useDomEditPersist.ts
index cdbb5f7255..76395c6c70 100644
--- a/packages/studio/src/hooks/useDomEditPersist.ts
+++ b/packages/studio/src/hooks/useDomEditPersist.ts
@@ -112,9 +112,8 @@ export function useDomEditPersist({
});
}
- // An imported font or a prepareContent takes the server patch: the server writes the @font-face
- // with the edit and prepareContent embellishes the patched file, while the SDK serializes only
- // the patched DOM. The SDK re-reads in the file queue; this read is its fallback.
+ // An imported font or prepareContent takes the server patch; the SDK serializes only the patched
+ // DOM. The SDK re-reads in the file queue; this read is its fallback.
if (onTrySdkPersist && !font && !options?.prepareContent) {
const originalContent = await readTarget();
if (originalContent === null) return;