diff --git a/src/components/ToastTextToCad.tsx b/src/components/ToastTextToCad.tsx index 52687996e..e9eedb478 100644 --- a/src/components/ToastTextToCad.tsx +++ b/src/components/ToastTextToCad.tsx @@ -470,6 +470,17 @@ export function ToastPromptToEditCadSuccess({ onClick={() => { sendTelemetry(modelId, 'accepted', token).catch(reportRejection) toast.dismiss(toastId) + + // Write new content to disk since they have accepted. + codeManager + .writeToFile() + .then(() => { + // no-op + }) + .catch((e) => { + console.error('Failed to save prompt-to-edit to disk') + console.error(e) + }) }} > Accept