Skip to content

Export the current build's settings when Open in Slicer's slicer check is slow - #205

Merged
vycdev merged 1 commit into
developfrom
fix/open-in-slicer-stale-plan
Nov 19, 2026
Merged

vycdev merged 1 commit into
developfrom
fix/open-in-slicer-stale-plan

Conversation

@vycdev

@vycdev vycdev commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Found in the v4.3.0 release review: if a rebuild finished while Open in Slicer was still checking the saved slicer, the 3MF got the new mesh but the previous build's settings: head count, pause schedule, and layer heights. A head-3 part could be assigned to head 2, with the pause at the wrong Z. The check kept the export captured at click time, while the mesh is read live.

useSlicerChoice now keeps the export in a ref and calls the latest one after the check, so the settings match the mesh that's actually exported. #189 fixed the related preference race; this fixes the export settings.

Not in this PR: while a rebuild is still pending (the 120 ms debounce or the build itself), Open in Slicer now behaves like Download 3MF clicked at that moment, which can pair the old mesh with the new settings. That's the Download 3MF issue, now confirmed and being fixed separately by blocking 3MF export during a rebuild. Download 3MF itself is unchanged here.

Proof: added a unit regression that re-renders with a new build while the slicer check is held. It exports build 1 without the fix and build 2 with it. Lint, tsc -b, npm test (1157 pass), and npm run test:e2e:all (all 8 suites) all pass.

Reviewed with sol-loop: 1 round with gpt-6.2-sol. Sol verdict: approved

Council review

Rounds: 1

Delegate Round 1
Claude Opus 5.5 9/10
GPT-6.2 Sol 9/10

Both approved. Nits declined: assigning the ref during render (matches useThreeScene.ts:29, and the server-render test can't run useLayoutEffect); counting renders in the test (if the re-render stopped, the test would fail, not pass silently); the helper's localStorage.clear() (already on develop, only moved here).

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

Open in Slicer awaited the saved-slicer lookup and then called the export
captured at click time. That export carried the previous build's multi-head
plan and layer heights, while the mesh is read live, so a rebuild finishing
during the lookup mixed builds. Keep the export in a ref and call the latest
one after the lookup.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vycdev
vycdev merged commit 0c9d501 into develop Nov 19, 2026
11 checks passed
vycdev added a commit that referenced this pull request Nov 20, 2026
Merge the four Open in Slicer bullets into one entry for the shipped
flow, fold Multi-head filament requirements into Multi-head printing,
and move the decode-once image work into its own Changed entry. Move
touch-up history fixes that predate v4.3 into Fixed, add the missing
diagnostics folder fix, and reduce the cats benchmark entry to one
Fixed line. Fold in the notes from PRs merged since (#203, #205, #206,
#208, #209, #210, #212, #213) and trim test-only and maintenance
details that do not help users.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant