Skip to content

Commit cf24d04

Browse files
bwhitmanclaude
andauthored
amyboardweb: don't reboot the AMYboard after generating a sketch (#1068)
generate_sketch_from_prompt() auto-called restart_sketch() right after loading the generated code. In control mode that sends zB1 — a full board reboot (with the "Restarting…" modal) — which the user never asked for. Just load the generated code into the editor and leave the board alone. The user hits "Write to your AMYboard" when they're ready. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 7558c43 commit cf24d04

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

tulip/amyboardweb/static/spss.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2878,13 +2878,9 @@ async function generate_sketch_from_prompt() {
28782878
"Loaded into the editor." + (remaining !== null ? (" " + remaining + " left today.") : ""),
28792879
"text-success"
28802880
);
2881-
// Start the freshly generated sketch automatically, exactly as the
2882-
// "Restart Sketch" button does, so the user hears it right away.
2883-
try {
2884-
await restart_sketch();
2885-
} catch (e) {
2886-
console.warn("auto-start after generate failed:", e);
2887-
}
2881+
// Don't touch the board here — just load the code into the editor.
2882+
// Auto-restarting reboots the AMYboard (zB1), which the user didn't
2883+
// ask for. They hit "Write to your AMYboard" when they're ready.
28882884
} else {
28892885
setStatus("No sketch was returned.", "text-danger");
28902886
}

0 commit comments

Comments
 (0)