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.
This commit is contained in:
parent
5a9bb3a70e
commit
12ed306efb
|
|
@ -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 ─────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Reference in New Issue