From 12ed306efb7a8bce4f34fddd2ab6c5301066d7a1 Mon Sep 17 00:00:00 2001 From: David Montero Date: Wed, 17 Jun 2026 22:52:40 +0200 Subject: [PATCH] fix(editor): keep Circuit check findings when a Run auto-compiles handleCompile() wiped all logs at the start, including the 'Circuit check' group the pre-flight verifier had just logged (e.g. an over-voltage warning). A Run auto-compiles right after verification, so the warning vanished. Preserve circuit-check entries on compile, same as the boardless path already did. --- frontend/src/components/editor/EditorToolbar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/editor/EditorToolbar.tsx b/frontend/src/components/editor/EditorToolbar.tsx index 00880183..e380f9f1 100644 --- a/frontend/src/components/editor/EditorToolbar.tsx +++ b/frontend/src/components/editor/EditorToolbar.tsx @@ -432,7 +432,10 @@ export const EditorToolbar = ({ // Wipe the previous build's output before we append anything new. // Issue #209: lingering logs from prior compiles made it impossible // to tell the latest errors / warnings apart from stale ones. - setCompileLogs([]); + // Keep the "Circuit check" findings, though: a Run auto-compiles right + // after the pre-flight verification logs them, and clearing here would + // wipe a circuit warning the user just triggered. + setCompileLogs((prev) => prev.filter((l) => l.target?.id === CIRCUIT_CHECK_TARGET.id)); trackCompileCode(); // ── Custom-chip preparation ─────────────────────────────────────────