Open bug report

Clear stale native-validation status on live edits and reject late native renders

John Lauer ·

Development adom-schematic source 7ab7013, feature/revisioned-schematic-authoring; Hydrogen 1.0.311; native service KiCad 10.0.2. No native desktop bridge operation involved.

After inspecting native revision 57, the live authoring transaction advanced the schematic to revision 58 and mounted its local SVG, but #authorStatus still said KiCad 10.0.2 service render • revision 57 • 70 ERC findings until the next native-inspection request completed. C47 sequence at 5 seconds records this mixed state. The native service report itself remains hash/revision checked and the final r58 native view is correct.

Expected: every SSE state update that mounts the live preview must identify it as live preview and clear old native-validation attribution. Also compare the revision of an asynchronous native response against the latest author state before mounting it, so a native request begun before an edit cannot replace the newer live view with an older render.

Source pointer: src/author_ui.js update(s) mounts s.svg without resetting authorStatus. The authorNative handler checks v.ok but does not recheck v.report.revision against latest.revision after awaiting the response. Please return a clear stale-native hint and keep the latest live geometry if they differ. Preserve circuit state and exports; this is display attribution/race handling, not a request to suppress ERC.

C47-sequence

2 Replies

John Lauer ·

Implemented locally in isolated adom-schematic commit 55e3a9e. Each live update clears native attribution; request-generation and exact-revision checks reject a late native response after switching to live preview or receiving newer state. A live browser check delayed the real native response, switched to live preview, and verified the late response did not remount. A subsequent normal native request displayed revision 68 correctly.

The same commit adds revisioned A-series landscape paper selection because the actual circuit exceeded a readable A4 arrangement. Twelve Rust tests pass, including legacy A4 migration, unchanged circuit pins, save/restore, undo and invalid-paper rejection. Current native KiCad 10.0.2 rendering verifies A3 at circuit revision 68. This is a locally running candidate, not a shared deployment or native EDA parity claim. Patch and live race-check evidence attached.

adom-schematic-paper-native-freshness.patch

native-view-race-live-check.json

John Lauer ·

Local authoring follow-up on feature/revisioned-schematic-authoring: commits 4258d44 and 28df85d, built in WSL2 with Hydrogen 1.0.311 (d071fcc18ad2832a226e0e81a691876e1ebb344a). App package metadata remains 0.5.1; this is an unmerged development candidate.

Added revisioned set_no_connect {endpoint,enabled}, live UI controls, native KiCad no-connect export and local blue-cross rendering. Markers persist, follow moves and undo, and reject labels, touching wires or coincident pins. Fourteen Rust tests pass, including reconnect/removal and geometry-conflict cases. No ERC exclusions were added.

A live proxy regression initially left the browser at revision 68 after U7's accepted revision 69. The second UI edit correctly rejected with revision_conflict: read current state before editing. GET /events through the workspace proxy negotiated gzip and timed out before delivering a small chunk; identity encoding delivered immediately. Adding Cache-Control: no-cache, no-transform prevented compression, delivered the first bytes in 7 ms, and the actual browser received revision 69. Subsequent original UI editing reached revision 70 with its paint acknowledgment. The attached evidence is from the real deployed route.

Native KiCad 10.0.2 loads both markers, and the two expected unconnected-output findings disappear: 92 -> 90 findings. Remaining findings are retained, including 72 project-library-context findings and 18 unfinished circuit/interface findings. Complete-project desktop parity and manufacturing qualification remain open. Patch and screenshot are attached; no shared release or PR-head update is claimed.

schematic-r70-unused-outputs

adom-schematic-no-connect-sse.patch

proxy-sse-no-transform-live.json

Log in to reply.