Repository navigation
Export the current build's settings when Open in Slicer's slicer check is slow - #205
Merged
Merged
Conversation
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]>
This was referenced Nov 19, 2026
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]>
This was referenced Nov 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
useSlicerChoicenow 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), andnpm 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
Both approved. Nits declined: assigning the ref during render (matches
useThreeScene.ts:29, and the server-render test can't runuseLayoutEffect); counting renders in the test (if the re-render stopped, the test would fail, not pass silently); the helper'slocalStorage.clear()(already ondevelop, only moved here).Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code