Changelog
All notable changes to Sawhorse are recorded here. The format follows Keep a Changelog; versions follow Semantic Versioning; pre-releases are 0.1.0-alpha.N, on the releases page.
[Unreleased] #
Changed (lane 108, 2026-12-01) #
The first move over the model after an edit no longer waits while the whole hover scene is made again (#156). After any edit (one part moved, a rectangle drawn, an Undo, a Redo), the first pointer move over the model waited while the kernel made its picking and snapping scene again from the whole model: about 0.12 s at 1,000 parts, 1.7 to 2.0 s at 10,000, and 5.7 s at 10,000 rounded boxes; later moves took a few milliseconds.
The cause: every edit dropped the scene (
DocCoreincrates/wasm-api/src/lib.rs), and the nextinferorpickranScene::buildover everything. Timed by stage on 10,000 imported 24-sided prisms (native release build, medians of five, measured once): triangulating the faces 202 ms, finding arcs 26 ms, reading the loops 29 ms, rims and edges 47 ms, merging equal arcs 232 ms, the triangle tree 483 ms and the segment tree 365 ms, of 1,449 ms. On 10,000 rounded boxes the arc merge alone took 3,872 ms of 5,427 ms: it compared every arc with every arc kept before it.Now the kernel keeps the scene between edits (
SceneCacheincrates/inference/src/scene.rs) and makes the next one from it. A solid is copied as it was when it is shown, has the same id, the same B-rep data (shared, not compared: the kernel copies a B-rep before it changes it), the same curves and edge flags, and the same section planes bit for bit; a sketch when it is shown, has the same id, the same sketch data and the same section planes. Everything else is worked out again: changed and new solids and sketches, guides, dimensions and section caps. The arcs are merged through a grid of 1 µm cells, and the triangle and segment trees are made in one sort per axis instead of one per node, or from the old tree where it can be: a subtree over the same set of items, with the same box bit for bit, is copied and renumbered. The scene that comes out is the oneScene::buildmakes of the model at that moment, every value and every order the same, so every snap, pick and inference is as it was; the tests below hold it to that.Keeping costs memory: while the next scene is made the old one is held until each of its lists is copied, and between scenes the cache holds each part's place in the scene, the trees' axis orders and a handle on each B-rep and sketch. So it keeps only while the scene is smaller than
KEEP_LIMIT(1 GiB asScene::size_estimateweighs it: the lengths of its lists and two trees, asked after every part, allocating nothing and never wrapping; that is lower than the memory the lists hold, 0.68 to 0.96 ofScene::heap_bytesin the models measured). The weight depends on the target. In the 32-bit WebAssembly build people run (its element sizes printed by a scratch build of it: a triangle 80 bytes, a segment 88), the prisms of the memory table below weigh 32,214 to 32,746 bytes each and were kept at 32,800 and made whole at 33,000 (headless Edge, measured once); boxes weigh 5,032 to 5,042 bytes each there and are kept up to the 100,000-solid limit. On a 64-bit native build, where the tests run, a segment is 104 bytes, so the same parts weigh more (prisms 33,367 to 33,826 bytes each, boxes 5,015 to 5,235) and keeping ends sooner: byScene::size_estimatethere 31,000 prisms are under the limit and 32,000 over (two separate runs agree). A first scene stops gathering what it would keep once it reaches the limit. A scene made from the one before stops once the parts it keeps and the ones worked out so far reach it, lets go of the old scene and everything kept, and is made whole. Over the limit the scene is let go at the edit and made whole, and nothing is held for the next one, as before this change; a scene that comes out under the limit again keeps again.Measured on one desktop machine, in headless Edge with the WebAssembly kernel called directly in the page, the first
inferafter the edit (medians of five; the models are imported 24-sided prisms arrayed, the same in nested groups and as component instances, 30-face rounded boxes drawn and arrayed, and four imported blocks of about 21,000 triangles each). Each "now" figure for 10,000 prisms and 10,000 rounded boxes is the range of three runs, the lowest on a quiet machine and the others while it was doing other work; the rest were measured once, on a quiet machine:Model Parts Triangles After a move, before After a move, now After a rectangle, an Undo, a Redo, before The same, now Prisms 992 91,264 124 ms 12 ms 121, 123, 122 ms 18, 20, 20 ms Prisms 2,970 273,240 441 ms 36 ms 426, 432, 431 ms 60, 65, 74 ms Prisms 10,000 920,000 1,738 to 1,976 ms 123 to 235 ms 1,737, 1,741, 1,742 ms 209, 208, 213 ms Prisms in two nested groups 992 91,264 123 ms 11 ms Prisms in two nested groups 10,000 920,000 1,818 ms 119 ms Component instances 992 91,264 122 ms 11 ms Component instances 10,000 920,000 1,769 ms 118 ms Rounded boxes 992 107,136 183 ms 17 ms Rounded boxes 10,000 1,080,000 5,678 to 5,749 ms 187 to 236 ms 5,521, 5,600, 5,582 ms 338, 332, 338 ms Four large blocks 4 84,792 182 ms 58 ms The first scene of a model, or after an edit that changes every part (an Array of all of it, an Open), is still made whole, now by the faster arc merge and tree build: 10,000 prisms 1,842 to 2,464 ms before, 1,116 to 1,637 ms now; 10,000 rounded boxes 6,580 to 6,928 ms before, 1,421 to 1,460 ms now. Five more rounds of first scenes, each round alternating the builds while the machine was doing other work (medians of five rounds, then the range): 100,000 boxes 2,550 ms (2,533 to 2,575) before, 1,777 ms (1,747 to 1,802) now; 32,000 prisms 8,992 ms (8,913 to 9,203) before, 3,844 ms (3,823 to 3,883) now. Natively (release build), the scene after a move of one of 10,000 prisms took 1,467 and 1,534 ms before, 214 ms and 244 ms (220 to 305) now, in two sets of runs. Later moves are as before (4 to 6 ms at 10,000 parts).
Memory, WebAssembly memory of the page in MB as measured in the same setup (headless Edge, the second check's harness: prisms imported from STL, 92 triangles each), each row once on the code before this change (1a8de24) and once on this one, after the first scene, after 5 moves and after 20:
Model Before: first, 5, 20 Now: first, 5, 20 10,000 prisms 702, 734 652, 783 32,000 prisms, kept, 80 moves 2,416, 2,544, 2,672; the most 3,024 2,315, 2,764, 2,989; the most 3,214 to 3,461 (two runs, of 80 and 100 moves) 40,000 prisms 2,800, 2,928, 2,928 2,518, 2,518, 2,870 45,000 prisms 3,105, 3,233, 3,233 2,716, 2,844, 3,101 50,000 prisms 3,757, 3,922, 4,086 3,400, 3,657, 4,041 55,000 prisms 3,901, 4,082; stopped at the 11th move (the kernel trapped) 3,599, 3,855, 3,855 60,000 prisms stopped at the first scene stopped at the first scene 100,000 boxes, kept 1,304, 1,432 1,264, 1,548 40,000 rounded boxes 3,470, 3,726 3,195, 3,267 to 3,509 (two runs) 45,000 rounded boxes 3,672, 3,845 3,314, 3,570 50,000 rounded boxes stopped at the first scene stopped at the first scene A soak of the same build, measured once: 32,800 prisms (kept) and 1,000 moves, 2,353 MB after the first scene, 2,813 after 5 moves, 3,274 after 50, and 3,504 at every 50th move from the 100th to the 1,000th, 592 MB under the 4,096 MB a page's WebAssembly memory can reach.
For 10,000 prisms the figures across the runs of both checks: before 702 to 735 MB after the first scene and 734 to 768 MB after the moves, now 650 to 687 MB and 783 to 908 MB. Over 1,000 edits (moves, a third of them undone) the cache's own size stays the same (a test counts it); the page's WebAssembly memory on 1,000 prisms went from 103 MB after 100 edits to 131 MB after 1,000 before, and from 114 MB to 151 MB now (measured once), the undo history and the op log growing in both.
Not changed: any answer of the kernel (picks, snaps, inferences, their values and their order), the op log, the file format, autosave, the MCP server (it does not use the scene), any words, anything under
src-tauri/. No TypeScript changed: the page does nothing noticeable after the answer (#156). The SVG and sheet exports' occlusion trees use the same faster tree build and are the same trees. The largest model that works is where it was (the table above).Not fixed: an edit that changes every part still makes the scene whole (1.1 to 1.6 s at 10,000 prisms), and so does every edit over
KEEP_LIMIT(4.8 s at 40,000 prisms, 6.6 s at 55,000, against 11.0 s and more before; measured once). A part added or removed far from the rest (a rectangle drawn away from the model) changes how the trees split all the way down, so less of them is copied: about 0.2 s at 10,000 prisms, against 0.12 to 0.24 s for a move. Edits themselves are unchanged (moving one of 10,000 component instances takes 0.45 s, before and now).Tests:
crates/wasm-api/tests/scene_cache.rs, 13 new. Every op log incrates/kernel/tests/golden/andcrates/kernel/tests/repro/(101 logs, 1,167 ops) run op by op throughDocCore, the kept scene compared withScene::buildafter every op (throughDebug, which tells -0.0 from 0.0 and prints every float so that it reads back to the same bits, and==). Fixed-seed random sequences, 200 of 60 steps in each of two passes, through 40 kinds of step: 36 kernel ops (rectangles, circles and polygons as curves or strokes, squares drawn on faces and the pieces erased, extrusions, push/pull, moves, copies and arrays of solids and of nested groups and instances, deletes, groups, components, opening and leaving them, Make Unique, Explode, hiding, tags, softening, section planes and the style's cuts, guides, dimensions, curves exploded and erased, paint, renames, imports, Undo and Redo) and 4 paths that batch or replace the document (a plugin batch with placeholders, save and open, a new document, a rebuild from the op log); the scene compared after every step in one pass and after every one to four steps in the other (several edits between two scenes). The op logs and both passes each run three times: withKEEP_LIMIT, with a limit of 0 (nothing kept), and with 48 KiB, which the models cross back and forth, each asserting which way the scenes were made. One test each that an op, an Undo, a Redo, a plugin batch and an import make the scene again, that a refused op and a file that does not open do not, and that an open, a new document and a rebuild from the log start a new one. A move of one of 400 boxes works out that box alone and copies 399 boxes and the sketch, and most of the trees (counted, not timed); 1,000 edits leave the cache holding one entry per shown solid and sketch and no more bytes than after 100.crates/inference/src/scene.rs15 new: the arc merge against the code before this change (kept, for the tests only) on 400 sets of arcs; a scene's trees against the old build; what the cache copies; a first scene that reaches the limit lets go of what it gathered; a scene over the limit keeps nothing and is let go at the edit; a model crossing the limit both ways; counts nearusize::MAXweighingusize::MAX, at or over every limit; section caps added after the parts counting against the limit, in a first scene and in one made from the one before; a part worked out counting with its arcs; what is kept alone reaching the limit; a first scene weighed with its arcs as found, before equal ones are merged; a first scene without sketches stopping at its last solid; a first scene stopping at a sketch drawn after its solids; what is kept counting with its curves; the weight held to a sum worked out by hand, term by term.crates/inference/src/bvh.rs5 new: the tree build and the tree rebuild against the old build on random boxes with tied centres, signed zeros, huge and tiny coordinates (600 edits), a moved cluster copying most of the tree, and a subtree copied only when its box is the same bit for bit (a signed zero whose sign the order of the parent's split decides, and 300 sets with NaN, infinities, signed zeros and equal boxes), and the tree's node count worked out level by level, two sizes to a level, with nothing allocated, held to the first form (a recursion with a memo, kept for the test) for every count up to 20,000 and a spread up to 200 million, and never wrapping.crates/inference/tests/perf.rs:scene_after_one_move_on_10000_boxes(ignored), the times printed, none asserted. Sixty-one faults were put in the new code one at a time (fifteen of them as a second check described them), and fifty-eight were each caught by at least one of these tests: surface, face and curve numbers not moved; edge flags, curves, section planes, B-rep data or sketch data not compared; hidden solids copied; a kept part's arcs dropped; solid and sketch keys mixed; the tree's subtree copied on its size alone or without its box checked, its merge's ties broken the wrong way, its copied nodes not renumbered; the arc grid's neighbours skipped; an op, a plugin batch or an import not marking the scene; nothing of the trees copied; the limit compared the wrong way (eight places); the check after a solid or after a sketch removed; the old scene not let go at the edit over the limit; the parts gathered held once the limit is passed; keeping not coming back under the limit; a test's limit ignored; the count of scenes made whole not kept; the keeping path not stopping partway, or not after what is kept; the final check of a first scene, or of the keeping path, dropped; a worked-out part's arcs, surfaces or curves, or a kept part's surfaces, arcs or curves, not counted; the node count one short at one level; an odd count split the wrong way; the scene's weight added, or the tree's multiplied, wrapping; a term of the weight dropped or weighed by another list's element size, a tree's share dropped or over the other tree's count. Three no input tells apart on the 64-bit build the tests run on: the triangles' share of the weight multiplied wrapping (wherever that product would wrap, the triangle tree's share for the same count already saturates the sum), the two trees' counts swapped (the sum is the same), and the segments weighed by the curves' element size (both are 104 bytes there).Tried: the native measurements in WSL (release build) and the tables in a headless Edge build (Playwright), on the code before this change and on this one. Not tried: the desktop app, Safari, a Mac.
Fixed (Install from .zip on Linux, a pull request from @akvalentine977, 2026-12-01) #
- On Linux, Plugins > Install from .zip works again in the desktop app (#171, from @akvalentine977; #159). Since 0.1.0-alpha.2 it ended in "Could not install the plugin: forbidden path" and nothing was installed. An install is put together in a folder of its own and swapped in, so that a failure halfway leaves the installed version as it was. That folder was
.staging-<id>-<stamp>inside<app data>/plugins, and the version being replaced waited in.old-<id>-<stamp>beside it. On Linux and macOS the file scope the app runs under does not reach a name that starts with a dot (Tauri's default there), so the first folder could not be made. Both are now in<app data>/plugins-staging, beside the plugins and not among them, asnew-<id>-<stamp>andold-<id>-<stamp>. The scope is as it was, and so is the swap: written whole, then moved in, the old version put back if the move fails. If that move back fails too, the error shown is still the swap's, and the old version waits inplugins-stagingto be put back at the next start. - What a stopped install leaves is cleared up. If the app is closed or killed in the middle of an install, a folder can be left in
plugins-staging. Each start and each install look there first. An old version whose plugin is not in place is put back, if it holds aplugin.json: the install was stopped between moving it away and moving the new one in, and before this the plugin stayed gone. If the look for that file cannot be made (the folder cannot be read), the folder is left for the next time and not removed: it may be the only copy of the plugin. What else an install made (a new version half written, an old version whose plugin is in place, an old version with noplugin.jsonin it) is removed once it is ten minutes old; a younger one is left, since it may belong to an install running in another copy of the app. What an install did not make, a name that is not one of its names or anything that is not a folder, is removed at once, whatever its age. Uninstall also removes any old version of that plugin left waiting, so an uninstalled plugin is not put back. It leaves a new version alone: that may be one another copy of the app is writing, which would then go on into a folder made again without its first files. A folder that cannot be put back or removed is left for the next time and stops neither the start nor the install. - The clearing up touches only what is directly in
plugins-staging, and follows no link out of it. Every path it removes or moves is that folder joined with one name read from it. A link there is not something an install makes: it is never put back as a plugin, and only the link is removed, not what it points to. A link that leads out of the app's data folder cannot even be removed, since the scope refuses every path through it, so it stays. A folder removed whole takes the links inside it as links (the fs plugin'sremove_dir_all). Ifplugins-stagingis itself a link, nothing is cleared through it and an install is refused with "the plugin staging folder is not a folder": it could lead to the plugins themselves. A file named as an old version is removed, not put back. - Uninstall takes only a folder inside
<app data>/plugins. The check was that the path began with that folder's path, which the folder itself and a folder beside it namedplugins-…also do; it now asks for the separator after it. Nothing in the app asked for either. - Folders of the old names inside
pluginsare not looked for. On Linux and macOS none could be made; on Windows one left by a stopped install stays as it was, unlisted, as before. - Tests:
src/plugins/platform.test.ts, new, 23 tests, with a stand-in for the fs plugin that keeps folders, files and links in memory, asks its scope about the real path as the plugin does, and refuses a dot name under the app's data folder as the scope does on Linux. The install: a first one and one over an installed plugin, with no dot name asked of the fs at all; a write that fails and a swap that fails, each leaving the installed version and nothing behind; a swap that fails with the move back failing too, the swap's words shown and the old version put back at the next start; an id that ends in a dash and digits (org.example.box-2, besideorg.example.boxandorg.example.box-2-3) keeping its whole name through the swap, the putting back and Uninstall. Leftovers: an old version put back at the next start and at the next install, the later of two, and only with aplugin.jsonthat is a file in it; one left where it is when the look for that file cannot be made, and put back the next time; one going at ten minutes exactly and staying a millisecond before; a staging folder that cannot be cleared; Uninstall removing a waiting old version and leaving a new one where it is, and refusing a folder that is not insideplugins. Links: a link in the staging folder never put back and removed as a link, with what it points to left; a link out of the app's folder left where it is; a link inside a leftover folder; a file named as an old version; a staging folder that is itself a link. One at a time: with an install kept waiting in the middle of its files, an uninstall, a listing and another install ask the disk for nothing until it is done. Withsrc/plugins/platform.tsas it was onmain, every one that installs fails with "forbidden path" for.staging-…. Each rule has a test that fails without it: the checks for links and files (three tests), the look forplugin.jsonand a look that fails, Uninstall leaving a new version, the swap's error kept, the turn-taking, the ten minutes (with>for>=), and the parsing of the name (with an id cut at its first dash and digits). No test drives a real install in the desktop app: the end-to-end stand-in for the shell has no file writes. - Tried by hand by akvalentine977 on 2026-12-01, on the .deb, .rpm and AppImage built from this branch before it was moved onto the fix for #169 and #158 and before the rule on links and the changes asked for in review were added (the install itself is the same code but for the error shown when a swap and its move back both fail), each from a first start on a fresh system with two zips of one plugin (versions 1.0.0 and 2.0.0) in Downloads: Debian 13 (GNOME 48.7, .deb), CachyOS (KDE Plasma 6.8.2, AppImage) and openSUSE Tumbleweed (KDE Plasma 6.8.2, .rpm). On all three: Install from .zip installed the plugin and it ran; the second zip installed over it left one plugin, at 2.0.0, which ran; after a restart it was still listed with its command in the menu; Uninstall removed it. Read on disk afterwards on each:
pluginsandplugins-stagingboth empty. - The clearing up was tried on the same three systems with the packages of this branch as it is here but for this entry, by a script and not by hand. With the app closed these were made in
plugins-staging: an old version of the plugin with no plugin in place; a new version stamped eleven minutes back, with two links inside it; a new version stamped now; a folder with a name the app does not make; two old versions holding only anotes.txt, with no plugin in place, one stamped now and one eleven minutes back; and three links, one named as an old version with no plugin in place and one as a new version eleven minutes old, both to a folder elsewhere in the app's data folder, and one named as an old version to a folder in Documents. Then the app was started. On all three: the old version with itsplugin.jsonwas back inpluginswith its files, and nothing else was there (neither the link named as an old version nor either folder of notes was put back); the eleven-minute folders, the stray folder and the two links into the app's data folder were gone; the two folders stamped now were left, and so was the link to Documents, which the scope does not let the app remove; and the two folders the links pointed to still held their file. - macOS should have had the same fault, by the same default; it was not tried. Windows did not have it.
Fixed (lane 107, 2026-12-01) #
- Cancel on an import or an open stops that import or open, and nothing else (#169, #158). The Cancel beside "Importing NAME…" and "Opening NAME…" restarted the kernel whatever it was running at that moment. Two things went wrong with that. After a Cancel on a long import the model is rebuilt from its history, and an import picked during that rebuild waits for it; its Cancel refused the rebuild's own request instead, which the rebuild took for a worker lost (#169). Seen once in a headless Edge build of the code before this change, with a sphere of 32,768 triangles in the model (about 6 s to import) and a long import cancelled: with one more import cancelled during the rebuild, the rebuild started over and that import came in anyway; with two, the rebuild gave the history up and started a new document, the sphere was gone, the status line ended on "Imported b1.stl: 1 solid.", Undo stayed within the new document, and after a reload the unsaved work offered was the new document ("2 solids, 5 steps", the two boxes). In a run of five imports each cancelled during the rebuild, at the fourth the kernel was given up on ("The kernel failed 4 times in half a minute (cancelled by you); reload the page."), seen once; a second try with other timing (three and four imports, each cancelled about 0.6 s after it was picked) did not show it. And an import picked while a long edit runs waits behind that edit; its Cancel stopped the edit, and the import then ran anyway (#158). Seen once in the same build, with an edit kept running for 10 s by the test hook (a rectangle drawn on a box): the Cancel gave "The kernel stopped (cancelled by you) and was restarted from your last step; this did not change the model.", the rectangle was not drawn, and the status line ended on "Imported box.stl: 1 solid.".
- The cause: the Cancel called
kernel.cancel()insrc/kernel/client.ts, which restarts the worker and refuses whatever it is running. It did not know which request it belonged to, and the import it was put up for could be waiting in the app's edit queue (run()insrc/App.tsxchains every edit on the one before it) or in the client behind the rebuild. - Now each import and open has its own Cancel (
CancelHandle,src/kernel/cancel.ts), handed to the client with the request. While the kernel runs that request, the Cancel stops it as before: the worker is replaced, the model rebuilt from its history, the restart not counted toward the limit, the same words. Before that, while it waits behind another edit or behind a rebuild, the Cancel drops it: it is never sent to the kernel, whatever is running carries on, a rebuild is left alone, nothing is counted, and the model, Undo and the unsaved work kept in the browser are as if the file had never been picked; an Open dropped this way leaves the document's name and its unsaved mark as they were. Once the request has its answer the Cancel does nothing. So a Cancel does not refuse a rebuild's request, and Cancels alone do not make a rebuild give the history up or give the kernel up; a worker that fails by itself is counted as before, and a rebuild's rule for a worker lost while it replays the history (one more try, then a new document) now meets only real losses.kernel.cancel()itself now does nothing while the model is being rebuilt; nothing in the app calls it any more. - To know whether the kernel is running an import or open, the client sends one only when nothing sent before it is still waiting for its answer, and every other request made meanwhile waits behind it; once sent, it is the request the worker runs. Two things follow that were different before. A request made while an import or open waits for its turn (a tool's pick, a plugin's read of the model) is sent after it, not at once: the worker answered such a request after the import before this change as well, since it answers in turn. And an import or open waiting for its turn when a request ahead of it fails is no longer refused with that request: it waits for the rebuild and then runs. For that, a failure inside the kernel (a trap) now replaces the worker as soon as its answer comes, before anything waiting can be sent to it, so that this does not rest on the order in which promise callbacks run; before, that happened a moment later, when the answer was handed on, with the same words and the same count (with it there, the tests pass too: the restart still came first).
- The status line follows the import or open the kernel runs. When one that waited behind another starts to run and its own line is not showing, its line and its Cancel are put up again ("Importing NAME…" or "Opening NAME…", the same words, made in one place,
requestLineinsrc/App.tsx); the client tells the app through the Cancel (CancelHandle'sonStart, told once, when the request is handed to the worker). So the second of two imports picked one after the other shows its line and Cancel when it starts, which it did not do before this change either: it ran under "Working…" with no Cancel. When a Cancel drops a waiting request while another import or open runs, the line shows the running one's line and Cancel, and that Cancel stops it. Nothing is put up for a request that has ended, been dropped or been stopped, or when the kernel is given up on or absent (#163). With nothing such running, after a Cancel that drops a request, the line shows what it shows when its message is cleared: the tool's name and hint ("Rect. Click two corners. Type 24,12 for exact size."), or, while the kernel has been working on something for more than about a second, "Working…" and the seconds, as #144 made it. Seen once each in a headless Edge build, with the Rect tool and the long edit still running: "Rect. Click two corners. Type 24,12 for exact size.", then "Rect. Working… 1 s" and on up to "Rect. Working… 5 s", then the rectangle's own words, the same for an import and for an open; and while the model is rebuilt after a Cancel, "Select. Click an entity. Drag for a window. Double-click a group to edit it. Alt+drag orbits." A stopped request ends as before, on "The kernel stopped (cancelled by you) and was restarted from your last step: nothing was lost, and undo works as before.", with its report "Could not import NAME". A dropped one has no report. No words were added, changed or removed. - Every way a file comes in reaches the same two places,
importBytesandopenBytesinsrc/App.tsx: File > Import, File > Open, a file dropped on the page or on the desktop window, the file the desktop app was started with. Files dropped together are taken one at a time, each after the one before has ended, so a Cancel that drops one lets the next begin. Nothing else callskernel.cancel(): not the plugins (src/plugins,packages/plugin-api), and not the MCP server (crates/mcp), which runs its own kernel in its own process. A plugin's batch is an edit in the same queue: a Cancel on an import waiting behind it now leaves the batch to finish (before, it was refused), and a Cancel on an import running ahead of it stops the import, as before, and the batch then runs. - What a person sees in the cases around it, seen once each in a headless Edge build. An import hung, a second picked behind it, the second's Cancel: "Select. Importing b.stl…Cancel", then "Select. Importing a.stl…Cancel", and that Cancel stops the first (before this change the second's Cancel stopped the first by the fault above). Two imports, no Cancel clicked: the first's result ("Imported sphere.stl: 1 solid.") is given to the line in the same turn as the second's line, so the line goes from the second's line to the second's line and the result is not drawn; the report over the model says "Imported sphere.stl: 1 solid.". The first stopped by its Cancel while a second waits: the stop's refusal, "The kernel stopped (cancelled by you) and was restarted from your last step; this did not change the model.", stays on the line until the busy mark or the second's line takes its place, so how long it is up goes with how long the model takes to rebuild. Seen in three runs with an empty model (nothing drawn or imported before the stopped import): the refusal was up for between about 0.02 and 0.16 s, then the second's line. Seen once in review with a sphere of 32,768 triangles in the model (a rebuild of about 6 s): the refusal for about 1 s, then "Working… 1 s" up to "Working… 6 s" while the model was rebuilt, then the second's line. In both, "…nothing was lost, and undo works as before." was not drawn, and the report over the model kept "Could not import NAME" until the second import came in, whose own report then took its place. A message put on the line by something else while an import runs (Esc in the measurements box clears it) takes the import's line and Cancel away until the import ends, as before this change; the line then says "Working…" and the seconds.
- Tests:
src/kernel/cancel.test.ts, 9 new (the Cancel's states: dropped once while waiting, a stop asked of the client once with its reason, nothing once the answer is in or the client finds the request no longer running, started once; the start told once, after the Cancel can stop the request, and never for a request dropped or answered before it was sent).src/kernel/client.test.ts, 17 new: a running import's Cancel stops it as before, five times in a row with the clock held still, not counted; an import, and an open, waiting behind a long edit, dropped, never sent, the edit landing with its log; without a Cancel, an import waiting behind an edit sent once it is answered, a later request after it; a Cancel just after the answer does nothing, just before it stops the import; one, two and five imports cancelled during a rebuild after a Cancel, each dropped, the rebuild's request never refused, the log kept, one restart counted; two imports with the first running, the Cancels on the second, on the first, and on both in either order; a Cancel before the call; a worker that dies, an edit that traps, and a request past its deadline, each with an import waiting behind it, which waits for the rebuild and is then sent (with its own deadline from then); a kernel given up on with an import waiting. One lane 106 test changed: it said "a Cancel during a rebuild is counted through the fresh worker after it, as before", which was this fault; it now says such a Cancel leaves the rebuild alone and counts nothing, and that the three failures before it are still counted.src/kernel/cancel.fuzz.test.ts, new: 3,000 random orders from a fixed seed (requests with and without a Cancel, Cancels of waiting, running and finished requests, the oldcancel(), answers, refusals, traps, workers that die, deadlines, the clock moving on), each step checked against a small model written from the rules above, not from the code (which requests were sent and how each ended, the state of each Cancel, the restarts, the give-up, what the app was told), that no dropped request was ever sent, that with no failure of the kernel's own nothing is given up, and at the end that every promise settled, no wait is left showing and no timer is left.e2e/containment.spec.ts, 7 new: #169's steps with two imports cancelled during the rebuild (the sphere back with its volume, one restart counted, Undo and Redo, and after a reload the unsaved work offered and restored is the sphere); five imports cancelled during one rebuild, then an import that comes in; #158's steps (the edit lands, nothing restarted, imported or reported, Undo undoes the edit); an Open dropped behind a long edit after the question over unsaved changes (its name, its unsaved mark and its unsaved work kept); a hung import with a second dropped behind it (the first's line and Cancel back, that Cancel stopping it, the model as it was, one restart); two imports with no Cancel clicked (the second's line and Cancel up while it runs, the report saying the first came in, and the second's Cancel stopping it); two imports picked during a rebuild and the second dropped (the line cleared, not given to the first, which waits too; the first's line up when it runs after the rebuild, and it comes in). The #169 tests click each Cancel during the rebuild in one turn of the page, only if the app has not been told the rebuild is done, so they fail rather than pass if the rebuild ever ends first; they rest on the sphere's rebuild (seconds) outlasting a pick. Lane 106's end-to-end tests pass unchanged. Withsrc/kernel/client.tsput back to the code before this change, the 17 new client tests, the changed one and the random orders fail (cancel.tskept, so they compile); with it andsrc/App.tsxput back, the four end-to-end tests of #169 and #158 fail: the two #169 tests at the first Cancel during the rebuild, whose import's line and Cancel stay up, the #158 test on "Rect. Imported box.stl: 1 solid." and the Open test on "Rect. Opened other.shz: 1 solid.". With the line's following taken out (src/App.tsxandsrc/kernel/cancel.tswithoutrequestLineandonStart), the three newest end-to-end tests fail: on "Push. Working… 4 s" where the first import's line should be back, on "Select. Working… 5 s" where the second's line should be up, and with no line for the first import when it runs after the rebuild; and two of the three newcancel.test.tstests fail. With the code before this change all seven end-to-end tests fail. - Tried in a headless Edge build (Playwright), on the code before this change and on this one, one run each: #169's steps with one, two and five imports cancelled during the rebuild, and #158's steps; on this one, also three imports with the first hung, an Open waiting behind an import (its question over unsaved changes came while the import ran, and its line took the import's place), and an Open and an import picked together. Not tried: the desktop app, Safari, a Mac. Not changed: anything under
crates/orsrc-tauri/, the file format, the op log, autosave, the limit (more than three restarts in half a minute), the deadlines, the test hooks, and every word the app shows.docs/LIMITS.md: the rows for a request that runs too long and a kernel that keeps failing now say a Cancel on an import or an open that has not started drops it, and a Cancel while the model is being rebuilt restarts nothing and is not counted.
Fixed (lane 106, 2026-12-01) #
- Cancel on a long import or open no longer counts toward giving the kernel up (#162). A kernel that fails more than three times in half a minute is given up on, and nothing more runs until the page is reloaded. Cancel stops a long import or open by replacing the kernel's worker and rebuilding the model from its history, and that restart was counted as one of the failures, so four Cancels within half a minute gave the kernel up although nothing had failed. Seen once in a headless Edge build of the code before this change: four Cancels of an STL import of 44,700 triangles, all within about 1.3 s, the fourth ending on "The kernel stopped (cancelled by you) and the model could not be rebuilt: The kernel failed 4 times in half a minute (cancelled by you); reload the page.", and a fifth import, of a 20 mm box, refused. The cause:
cancel()insrc/kernel/client.tscallsrestart(), andrestart()counted every restart inmayRestart, whatever its reason. - Now a restart asked for by Cancel is not counted toward the limit (
restart(reason, true)); it is still counted in the client'srestarts, which only the tests read (the end-to-end hookkernelTest.restarts()and the unit tests). Everything else is counted as before: a failure inside the kernel, a worker that dies, a request past its deadline, a fresh worker that fails while it rebuilds the model after a Cancel (counted by the rebuild under the Cancel's reason, so the words then read "The kernel failed 4 times in half a minute (cancelled by you); reload the page.", as they did before this change), and a Cancel while a rebuild runs (it refuses the rebuild's request, and the rebuild counts the next worker it makes). A Cancel after the kernel is given up on does nothing, as before. Cancels do not hide a kernel that keeps failing: a worker that fails by itself is given up on at its fourth failure in half a minute, however many Cancels come between. - After the kernel is given up on, an import or an open no longer leaves "Importing…" or "Opening…" and its Cancel on the status line (#163). File > Import and File > Open still take a file then, and the kernel refuses it at once; the report over the model says why ("Could not import box.stl" with the give-up words) and so does the viewport's HUD. But
importBytesandopenBytesinsrc/App.tsxput "Importing box.stl…" (or "Opening shelf.shz…") and its Cancel on the status line before the kernel was asked, and a refusal because the kernel is unavailable goes to the note over the model, not to the status line, so the line went on saying the import was running, with a Cancel that did nothing. Seen once each in a headless Edge build of the code before this change, for an import and for an open. Now neither puts that line up when the kernel is given up on (the client'sgivenUp), so the status line keeps what #155's fix left there and the words that say to reload the page stay the last thing said: "Can't do that. The kernel stopped (unreachable) and the model could not be rebuilt: The kernel failed 4 times in half a minute (unreachable); reload the page." after four failing imports. A kernel given up on after the line went up (an import waiting behind the request that met the fourth failure) needs nothing more: the give-up's own words replace the line when the app is told, as before. No words were added or changed. These two are the only places the status line is given a Cancel, and every way a file comes in reaches one of them (File > Import, File > Open, a file dropped on the page or on the desktop window, the file the desktop app was started with). - The same went for no kernel at all, a browser with no Web Workers (
createKernelgives none, and nothing is asked): the line was left on "Select. Importing cube.stl…" (or "Select. Opening shelf.shz…") with a Cancel that did nothing, beside the report "Could not import cube.stl" saying "refused" and the HUD's "Web Workers are not available here.". The check is nowgivenUp === false, true only for a kernel that is there and not given up on, so the line stays as it was before the file was picked (the Select tool's hint, in the test). Tried in a headless Edge build withwindow.Workerremoved before the app loads, one run each, with the check as!givenUp(which put the line up, as the code before this change does) and as it is now. - Two other ways the kernel can be missing, tried in review, one run each. The kernel's
.wasmrequest failing ("Failed to fetch"): on load the viewport says "Kernel error: Failed to fetch"; after an import or an open the status line shows "Importing…" and its Cancel briefly and ends on "Can't do that. Failed to fetch", with the report "Could not import box.stl" and "Failed to fetch", the same before and after this change, so the line is not left there. The worker's script failing to load: the kernel is given up on at load; before this change the line after an Import or an Open stayed on "Select. Importing box.stl…" and its Cancel, and with it the line stays on the give-up words. - Not fixed: Cancel alone can still give the kernel up, though only through imports cancelled while the model is being rebuilt after a Cancel: each such Cancel refuses the rebuild's request, and the rebuild counts the next worker it starts. Two such Cancels during one rebuild also make it give up the model's history and start a new document (#169, "Two imports cancelled while the model is rebuilt after a Cancel start a new document, and the model is gone"). Tried in review, one run each, the same on the code before this change and on this one: a sphere of about 32,768 triangles (about 6 s to import) in the model, a long import cancelled, then two small imports each cancelled while the model was rebuilt: the sphere was gone, the status line ended on "Imported b1.stl: 1 solid", and the unsaved work offered after a reload was the new document. With more imports cancelled during one rebuild the kernel is given up on (four more with this change, three more before it), and then the reload offers the model back. Cancel on an import waiting behind a long edit still stops the edit (#158, open).
- Tests:
src/kernel/client.test.ts, 10 new: four, five and eight Cancels in a row with the clock held still do not give the kernel up, each refused with the restart words and rebuilt,restartscounting each; a worker that fails by itself three times, with one and with three Cancels before each failure and after the third, is given up on at its fourth failure, with its own words; a fresh worker that fails while rebuilding after a Cancel is the fourth failure; a Cancel during a rebuild is counted through the worker after it, after an earlier Cancel that is not; a request past its deadline is counted, and a Cancel after it is not; a Cancel when the kernel is already given up on changes nothing (no restart, no worker, no message to the worker, nothing told, the same words);givenUponly once the kernel is given up on. Two #155 tests said a Cancel after three failures was the one too many; they now say it restarts, and that the fresh worker failing after it is the one too many (the request waiting for it refused with the give-up words; the wait the app was told of ending).e2e/containment.spec.ts, 5 new: four Cancels of a long import with the page's clock held still, each rebuilt, then a fifth import that comes in; a kernel given up on, then an Import, and in another test an Open, each leaving the status line on the give-up words with no Cancel; and with no Web Workers, an Import, and in another test an Open, each leaving the status line as it was with no Cancel. Withsrc/kernel/client.tsput back to the code before this change, the 10 new unit tests and the 2 changed ones fail and the end-to-end Cancel test ends on the give-up words; withsrc/App.tsxput back, the two end-to-end tests of a kernel given up on end on "Select. Importing cube.stl…" and "Select. Opening shelf.shz…" with the Cancel, and so do the two tests with no Web Workers with the check as!givenUp. A test hook makes the long import:failNextImport("hang")(?kerneltest=1,src/kernel/kernel.worker.ts) keeps the worker busy on the nextimportFilerequest, whatever its format, until it is replaced; a SketchUp import (importSkp) does not hang, the kernel refuses "hang" as an unknown failure. The code before this change has no such hook. In a production build?kerneltest=1still gives the pagewindow.__sawhorse.kernelTest,failNextImportamong it, as it did before this change for "panic"; the value "hang" is new (both checked in thedist/ofnpm run build). - Tried in a headless Edge build (Playwright), on the code before this change and on this one, one run each: four Cancels of a long STL import and then a fifth import, and four failing imports followed by an import and by an open. Not tried: the desktop app, Safari, a Mac. Not changed: anything under
crates/orsrc-tauri/, the file format, the op log, autosave, the limit (more than three restarts in half a minute), the deadlines, and every word the app shows.docs/LIMITS.md: the row for a kernel that keeps failing now says a restart asked for with Cancel is not one of the more than 3 restarts in 30 seconds, and a Cancel while the model is being rebuilt still is.
Fixed (lane 105, 2026-12-01) #
- A board made at an angle takes a push through a face whose corners are in line (#168). This is what lane 104 left as not fixed, below. On a 43 x 20 in board, 3/4 in thick, drawn on the ground with the Rotated Rectangle tool at 57.6 degrees and pulled up, with a 2 x 2 in hole pushed through 6 in up its top and then three 3 x 6 in notches drawn up from its bottom edge, their tops in line with the hole's bottom, the third notch left the top's triangles open once it was drawn (the solid's STL was not watertight though the solid was valid), and its push was refused with "Can't do that. push/pull through the solid: operand 0 is not a closed manifold: NotManifold". That board was found by a search at the kernel level, not reported from the app: the angle the Rotated Rectangle tool gives comes from where the cursor is, and the fault needs the rounding of that angle's corners to fall one way. No board turned whole with the Rotate tool was found to meet it, and why is not established. Measured once on the board above with the hole and the three notches drawn: in the top's own frame the eight corners on the line 6 in up lie off the line through the outer two by up to about one unit in the last place, both when the board is made at an angle (the line then runs at 57.6 degrees in that frame) and when it is made square and turned whole (the line runs along the frame's axis, since a face's frame turns with its solid); and earcut, as the code before this change used it, cut flat triangles along the line in both, leaving the triangles open only on the board made at an angle. Measured once in review, with a generator not in the repository: 6,000 boards turned whole, 21,486 pushes, none left open before this change and none after.
- The cause: a face is cut into triangles in its own frame. The top of a board made at an angle has the ground's frame, so corners in line along the board (a notch's top and a hole's bottom) are in line in that frame only to rounding. earcut then cuts a flat triangle along that line: its three corners on the line to rounding, its area zero to rounding. Such a triangle carries the line's long edge one way and its two short edges back, and where its edges do not match those of the triangles on either side the mesh is open. Lane 104's mend splits a triangle edge that runs past a corner into a fan from the triangle's third corner, but only into pieces that turn strictly counter-clockwise, and a piece of a flat triangle is flat itself or a hair clockwise (
orientexactly 0 for the piece (13, 12, 6) in the polygon lane 104 pinned), so it refused, or the flat triangle's left-over edge had no corner strictly inside it to split at. Of the 32,013 polygons the measurement below found open before this change, all of which it closes, 32,011 had a flat triangle carrying an edge left over by lane 104's count; the other 2 had nothing left over by that count but did not meet the edges counted exactly (below), in one of them because a flat triangle was given both ways round. The holes touching at a point and the outlines with corners along their edges were among the 32,011. - Now, where lane 104's passes leave a face open, a second stage (
drop_flat_and_mendincrates/tessellate/src/lib.rs) drops every flat triangle that carries a left-over edge (flat by the rule that says where an edge is split: a corner within a billionth of the opposite edge's length of its line, or two corners at one place), since a flat triangle covers nothing, and splits the edges of the triangles round it, which are not flat, at the corners on them, never into a flat piece, until the triangles meet the face's edges. The result is kept only if the triangles then meet the edges exactly, pass the area check (MAX_AREA_DEVIATION, 1e-9, unchanged) and use every corner; otherwise the face keeps the triangles lane 104's passes left. The stage makes no triangle that is not strictly counter-clockwise; earcut's flat triangles that meet their neighbours stay, as they did before this change. A face whose triangles met its edges before keeps exactly the triangles it had, and costs what it did. - What else was wrong: lane 104 counted each pair of corners' triangle edges one way less the other, so a flat triangle given twice, once each way round, passed as meeting the edges, though each of its edges was then used three times and the mesh was not a closed manifold. Lane 104's own fan made such a pair: it split a flat triangle that rounding had left a hair counter-clockwise, and a piece was another flat triangle the other way round. The count is now exact (every edge of the face one triangle edge its own way and none the other, every other edge one each way), the cheap first check as well. A flat triangle that meets its neighbours, with no area, is handed to the boolean engine like any other (its corners are three different points, so the mesh is still a closed manifold, and the engine's import takes degenerate triangles out); the STL writer gives it a zero normal and 3MF and OBJ write its corners only. Not wrong: the solid's volume, which the open triangles still covered exactly.
- Tests:
crates/tessellate/src/lib.rs:corners_in_line_only_to_rounding_meet_their_rings(lane 104's ignoredknown_limit_corners_in_line_only_to_rounding, now run: earcut's flat triangle (13, 7, 6) named, lane 104's fan through 12 refused for its piece (13, 12, 6) atorient0, now 20 triangles that meet the edges, all counter-clockwise),a_flat_triangle_along_a_line_is_dropped_and_its_neighbours_split(the same triangles on the unturned grid, where the flat triangle is exactly flat),a_flat_triangle_given_both_ways_round_is_seen_and_dropped,a_triangle_with_two_corners_at_one_place_is_dropped,a_mend_that_cannot_close_the_face_changes_nothing,corners_in_line_only_to_rounding_meet_their_rings_5_km_outand..._a_tenth_of_a_millimetre_across(polygons the generator below found open, each mended with no flat or clockwise triangle of the stage's own); andholes_on_a_scaled_moved_or_turned_grid_triangulatenow asks that the triangles meet the edges, which lane 104 could not ask.crates/kernel/tests/board_holes.rs:a_board_made_at_an_angle_takes_notches_in_line_with_a_hole(the board above) anda_board_made_at_an_angle_takes_holes_in_line_with_notches_from_the_top(20 x 11 in at 246 degrees, two notches down from the top edge and two holes whose tops are in line with their bottoms), each step's volume by hand,testing::check_model, both meshes closed and the engine taking the boolean's mesh after every draw and push;a_flat_triangle_that_meets_its_neighbours_is_taken_by_the_engine(a board made at an angle whose top keeps such a triangle, the engine taking that mesh and a further hole through the face);turned_board_sweep(24 boards on every run: half made at an angle with notches and holes in line on the top, half made square and turned whole about the front's normal, the vertical or a skew axis, by angles that are not quarter turns, up to 5 km out) andturned_board_sweep_long, ignored.crates/export:stl::tests::a_flat_triangle_is_written_with_a_zero_normal. The second stage's guards, each with a test that fails when it alone is taken out (planted one at a time in a copy): the area check on its result, which is there so the stage never hands back triangles that meet the rings but do not cover the face once (the_second_stage_keeps_nothing_that_fails_the_area_check: a triangle given both ways round, one of them clockwise, over a fan; measured once in review, in 600,000 polygons the check acted once, on a 27-point polygon with repeated points, and there it kept open a face the stage would otherwise have closed with no flat or clockwise triangle); the refusal of a split into a piece that is itself flat (the_second_stage_makes_no_flat_triangle; measured once in review, it acted 1,174 times in those 600,000 polygons, in 856 stages, 372 of which ended closed and 484 open); every corner used (the_second_stage_keeps_nothing_that_leaves_a_corner_out); only flat triangles that carry a left-over edge dropped (a_flat_triangle_that_meets_its_neighbours_is_kept_by_the_second_stage); both counts, and the cheap first check, exact both ways (a_ring_edge_used_back_the_other_way_is_not_met); and an end of an edge not on it (an_end_of_an_edge_is_not_on_it). Two planted faults still pass every test: the stage's final exact check of its result taken out (it acts only if the passes run to their bound of four times the points and triangles, which no input tried reached), and the stage leaving its loop instead of returning when it can drop nothing (the final check then gives the same answer for every input). On the code before this change the two board tests fail (the last rectangle drawn leaves 5 edges of the solid's mesh open), and the new tessellator tests call functions that code does not have; with the second stage taken out, the tests of lane 104's pinned polygon, the same triangles on the unturned grid, the doubled flat triangle, the triangle with two corners at one place and the 5 km and 0.1 mm polygons fail.turned_board_sweep's 24 boards, the flat-triangle board and the STL test pass on that code too: they hold what was already so. - Measured once, WSL Ubuntu 24.04, the code before this change against this one. With the generator lane 104's review wrote (grids of holes, pegboards, random outlines, L, U and comb shapes, holes touching at points, rows of round holes, stars and slivers, scaled 0.1 mm to 100 m, moved up to 5 km, turned, mirrored; not in the repository), 3,999,999 polygons: the triangles of 32,013 did not meet their edges before and of none after, none that met before fails to after, no polygon gives an error where it did not, and every one of the 3,967,986 that met before comes back with the same triangles, index for index and in the same order. Of the 32,013, 30,488 were grids of holes, 1,057 holes touching at points or the outline, 332 random outlines with corners along their edges, 130 L, U and comb shapes, 5 rows of round holes and 1 sliver; 31,788 were turned by an arbitrary angle, 110 by a quarter turn and 115 not turned (scaled, so in line only to rounding). In 24,927 lane 104 tried to split the flat triangle and refused, in 6,371 the flat triangle's left-over edge had no corner inside it, in 713 the fan refused was a neighbour's, and 2 met the edges by lane 104's count but not exactly (one of them a flat triangle given both ways round). The 36,637 triangles the change made are all strictly counter-clockwise and none is flat. A second run of 1,500,000 polygons from another seed: 12,292 open before, none after, and the 1,487,708 that met before the same.
turned_board_sweep_long(12,000 boards from seed 20261201): before, 13 of 68,323 pushes were refused as "not a closed manifold" and 16 steps left a mesh open whilecheck_modelpassed; now none of either, and 68,135 pushes are taken (13 more). The long fuzz (FUZZ_CASES=10000 FUZZ_SEED=20261011 FUZZ_REPORT=1) gives 156,493 ops accepted and 116,911 refused on both, and every one of its 10,000 sequences takes and refuses the same ops and ends on the same model hash. Every export (STL, 3MF, OBJ, GLB, DXF), the view mesh andObject::tri_solidof the model each of the 25 golden files and 76 repro files ends on, and each step's hash and the face ids, are byte for byte the same on both. The turned-grid property passed 10,000,000 cases (five runs of 2,000,000, release) and the exact one 2,000,000.triangulateper call in release, best of seven runs, before and after: a quad 383 and 389 ns, a square with a square hole 1,072 and 1,067 ns, a square with two holes in line (which lane 104 mends) 3.01 and 2.97 us, a 24-sided polygon 2.52 and 2.54 us, 200 square holes on a grid 0.78 and 0.79 ms, 200 round 32-sided holes 4.61 and 4.57 ms, a 5,000-point outline 9.27 and 9.32 ms; lane 104's pinned polygon, which the second stage now mends, 4.0 and 8.1 us. - Not fixed: a polygon whose triangles cannot meet its rings as given stays open as before: a ring with a point repeated, a ring edge given twice, a corner lying on a ring edge it is not part of, a slit. Where the second stage cannot close a face it keeps the triangles it had, and a push through it is refused as before. None of the boards or faces the kernel made in the measurements above was such a polygon. Measured once in review, with a generator not in the repository (seed 20261207, 1,500,000 polygons): of 1,011,387 clean inputs, 19,144 were open before this change and 0 after; of 116,208 with holes touching at points, 2,622 before and 0 after; of 372,405 that cannot meet their rings as given, 159,218 before and 154,798 after; no face that met its rings before came out different, and no Ok became an Err or the other way.
- What a face that enters the second stage costs, measured once in review (release, per
triangulatecall, the review's own harness): faces that do not enter it cost the same within noise; faces that do cost more: a 40 x 25 pegboard turned, 25.2 ms before and 31.5 ms after; a 5,000-point outline with a row of holes, 29.6 and 41.0 ms; a notched comb outline that cannot be closed, 17.7 and 32.0 ms; a 40 x 25 grid with shared edges that cannot be closed, 15.9 and 26.1 ms. The most passes seen was 25. A face that cannot be closed pays this on every call. - Not changed: the model hash, the file format, the op log, the refusal's words, the area check's bound. Tried in a headless Edge build with the real tools, on the code before this change and on this one: the board drawn with the Rotated Rectangle (43 in and 20 in typed, the first edge's direction from the cursor) and pulled up 3/4 in, guides from its edges with the Tape, and the hole and the three notches drawn as rotated rectangles on the guides' crossings and pushed through. The board came out at 57.80 degrees, not 57.6, and both builds took every step with the volumes by hand and a closed STL: the fault was not met from the tools there, and the kernel test holds the board at the angle that meets it.
Fixed (lane 104, 2026-11-30) #
- A hole pushed through beside another at the same height goes through (#166). On a 38 x 3/4 x 20 in board with three notches cut up from its bottom edge and an 8 x 4 in hole 14 in from the bottom, a second 8 x 4 in hole drawn beside the first at the same height and pushed through was refused with "Can't do that. push/pull through the solid: operand 0 is not a closed manifold: NotManifold", and nothing changed. The board was a valid solid. What was wrong was how its front face was cut into triangles: with two holes whose bottom edges lie on one line, earcut (the library that cuts faces into triangles) joins the right hole to the left one along that line, drops the two ends of that join as points in line with their neighbours, and gives a triangle whose edge runs from the right hole's far bottom corner to the left hole's, straight through the two corners between them, which the triangles in the gap between the holes use. The triangles covered the face exactly and every corner was used, so the area check and the step that puts dropped corners back (
cover_all_vertices) found nothing; but at those two corners the triangles did not meet edge to edge, so the solid's mesh was open, and the boolean engine refuses an open mesh. The notches were not needed: a plain board with two rectangles drawn in line was enough. - Now
triangulate(crates/tessellate/src/lib.rs) checks that its triangles meet the face's edges: every edge of the face is an edge of one triangle and every other triangle edge an edge of two, counted with points at one place taken as one (ring_mismatch, and a cheap count on the indices as given that settles the usual case,meets_rings_as_given). Where they do not, each triangle edge left over is split at the corners left over that lie on it, to rounding and strictly between its ends, into a fan from the triangle's third corner, as long as every piece turns the right way (split_edges_through_vertices). A face whose triangles already met its edges keeps exactly the triangles it had. The issue's fifth hole and a sixth at (22.5, 14) to (30.5, 18) go through, each taking away its own volume. The words of the refusal are unchanged; they are what a person sees when the engine is given an open mesh. A face whose corners are exactly in line, as on the issue's board, is now cut into triangles that meet; a face whose corners are in line only to rounding still may not be (see Not fixed below). - The same triangles go everywhere a solid is turned into triangles, so the fix reaches each of them. Wrong before for such a face: Push/Pull through it and every other boolean on the solid (refused, as reported); STL and 3MF export (
Object::tri_solid) and OBJ export, whose meshes were not closed at those corners, though the solid was; and autofold, which cuts a face it bends into those triangles and refused the move as the solid passing through itself. Not wrong: the solid's volume (the triangles covered the face exactly; the tests below check each step's volume by hand), and, by reading the code rather than by a test, the area, the cut list and the nesting, and the view, GLB, DXF, section fills and picking, which draw or measure each face from its own triangles, which covered it exactly. Their triangles for such a face change too. - One more case of the same fault, found by a property test while this change was made: where a hole's corner lies exactly on the line through two other corners, earcut can give a flat triangle along that line. Each triangle was turned counter-clockwise by the sign of its own cross product, and rounding gave the flat one the wrong sign, so it ran against its neighbours and the mesh was again open. All of earcut's triangles have one winding, so now they are all turned one way, by the sign of their summed areas. A face with no flat triangle turned that way keeps exactly the triangles it had.
- Tests:
crates/tessellate/src/lib.rs(earcut's own triangles for two holes in line, the T-junction named and mended with two more triangles and one cut; the issue's board face; holes in line mirrored and turned a quarter; the flat triangle; every polygon the file triangulates elsewhere left exactly as it was; a point split at only on the edge, within 1e-12 of it and not 1e-6, between its ends, in order along it, and never into a piece turning the wrong way; the cheap count against the full one; the count by place and by the polygon's side; a triangle mended at its third edge too (the_third_edge_of_a_triangle_is_mended_too), a second pass after a split that leaves an edge over (a_split_that_leaves_an_edge_over_is_followed_by_another_pass), and a point at -0.0 taken as the point at 0.0 (a_point_at_minus_zero_is_the_point_at_zero); two property tests of rectangles with up to five holes on a whole-number grid, checked by a count written apart from the code:holes_on_a_grid_meet_their_rings_where_the_arithmetic_is_exact(scaled by powers of two, moved by whole units up to 5 km, turned by quarter turns, mirrored: every coordinate a short binary fraction, so the triangles must meet the rings and none may be clockwise) andholes_on_a_scaled_moved_or_turned_grid_triangulate(any scale, move and angle: no error, the area right to 1e-5, every corner used, no triangle clockwise by more than 1e-6 of the area; it does not ask that the triangles meet the rings, since there they need not, see Not fixed); andknown_limit_corners_in_line_only_to_rounding, ignored, the input of that limit with the result wanted),crates/kernel/tests/board_holes.rs(the issue's five steps and a sixth, each step's volume by hand and the genus; the smallest board and step, 3 x 3/4 x 3 in, drawn and pushed; holes in line by their bottoms, tops, both, sides, three in a row either way, a notch's top in line with a hole's bottom, and a grid of four; a corner of such a face moved with autofold; after every steptesting::check_model, both meshes closed and the engine taking the boolean's; a sweep of 24 boards on every run andguide_grid_sweep_long, ignored; the long fuzz's push below; the reporter's other tries on the notched board,the_reporters_try_a_a_rectangle_left_drawn_beside_the_next,the_reporters_try_b_the_middle_hole_first,the_reporters_try_c_the_right_hole_firstandthe_reporters_try_d_undo_one_press_short, D being where one Undo press too few leaves the board, the left rectangle drawn but not pushed),crates/export(obj::tests::holes_in_line_close,stl::tests::holes_in_line_are_watertight), and two repro files,crates/kernel/tests/repro/2026-11-30-holes-in-line-through-a-notched-board.json(the six steps' ops, replayed with every fuzzer invariant; the test checks it holds its ops) and2026-11-30-long-fuzz-push-through-a-face-whose-triangles-were-open.json. On the code before this change eight of the ten kernel tests that run by default (all but the reporter's tries B and C, which were taken before too) and the two export tests fail; the repro replays there too, the fifth push refused cleanly and the sixth refused because the face it names is not there. The tessellator's new tests call functions that code does not have; with the mend taken out, the tests of holes in line, the issue's face, the two counts and the exact property test fail; with each triangle turned by its own sign again, the flat-triangle test fails; and the third-edge, second-pass and -0.0 tests each fail with that part of the mend taken out. - Measured once, WSL Ubuntu 24.04, the code before this change against this one.
guide_grid_sweep_long(2,000 boards from seed 20261130, whole or half inch guides, 2 to 7 rectangles each, their edges often copied from an earlier one, drawn on the front and pushed through): before, 978 of 6,441 pushes were refused as "not a closed manifold" and 1,146 steps left a mesh open whilecheck_modelpassed; now all 6,416 pushes are taken and no check fails. The long fuzz (FUZZ_CASES=10000 FUZZ_SEED=20261011 FUZZ_REPORT=1) gave 156,492 ops accepted and 116,912 refused before and 156,493 and 116,911 now: one push/pull, refused before with "operand 0 is not a closed manifold" on a valid solid, is taken now (its sequence is the second repro file above), and nothing else moved. The two property tests passed 5,000,000 cases each (five runs of 1,000,000, release).triangulatetakes longer for each face: in release, a quad 321 to 383 ns, a square with a square hole 827 to 1,060 ns, a 24-sided polygon 1.80 to 2.53 us, and a square with two holes in line, which is now mended, 1.18 to 3.07 us (best of seven runs of 200,000 calls each). Every export (STL, 3MF, GLB, OBJ, DXF), the view mesh andObject::tri_solidof the model each of the 25 golden files and the 74 other repro files ends on are byte for byte the same on both. The model hash, the file format and the op log do not change. Measured once in review, with a generator that is not in the repository: a face with 200 square holes on a grid took 0.39 ms to triangulate before and 0.86 ms after, 200 holes in one line 467 us and 773 us, 200 round 32-sided holes 4.15 ms and 4.64 ms, a 5,000-point outline 8.94 ms and 9.30 ms, and a push through the 200th hole of a 20 by 10 pegboard took 56 ms after the change (release, best of seven, on a loaded machine). - Not fixed: a face with three or more corners in line only to rounding (a board turned by an angle other than a quarter turn is the usual way to get one) can still be cut into triangles that do not meet, and then a push through it is still refused with the same words as before. It was so before this change too. The mend leaves such a triangle as it is, because cutting it at the corner would give a piece that does not turn counter-clockwise. Measured once in review, with a generator that is not in the repository, over 3,999,999 polygons (grids of holes, pegboards, random outlines, L, U and comb shapes, holes touching at points, rows of round holes, stars and slivers, scaled 0.1 mm to 100 m, moved up to 5 km, turned, mirrored): the triangles of 671,366 did not meet their rings before this change and 32,098 do not after it, none that met before and not after, and every one that met before came back the same, index for index. Of the 32,098, 31,852 are polygons turned by an arbitrary angle (49,278 of the 1,998,639 of those did not meet before); the other 246 (236 random outlines with points in line only to rounding, 8 chains of diamond holes touching at points, 2 grids) did not meet before either. Boards turned by 30 degrees and other angles, and moved 5 km out, before the holes were drawn took all 25 steps after the change, where the fifth hole was refused before it in each.
known_limit_corners_in_line_only_to_roundingholds one such polygon.
Fixed (lane 101, 2026-11-30) #
- A move that folds a solid through itself is refused (#157, from @aramshaw; #38). A board's top back corner moved with autofold through the board, to in front of its front face, folded the slope through the front: the two faces shared two corners and no edge, and crossed along the line between those corners. Every edge near that line starts at one of the two corners and leaves the other face there, so the check that a solid does not cross itself saw nothing, and the move was taken. The board looked whole, but a section through it found a cross-section winding the wrong way round part of the plane, and the cut's kept half did not close. Now two faces in different planes that share two corners may not both cover any stretch of the line through those corners that is more than the merge distance from all their edges (check 5 in
crates/kernel/src/intersect.rs,SelfHit::FacesCross), however many corners they share along it. Such a move is refused as one that makes the solid cross itself ("Can't do that. that would make the solid pass through itself" for the issue's move made in a headless browser build), and the model is left as it was; a fold that stays clear of the solid's other faces is taken as before. The model hash and the file format do not change. - A file saved before this change opens as it was saved. A
.shzcan hold such a solid, alone, in a group, or in a component with any number of copies, turned, scaled or mirrored, nested or not. Every solid read from a file, a model's and its components' alike, carries a mark (Brep::as_saved), and such a solid is let through when check 5 is the check it fails; any other check still refuses it. File > Open, the command-line reader and the MCP server's reader all read files this way. The mark stays when the solid is mapped whole, so the folded solid can be moved, turned, scaled, mirrored, copied and arrayed, made a group or a component, and its component's copies placed and moved, as before. An edit that reshapes it (a push or pull, moving a corner, edge or face, anything that rebuilds its faces) drops the mark and is checked in full, so it is refused while the fold stays; pulling the corner back behind the front face takes the fold out and is taken, and the solid can be deleted. Every import is checked in full: a folded solid imported from an STL or an OBJ comes in as a mesh with the reason. A file this version saves opens again with the same hash, and a kernel restart replays to the same model. Unsaved work that an earlier version set aside and that holds such a move cannot be restored by this version, none of its steps, the ones before the move included: Restore says "Could not restore the unsaved work: op 4: that would make the solid pass through itself" (the step's place in its log), the model open before is unchanged, and the work stays set aside and is offered again until Discard is chosen (tried in a headless browser build with work set aside by a build of the code before this change). What a refused restore should do is the open question of #151. - Tests:
crates/kernel/src/intersect.rs(the folded board caught, through the face grid and over every face; the fold the other way, the line through the slope's notch, not a crossing; a notched face still crossing beside its notch, a line along a face's edge not through it, a line shorter than twice the merge distance never a crossing, each with the faces either way round; a hole over the line's middle still crossing, one over the whole line not; an edge coming within the merge distance of the line's middle not hiding the crossing either side of it; a box with 2,000 corners along one edge checked in under 5 s, where trying each two of them took 2.1 s at 1,000 corners and 55 s at 3,000 in release; three shared corners on one line with the crossing only between the second and the third, and the same with the first two an edge of one face; an edge on the line's extension past the shared corners ruling out none of it; the folded board with 70 more corners on the front's bottom edge, the front listed first),crates/kernel/src/object.rs(the mark lets the fold through only for a solid marked as read from a file, a whole map keeps it, a rebuild or a change in place drops it with the checks kept before; a marked solid is still refused for a crossing another check finds),crates/kernel/tests/transforms.rs(the move refused as self-intersecting, the hash unchanged; the corner moved down the back still a valid fold; the corner only 10.5 to 15 µm in front of the front face, away from the line's middle, refused too),crates/kernel/tests/saved_folds.rswith eight files incrates/kernel/tests/saved/written by the code before this change (the folded board alone, in a group, in a component with one copy, two copies and five copies turned, scaled unevenly and mirrored, in a group in a component, in a nested component, and two folded boards): each opens with that code's hash, every solid in it still folded, saves and opens again with the same hash, and replays; the board moved, turned, scaled evenly and unevenly, mirrored, copied, arrayed, grouped and the group turned, made a component, its copy placed, mirrored and made unique, and every copy of each component file placed and turned, each taken, saved and opened again, replayed, undone and redone; a box drawn inside a component holding the board, its copies derived again; push/pull and a corner move that keep the fold refused, also after a whole move, on a copy and inside a component; the fold taken back out taken; the issue's move on a board drawn after opening refused, also after a whole move and after saving and opening again; the board's faces imported as a mesh; a compacted log replayed),crates/import/tests/folded.rs(the folded board exported as STL and OBJ and imported again: a mesh with the reason, never a solid) andcrates/kernel/tests/repro/2026-11-29-autofold-folds-a-face-through-another.json(the issue's thirteen ops, replayed every run; the move at op 12 now refused). On the code before this change the three transforms tests and the repro fail, the repro with the kept half not closed. - What the review changed from the pull request: the pull request refused such a file when it was opened ("Can't do that. the file cannot be opened: 1 topology violation(s); SelfIntersectingSolid(FacesCross { a: 1, b: 3 })" for the issue's board saved by the code before), so a model saved before an update could no longer be opened. The review added the mark on a solid read from a file and kept by a whole map (
Brep::as_savedandBrep::mark_as_savedinbrep.rs, the check inObject::validate, the mark set insnapshot.rsand kept inObject::mapped),self_intersection_as_savedinintersect.rs, the tests above other than the pull request's own, and words in this entry,docs/adr/0001-kernel.md,docs/USER-GUIDE.mdanddocs/DEVELOPMENT.md. Check 5 itself is as aramshaw wrote it. - Measured once on WSL Ubuntu 24.04, release builds, the code before this change against this one. The fuzzer with
FUZZ_REPORT=1, 10,000 sequences on each of the seeds 20261011 (CI's), 1, 2 and 31415926 (the issue's), gave the same totals on both (156,492 ops accepted and 116,912 refused on CI's seed). Of 309,960 autofold moves (every corner over a 13 by 13 by 13 grid of 0.25 m steps and every edge over a 7 by 7 by 7 grid of 0.5 m steps, of the issue's board, a 1 m cube, a box with a through hole, an L-shaped solid, a wedge, a 24-sided cylinder and a notched solid, each with three section planes, and 1,134 moves of the board's corner to within 1 mm of the front face's plane, either side), each followed bytesting::check_model, the same 118,655 were good on both and none was newly refused. The 148 that the code before took and whose section check then failed are refused here. In 120 of them a grid of 24 by 24 by 24 points over the solid the code before made found a winding number of -1; the other 28, all the corner within 1 mm of the front face, were sampled again with points near the line the two faces share, and each showed -1 there. 128 moves that both refuse now say "pass through itself" where they said "turn the solid inside out": a solid that both crosses itself and has no positive volume is named for the crossing, as for the other four checks. The self-intersection check cost the same on both within the run-to-run spread (medians of five, two rounds) for prisms of 2,000 and 10,000 sides, pyramids of 1,000 and 10,000 sides, a sphere of 4,828 triangles, a 200 by 200 grid of triangles on a box and a box with 2,000 corners along one edge.
Fixed (lane 103, 2026-11-30) #
- When the kernel is given up on, the status line now ends on the words that say to reload the page (#161, from @akvalentine977; #155). Found by @aramshaw. A kernel that fails more than three times in half a minute is not restarted again: nothing more runs until the page is reloaded. The request that met that fourth failure was refused with "The kernel stopped (…) and was restarted from your last step; this did not change the model", and that refusal reached the status line just after the app had been told the kernel was given up on, so the last words said the kernel was fine. The restart is now counted before what was running is refused, and on the one too many that request is refused with the give-up words ("The kernel failed 4 times in half a minute (…); reload the page."), as every later request already was. The status line keeps "…the model could not be rebuilt: The kernel failed 4 times in half a minute (…); reload the page.", the viewport's HUD says "The kernel failed 4 times in half a minute (…); reload the page." where it said "Kernel error: " and the restart words, and a refused import's report gives the same reason.
- It was the same for each way a restart starts: a failure inside the kernel (the case reported), a worker that dies, and Cancel on a long import or open. A request past its deadline goes the same way in the code, but it cannot be the fourth restart in half a minute: every restart refuses every request waiting, so a request still waiting was sent after the last restart, and the shortest deadline is two minutes.
- A kernel given up on now stays
errorin the app (data-kernel). A later request used to turn it tomissing, the state of a kernel that was never loaded; with the change above the request that met the give-up would have done so at once. Nothing shown depends on it: the HUD, the cut list and the nesting treat the two alike. - What does not change: a restart that is not one too many (the request refused with "was restarted from your last step", a fresh worker, the model rebuilt from its log, the app told once it is rebuilt), the limit (more than three restarts in half a minute), the words, and the "Working…" mark, which goes when the request it was shown for is refused. No kernel code changed. The unsaved work is still offered after a reload.
- Cancel counts as a restart, as before: four Cancels of a long import or open within half a minute give the kernel up too (one run in a headless browser build, before and after this change), and the status line now says to reload the page then as well.
- Tests:
src/kernel/client.test.ts(the request that meets the restart one too many is refused with the give-up words and not with "was restarted", for a failure inside the kernel, a dead worker and Cancel, the app told once and no fresh worker made; a wait the app was told of ends then, for a dead worker and Cancel; six restarts 11 s apart never give the kernel up; on the give-up the worker is stopped and no fresh one is made; after it a Cancel or a late worker error tells the app nothing more),e2e/containment.spec.ts(four imports in a row that each panic: the status line ends on "reload the page" anddata-kerneliserror, the HUD gives the give-up words, and all three stay so after an Undo is refused, with no busy mark left on). Without the change to the client four of the seven unit tests fail and the e2e test ends on "was restarted from your last step"; without the change to the app the e2e test readsmissing. - The fault needs
?kerneltest=1and its test hook, so it was tried only in headless browser builds (Chromium by akvalentine977, Edge in the review), not in the desktop app.
Fixed (lane 102, 2026-11-30) #
- Plugins > Install from .zip no longer moves the folder that Open and Save start in (#160, from @akvalentine977; #134). Until now Install from .zip moved it: the folder of the zip picked became the folder kept for the next Open, Save and export (
sawhorse.lastFolder), even when the install then failed. The #125 entry below says one folder serves every dialog, Install from .zip included; that was true when it was written, and is not now. A plugin's zip is often in Downloads, so the next File > Open started in Downloads and not where the models are. Install from .zip now follows the rule Load Unpacked Folder has had since #125: the dialog starts where Open starts, and the folder of the file picked is not kept. It is one option on the page's file picker (keepFolder: false,src/io/files.ts), passed by the one caller that installs a plugin (src/plugins/usePlugins.tsx): the Plugins menu's entry, the button under the list in the Plugins pane, and the browser's Load from .zip for This Session, which keeps no folder anyway. - What does not change. A plugin's own file dialogs are work on the model, an import or an export, and keep the folder of the file opened or saved as before. Where the Install from .zip dialog starts: it already started where Open starts. Windows and macOS: the shell names no folder there and the dialogs start where the system starts them, so nothing is seen to change. No change to the shell, the capabilities, the storage key or any file format.
- Tests:
src/io/folder.test.ts(5 more: the dialog is given the folder Open is given; the folder of the zip picked is not kept, with a folder kept before and with none, and when the zip cannot be read; a plugin's own pick keeps its file's folder) ande2e/dialog-folder.spec.ts(3 more, the desktop bridge stood in for as on Linux: a zip in Downloads is picked from Plugins > Install from .zip and read, the folder kept stays the model's, and the next File > Open starts there; the same from the button in the Plugins pane; a plugin's own file dialog, through the plugin'sfile.open, starts where Open starts and keeps the folder of the file picked). In a headless browser build with the bridge stood in for (one run each), the same held with no folder kept before (the dialog starts in Documents and none is kept after), after a cancelled dialog, and with the same zip picked twice; the browser build keeps no folder, as before. - Tried by hand by akvalentine977 on 2026-11-29, on the .deb, .rpm and AppImage built from this branch before it was moved onto #153 and #154 and before this entry was written (its own code is the same), each from a first start with a plugin's zip in Downloads: GNOME 48.7 (Debian 13), and KDE Plasma 6.8.2 (openSUSE Tumbleweed, and CachyOS with the AppImage). On all three: with no folder kept yet, Plugins > Install from .zip starts in Documents, and after the zip is picked from Downloads the next Open still starts in Documents; with a model then saved into Pictures, Install from .zip starts in Pictures, and after the zip is picked from Downloads again the next Open still starts in Pictures. The install itself did not finish on any of the three: it ended in "Could not install the plugin: forbidden path" for the staging folder under the app's data folder. That fault is not from this change, which leaves the installer and the shell alone, and is reported as #159. The folder is kept, or not, when the file is picked, before the install starts, so the looks above stand. Not tried by hand: Windows and macOS, the button in the Plugins pane, and the other four Linux desktops of the earlier rounds.
Added (lane 100, 2026-11-29) #
- While a long edit runs, the status line says so and the cursor over the model shows busy (#154, from @aramshaw; #144). The kernel runs in a worker, so during an edit that takes seconds (an array of a large group, say) the window kept drawing and looked idle: the status line kept the words of the step before, there was no busy mark, and the cursor did not change. A person could take the edit for one not taken and do it again, which queued a second one behind the first. Now, once a request to the kernel has waited about a second for its answer (every request counts: in a headless browser build a large edit, a save, the cut list and the nesting of a large model each showed it), the status line says "Working… 4 s", counting the whole seconds, in place of the last step's words, and the cursor over the model is the busy pointer; both go when it answers, and the step's own words come back. A tool's key pressed meanwhile waits for the edit, as before, so that tool's hint shows then; a tool's button picks it at once, and the step's words come back under its name. It says only that something is running, not what. The status line is a live region (
role="status"), and the seconds arearia-hidden, so they are not in its accessible text, which stays "Working…" while the count changes (read from the accessibility tree in a headless browser build), so a reader is not given a new text every second; a real screen reader was not tried. Nothing is blocked: only what is shown changes. A message with buttons is left as it is (an import's or an open's Cancel, the offer to restore unsaved work), with the busy cursor beside it. A request's wait counts from its turn, the later of when it was sent and when the request before it was answered (busySinceinsrc/kernel/client.ts), so a hover's pick sent behind a long edit neither starts the count again nor carries it on after the edit. The app is told only of a wait that has lasted a second (onBusy), so the many short requests, a hover's picks among them, make it draw nothing more than before; while a wait lasts, the app draws once a second. On a large model the first move over it after a large edit can take seconds of its own, and the mark shows for that too: after an array to 10,000 parts in a headless browser build, the step's words showed for about a second, then "Working…" for 4 to 5 s more while that hover waited (four runs). - Tests:
src/lib/busy.test.ts(nothing for the first second, then whole seconds; the count shown at once when the app is told, and no timer left once the wait ends; a new wait never showing the last one's count, not for a single draw; one draw for each new count and none for a reading that changes nothing),src/kernel/client.test.ts(the app told only once a request has waited a second, and when that wait ends; five short requests never told; a request sent behind a long one counted from when that one answered; a restart counting from the rebuild; a refused edit ending a told wait; a kernel given up on ending the wait for good; no timer left afterdispose; the test-only stall on the next edit only, once),src/components/ValueBar.test.tsx(the words while busy and back after, over the tool's hint and over a refusal, the refusal back in red after the wait, the seconds left out of the line's accessible text, a message with buttons left as it is) ande2e/busy.spec.ts(an edit the kernel takes 3.6 s over: "Working…" with both marks and the busy cursor in the same look, the first count no sooner than a second after the wait began, at least two counts, each never ahead of the clock, then the step's words, the cursor and the rectangle; moves over the model during a long edit, each one made while it said Working with the busy cursor, the count only going up and the step's words following the last Working; Paint, a tool with a cursor of its own, showing the busy cursor while its edit runs and its own after; an edit that answers within a second showing no mark at all). The long edit in the e2e test is made with a test hook (?kerneltest=1,stallNextEdit(ms)): the worker stays busy that long before it runs the next edit. - What the review changed from the pull request: two small code changes, tests and words. The status line is a live region, and with the count in its accessible text that text changed every second; the seconds are now
aria-hidden, so the accessible text stays "Working…". The hook set its state at each reading, and React drew the app once more after every change to find nothing changed, so a wait drew twice a second; now a reading that changes nothing sets nothing. A new unit test catches each. The two timing e2e tests waited for exact counts and assumed four moves fit in the edit: beside a full unit test run, 4 of 120 test runs failed (a first count of 2 s, a move made after the edit had answered); they now wait for states and check each count against the clock, and the spec passed 240 of 240 test runs beside the same load. No test caught a refused edit leaving a told wait on, or a tool's own cursor winning over the busy one; a test for each is added (a client test, and an e2e test with Paint).
Fixed (lane 99, 2026-11-27) #
- On Linux the desktop app's window no longer opens larger than the screen (#153, from @akvalentine977; #79). The window is set to open 1440 by 900, and on KDE Plasma the window manager left a new window at the size it asked for: on a 1280 by 800 screen it opened 1440 by 928 with its title bar, so minimise, maximise and close were off the right edge, and on a 1440 by 900 screen its bottom 58 to 74 px, the status line among them, were below the top of the panel. Now the window opens maximised when it is wider than the narrowest screen, or when the shortest screen is not at least 100 px taller than it (room for a title bar and a panel, which the app is not told about under Wayland). The screens are each monitor's work area, in the pixels the desktop reports to the app (GDK's own units), so at 100% this takes in many laptop screens: 1366 by 768, 1440 by 900 and 1600 by 900. On 1680 by 1050, 1920 by 1080 and larger at 100% it opens 1440 by 900, as before. With a display scale other than 100%, the size the app is given was not tried. As the size to go back to when un-maximised, the app asks for seven eighths of the screen each way, no larger than 1440 by 900 and never under its minimum of 900 by 600 (on a screen smaller than that minimum, the minimum). KDE Plasma used it: 1120 by 700 on a 1280 by 800 screen, 1120 by 728 with its title bar (measured by akvalentine977). Cinnamon and GNOME gave sizes of their own. With more than one screen the narrowest width and the shortest height decide, so beside a laptop's own screen the window opens maximised on a large monitor too. The rule is
fitin a new crate,src-tauri/window-fit; the shell asks it from the app's setup hook (fit_windowinsrc-tauri/src/lib.rs), once the window has been created and shown, and the maximise follows straight after, so a desktop can show the window at its first size for a moment. Windows and macOS are left as they were: therefit_windowreturns at once. - Tauri's own setting for this,
preventOverflow, was tried first by akvalentine977 and is not used. For a window given no position, Tauri measures it against the monitor GDK calls primary and skips the setting when there is none (tauri-runtime-wry2.12.1). Under Wayland GDK named no primary monitor in his GTK script on Debian 13 (GNOME 48.7), and with the setting alone the window still opened 1440 by 928 on both Plasma systems. - Measured by akvalentine977 on builds of the pull request, the window's size read from the window manager, on KDE Plasma 6.8.2 under Wayland (openSUSE Tumbleweed with the .rpm, CachyOS with the AppImage) and Cinnamon 6.6.4 under X11 (Linux Mint 22.3 with the .deb), in virtual machines with one monitor: at 1280 by 800 on Plasma, maximised and then un-maximised to 1120 by 700; at 1440 by 900 on Plasma, maximised and then 1260 by 787; at 1920 by 1080 on Plasma and Cinnamon, 1440 by 900, not maximised. Cinnamon maximised the window on a 1280 by 800 screen by itself, with the change and without it, and un-maximised it to a size of its own (960 by 600 there); GNOME, by screenshot on Debian 13 (48.7) and Fedora 45 (51.1) at 1280 by 800, filled the screen with the change and without it. Tried by hand by akvalentine977 on 2026-11-27 on the .deb, .rpm and AppImage built one docs change before the pull request's head, at 1280 by 800: GNOME 46 (Ubuntu 24.04), 48.7 (Debian 13), 50.1 (Ubuntu 26.04) and 51.1 (Fedora 45), Cinnamon 6.6.4 (Linux Mint 22.3), and KDE Plasma 6.8.2 (openSUSE Tumbleweed, and CachyOS with the AppImage). On all seven the window opened with all of it on the screen, un-maximised to a smaller window all on the screen, and opened filling the screen again at the next start; on both Plasma systems at 1920 by 1080 it opened as a window that does not fill the screen. Not tried: more than one monitor, a display scale other than 100%, KDE Plasma or GNOME under X11, Windows and macOS. The desktop app was not run in the review.
- What the review changed from the pull request: words and three tests, no code. The code comments, this entry and
docs/LIMITS.mdno longer say the window is sized before it is first drawn: Tauri shows the config's window as it creates it, before the setup hook runs, and the maximise is done from GTK's main loop after the hook returns. What Tauri does withpreventOverflowis said as it is in its code, and what GDK and the desktops did as measured. The user guide anddocs/LIMITS.mdname the common screens that now open maximised. The release checklist indocs/DEVELOPMENT.mdnames the new crate among those whose version is bumped. - Tests:
src-tauri/window-fit(21: the screens measured, one pixel short each way, several screens, two screens where the narrowest is tall and the wide one short, a screen of no size, the minimum, a screen smaller than the minimum, a minimum above the size the window opens at, a window with no minimum, sizes at the top ofu32, a sweep of screen sizes held to the rule, logical pixels from physical ones). CI runs them intauri-check.fit_windowitself has no test: it reads the monitors from GTK.
Fixed (lane 98, 2026-11-27) #
- After an edit, Undo or Redo the selection holds only what the model still has (#152, from @aramshaw; #110). Selected faces, regions, solids, groups and section planes the model no longer had were already dropped, but edges, points, curves, guides and dimensions were not. Two edges of a rectangle stayed selected after Undo took the rectangle away, drawn in the selection's blue, and Follow Me's W read them as a path: a click on a box's face then swept it along edges the model did not have and added to the box. A box's edge stayed selected after Undo of the push that made the box, and after a push that moved it. Now an edge stays only while its own solid or sketch has a segment with both its ends, a point while one of its owner's segments ends there, a curve while it is drawn, and a guide or a dimension while the model has it (
heldByModelinsrc/lib/entities.ts). Ends are matched within the view's single precision. Under an active section plane a click picks an edge as the view draws it, cut short at the plane or on the cut's outline, so for a solid or sketch under the plane an edge stays while both its ends lie along one of its segments, each at one of that segment's ends or on a plane that cuts that segment (a plane placed on a face, lying along its edges, cuts none of them), or, for a solid, along the cut's outline inside it; a point the same way. Such an edge or point leaves the selection when the cut it was picked on is no longer drawn (Section cuts turned off in the Styles pane, for one), and Undo of that step does not select it again. An edge that is gone leaves the selection under a plane too, including a piece of an edge that a line split, once the line is undone. A solid's edge or corner moved, turned or scaled with Move, Rotate or Scale now stays selected where it went, and Undo and Redo select it where it was and where it went, as sketch shapes already did; before, it stayed selected where it had been. A value typed right after such a step moves, turns or scales it from where it was, once. An edge a later step splits (a line drawn from its middle, or the Redo of one) is dropped, as no segment has both its ends. - Tests:
src/lib/entities.test.ts(each kind kept while the model has it and dropped when it does not; an edge either way round, through single precision and 5 km up one axis; an edge of another owner, or with one end moved, dropped; two owners of one mesh asked in turn; under a section plane an edge cut short, an edge and a point on the cut's outline and a point along a segment kept, and a piece of an edge with an end neither at its segment's end nor on the plane, an edge off every segment, past a segment's end, along another owner's segment, along another solid's cut line, a sketch's edge along an outline, or of a solid the plane does not clip, dropped, and an edge with one end on a cut's outline, or on an outline segment's line past its ends; 9,600 seeded cases from 1 cm to 5 km against a plain scan with the same allowance),src/tools/move.test.ts(a solid's edges and points where a whole-solid move, a move of a group and a move of an edge's ends put them; a neighbouring edge stretching to the moved end; a distance typed after moving a solid's edge moving it once from where it was; a Ctrl copy and an array after it leaving the selection on the original),rotate.test.tsandscale.test.ts(a solid's edge turned and scaled, still selected where it went, the selection before it remembered for Undo; an angle or a factor typed right after turning or scaling it from where it was, once),e2e/follow.spec.ts(the issue's steps: nothing selected after Ctrl+Z, W reading no path, a click on the box's front face changing nothing; an edge and a corner of the box kept selected across an unrelated step, its Undo and its Redo, and W reading the kept edge as a path) ande2e/selection-held.spec.ts(under a section plane, an edge cut short, an edge of the cut's outline, a point where the plane cuts an edge and an uncut edge, each kept across an edit and its Undo; the issue's steps with an active plane in the model, the two edges leaving the selection after Ctrl+Z; half of an edge a line split, and its middle point, leaving it when the line is undone, with an active plane above the box and with one on its top face; a whole edge leaving it when Redo puts back the line that splits it; a box's edge moved up 2 in, still selected and read as a path, and selected again after Undo and Redo). On the code before this change the issue's e2e test fails, with the two edges still selected. - What the review changed from the pull request: tests and words. The check skipped on Redo alone, and a value typed after moving, turning or scaling a solid's edge moving it a second time from where the first step put it, had no test that caught them; the new Redo e2e test and the new Move, Rotate and Scale unit tests catch each. So do three more unit tests, for a copy or an array moving the selection, for an edge with only one end on a cut's outline, and for one on an outline segment's line past its ends. The split-edge e2e tests pressed Esc before the line had landed and could end the line before it was drawn (one run in two on a busy machine); they now wait for it.
movedSelection's comment had been parted from it by the new helpers and now sits on it again, and says what it does with a solid's edges and points. This entry says what happens when the cut a selected edge was picked on goes.
Changed (lane 97, 2026-11-26) #
- A line or a section plane drawn in one copy of a component stays in that copy when the component loses the group or the component it was in (#149). Each copy of a component is rebuilt from its definition, and what a copy holds that the definition no longer has is removed there. A line drawn in one copy is not part of the definition, but when it was drawn in a group of that copy and the group was then deleted, exploded or made into a component in another copy, the line was removed with the group, with nothing said. One level deeper it was the same for a line or a section plane in a group of a nested component and for a line drawn directly in a nested component, when the nested component left. Undo brought each back. Now each stays in its copy, at the same place and with the same id, in the nearest group or component around it that the component still has, or in the copy itself, at every depth. Only what holds it changes (lines and planes are kept in world coordinates), so in a copy that is turned, mirrored or scaled it stays exactly where it was, and a kept line is not joined to lines already there. Three cases in plain words: a group inside a group the component keeps hands what was drawn in it to that kept group, not to the copy (a section plane there went to the copy before); Make Component of a group in another copy puts a new component in this copy in place of the group, and what was drawn in the group goes to the group's parent, not into the new component; and the tidying that follows is as it was, so a copy left with nothing but a kept line stays, and one left with nothing but a kept section plane is removed with the plane, as a copy holding only a plane of its own is. A kept line can so keep a copy or a group that the tidying used to remove: the Outliner then shows a component or group row holding only the line. Which plane is active follows the rule from before: where the kept plane arrives with no active plane there, the first active one met stays active and any other moved in is switched off; where one is active already, it stays so and the planes moved in are switched off. A model whose steps went through this, run again from its steps, now comes out with the line or the plane kept. Saved files open as saved: a
.shzholds the model, not its steps. Unsaved work set aside by an earlier version, whose steps went through this, is not restored: Restore says "Could not restore the unsaved work: an older version set it aside, and one of its steps gives a different result in this version", and the work stays set aside and is offered until it is discarded. Its later steps name sketches, planes, groups and components by ids that differ here once the line is kept, so replayed as they are they could build something else without a word (a push landing on another rectangle). Such work is refused even where it would have restored with only the line kept, and where the step was undone later. Unsaved work from an earlier version that never went through this restores as before, as does unsaved work this version sets aside (its record in the browser now carries a mark,rules: 1; the.shzformat and the op log are unchanged). What a refused restore should do in general is #151. - Tests:
crates/kernel/tests/stale_members.rs. The tests that held the old result now hold the new one: the two lists from #148 (the line in the copy after the Delete, and after the Make Component in the copy and not in the new component), the single group of #149 (now with the issue's own list), the other order (both lines in the copy), and the planes of both groups (the same with and without the line, the line kept); and incrates/shzthe copy emptied by tidying (the copy holding the line drawn in its group now stays, with the line). New: a copy turned a quarter round, turned by another angle, and mirrored, each line kept to the bit; a group inside a kept group handing its line and plane to the kept group, whose own active plane stays active; everything drawn in a vanished nested component and its group going to the copy (the nested component's own plane active, its group's switched off); a group inside a kept nested component, and a nested component inside a kept group, each handing what was drawn in it to the kept one; three groups inside each other lost, and a nested component inside a lost group, each handing what was drawn in it to the copy whatever order the loop takes them in; a kept line arriving beside the copy's own lines on its plane, nothing joined or split; an emptied copy staying with a kept line and going with a kept plane, as with a plane of its own; Explode in one copy handing the other copy's line to the group's parent; every list undone and redone to the same hashes, saved and opened as the same model, every line and plane where it was to the bit. The 300 seeded models now check that every stroke and plane whose node vanished, unless the edit deleted that node itself, is in the innermost node around it still there (or in a node the edit made inside that one), at the same place with the same id. A one-off run whose driver is not in the repository compared this kernel with the one before it over 4,000 seeded models (239,614 ops): 2,707 models came out different, every one by a line or plane kept as above (29 of them through the tidying that follows), and none otherwise; each model's steps replayed through this kernel gave the same model 2,248 times, a model different as above 1,644 times and a refusal 108 times, each after such a step; every saved file opened as the model it was saved as. New for unsaved work from the earlier version: instale_members.rsa copy scaled evenly and unevenly keeping the line to the bit, and the guarded replay of logs that version wrote (the log whose push lands on another rectangle when replayed plainly refused at its Delete, also with Undo and Redo after it; a log with no such case and one with only the plane move both versions make accepted with that version's own model and log hashes; this version's own log replaying plainly as it was); insrc/lib/autosave.test.tsthe mark written by saveAutosave and setAside, kept by adoptOffered, and records without it or with fields this version does not know still read; insrc/kernel/client.test.tsthe guarded request asked for only when told; ande2e/older-unsaved.spec.ts(the refused restore, the model open before untouched, the offer kept after a reload and Discard removing it alone; the same log with the mark restored with the line kept; an unmarked log with no such case restored as before; this version's own work set aside with the mark and restored). A second one-off run whose driver is not in the repository had the earlier version write 4,000 logs and replayed each through this version guarded: 1,316 were accepted, each giving exactly that version's model, ids and log hash (none differed), and 2,684 were refused, 2,679 of them at the very step where the plain replay first differs and 5 at a step whose difference the tidying in that same step removed again (an over-refusal; in 2 of them a later step differs).
Fixed (lane 96, 2026-11-26) #
- Delete or Make Component in a component no longer stops the kernel when another copy has a line in a group inside that group (#148). Each copy of a component is rebuilt from the definition, and what a copy holds that the definition no longer has is removed there, a group with everything in it. The groups to remove are taken in the order of the slots they are stored in, which is not always the order they were made in (a slot freed by a delete is used again). When the outer group came first, it took the inner group and its lines with it, and the inner group's turn then read a line that was gone: the kernel stopped, was started again from the last step, and the edit was not made. Now a line that is already gone is skipped. The result is the one the kernel gives when the inner group comes first, which never stopped it: the section planes of both groups go to the copy (when the copy has no active plane of its own, the first active one met stays active there and the other is switched off; when it has one, that one stays active and both are switched off), and a line drawn in a group that vanishes this way was removed with the group, as before. Such a line now stays with the copy (lane 97 above, #149). Nothing else changes: no model hash, op log or saved file.
- Tests:
crates/kernel/tests/stale_members.rs(the two lists from #148, a Delete and a Make Component, each undone and redone to the same hashes; the planes of both groups going to the copy, the same with and without the line, and switched off both when the copy has an active plane of its own; two planes of one vanished group going to the copy as they were; a solid and an open mesh deleted in one copy going from the other; the other order and a single vanished group holding the result #149 then had (the line removed with the group; lane 97 changed it); and 300 seeded models of components holding groups inside groups, with strokes and section planes drawn in the copies' groups, then Delete, Make Component, Make Group, Explode, Make Unique, Undo and Redo in contexts opened from the top (Move Into is tried and refused in these models): no panic, a stroke whose group vanished gone, a plane whose node vanished either in a node that held that node, at the same place, or gone, and gone only when its node was deleted itself, sat inside an instance that vanished, lost every node around it (a copy emptied and tidied away), or the edit was an Explode, everything else where it was, Undo and Redo giving the same hashes; five of its tests fail on the code before this change, the seeded one with the panic) and the four recorded sequences that found it, incrates/kernel/tests/repro/2026-11-26-*.json, each stopping the kernel on its last op before this change.
Fixed (lane 95, 2026-11-26) #
- A value typed into Scale, Move, Rotate or Offset never undoes a step the tool did not make (#147, from @aramshaw; #84). Each of these tools changes its last step when a value is typed right after it, by an Undo and the step again. After any other step the Undo took that step instead: Scale, then a Move, then S and
2undid the Move and scaled the board x2 along red from where it had been; a Move after a Rotate undid the turn, a Rotate after a Move undid the move, and an Offset after a Push/Pull undid the pull and was refused. Since #82 the tool in use forgot its step on Undo, Redo, New, Close, Open and Restore Unsaved Work, and since #85 and #111 on Delete and on edits that hide or remove something, but nothing told it of other steps, and a tool not in use was told nothing. Now each keeps a key of the model read right after its own step (logKeyinsrc/lib/steps.ts: the undo depth and model hash,stepKey, moved there fromApp.tsx, and the hash of the op log), and a typed value changes that step only while the model is still at that key (stillLast). The log hash is there because the undo depth stops growing once the history is full (200 steps): a later step that leaves the model as it was (activating a scene, which only moves the camera, a rename to the same name) would then have kept the depth and the model hash, and the value would have undone it. Opening or closing a group adds no undo step but moves the log on, so a value typed after it is taken as after any other step. After any other step, from any tool, pane, import or plugin, the value is taken as a first value would be: in Scale a factor scales the selection about its centre, and Move, Rotate, Offset and a size in Scale say what to do first. After a retype the kernel refuses (its Undo has already taken the tool's step back), the next value no longer undoes the step before it. Undo then Redo still forgets the step, as before. - Tests:
src/lib/steps.test.ts(the two keys, each part telling states apart; the last step kept only at its own key; with the history full, a step that leaves the model as it was still ending it; every run of up to four later ops, another edit, Undo and Redo, 121 in all, of which only the empty run keeps it),src/tools/scale.test.ts,move.test.ts,rotate.test.tsandoffset.test.ts(a value typed after another step sends no Undo, and says what to pick first, or for Scale scales the model as it is; Scale the same with the history full; Move'sx3and/4and Rotate'sx3after a Ctrl copy and another step, and/4typed alone after them; with each op moving the model on, whichfakeHostnow can withstepping, a value typed right after the step still changing it in all four tools,x3,/4and a distance or an angle after a copy in Move and Rotate; Offset's next distance after a refused retype) ande2e/scale.spec.ts(the issue's steps: a board scaled x1.5, moved 10 in, then S and2scaling it about its centre where it went, the Move kept, one undo step more). On the code before this change, the #84 checks in the four tools' tests fail, and so does the e2e test; the tests ofsteps.tsitself are new with it, and the Scale, Move and Offset tests of a value typed right after the step pass there too (Rotate's fails there on/4typed alone after another step). - What the review changed from the pull request: tests and words. A key read before the tool's own edit had finished (Scale), no key kept after a copy (Move), and the check skipped for
/4(Move, Rotate:x3typed first had already let the step go) passed every test before; the new Scale, Move and Rotate tests catch each. The test of a refused retype is new. The user guide says what each tool does with such a value, and that opening or closing a group counts; this entry says which of Scale's values scale and that #111 also told the tool.
Fixed (lane 94, 2026-11-26) #
- "Restore unsaved work?": one click or one press of a key answers one offer (#146, from @aramshaw; #145). With more than one set of unsaved work kept, an answer puts the next set's offer in the same place at once. On the status line, a double-click on Discard could answer the next offer with its second click: both sets deleted in a narrow window, or, with a file waiting, the next set restored unread, depending on where the next offer's buttons landed. And the next offer's Discard was the same button, so it kept the focus: Enter pressed twice deleted two sets, and Enter held down deleted every set kept. Discard cannot be undone, so the work an unread offer named was gone. Now the offer's buttons, on the status line as on the notice over the model, answer nothing on the second click of a double-click, and the one that answered lets go of the focus, as does one a second click lands on, so Enter pressed again or held has no button to press. Enter on a button tabbed to still answers (Space did not answer before this change and does not now: the app takes it for the Select tool). The same holds for every message with buttons on the status line (
answerOnceinsrc/components/answerOnce.ts, used by both). ADR-0003 gains a dated amendment. - Tests:
src/components/ValueBar.test.tsxandsrc/components/StartupNotice.test.tsx(the second and third clicks running nothing, a single click and a key press running the action, the button that answered giving up the focus to the page itself, so the next offer's button of the same name does not have it; every button of each kind of message on the status line, and every button the notice shows, answering once) ande2e/startup.spec.ts(two sets kept: a double-click on the status line's Discard whose second click lands on the next offer's Discard, and with a file waiting on its Restore; a real double-click in a window where the next offer's button lands under the pointer; Enter pressed twice and Enter held on a focused Discard; Enter twice on the notice's; each answering only the first, the second set still kept and the model empty, and the next offer then restoring its set when it is clicked). Where the next offer's buttons land depends on the window, the two texts and the fonts, so the real double-click finds its window from the live layout: it tries widths in turn, measures where the next offer's buttons land, aims at a point inside both buttons and checks the button under the pointer before the second click. The other two double-click tests send the second click to the next offer's button itself. On the code before this change all six e2e tests fail, and so do the new unit tests. - What the review changed from the pull request: the real double-click test assumed a window 896 px wide, where the pointer was 1.5 px inside the next offer's Restore in a headless build on Windows; with other fonts its second click can miss, and the test then passes on the code before this change too. It now finds the window as above. The tests that a second click or key press answered nothing could pass before that press had been taken; they now end by answering the next offer with a click of its own. A second click that answers nothing now gives up the focus too: in a headless build its press gave the focus to the next offer's button under the pointer, so an Enter after the double-click would press that button. The focus after an answer is checked to be on the page itself, not only off a button. Unit tests were added for the focus after a second click, every button of each kind of message, and every button on the notice.
Fixed (lane 93, 2026-11-25) #
- Moving or copying a group no longer slows down with the number of groups inside it (#142). A Move, Rotate or Scale, a Copy and an Array walk each group they take, and each group they met built the model's child lists again (
Model::kids, one pass over every group, component, solid, mesh and sketch of the model) to find that one group's children; each component instance moved built them twice, and each one copied once. With 11,111 groups that was 11,111 passes over the whole model for one Move, and a selection of several groups repeated it for each. Now one op builds the lists once and hands them down (transform_nodeandcopy_nodetake them from the op, and a component instance's re-derivation reads them too). They stay true for what is read from them: a Move changes no item's parent, and an instance's re-derivation says whether it changed any, the lists being built again only if it did; the groups a Copy reads are in the open context and the copies go into it or into each other, so no group being copied gains or loses a child while the op runs. Measured on one desktop PC in Node with the WASM kernel, the issue's part (a 100 x 60 x 30 mm box with three edges rounded, 42 faces) in a group, each level an array of nine copies and a group of all ten, the scene and the state read after every op as the app reads them, the middle of three runs: with 10,000 parts and 11,111 groups, a Move of the one top group 4.5 s where it took 23.1 s, an Array of nine copies of the ten top groups 6.9 s where it took 17.3 s, a Copy of the top group 4.6 s where it took 33.5 s, and a Move of one of the ten top groups 0.48 s where it took 2.2 s; with 1,000 parts, 0.45 s, 0.42 s and 0.44 s where they took 0.65 s, 0.55 s and 0.72 s. The same 10,000 parts with no groups at all took 4.4 s to move, 6.8 s for the array and 4.5 s to copy, so a group now costs about what its solids cost, and ten times the parts about ten times as long. What is left is each moved or copied solid made again and checked as a valid solid. With ops run back to back and nothing read between them, the op itself grows the kernel's memory for a model this size, and the same Move took 18.8 s (38.9 s before). No result changes: the same model, ids, hashes, op log, snapshot and.shzbytes; no file format or stored-data change, no new op. - Tests:
crates/kernel/tests/group_work.rs(a Move, a Copy and an Array of 2, of four groups together and of one group holding everything, on nested groups at 21 and 341 groups and instances, the part a solid in a group or a component instance, each building the child lists as many times at both sizes and at most four times, counted per thread throughtesting::kids_builds: three now, and 342 to 685 times at 341 on the code before this change, where both of those tests fail; and over two families of 200 seeded models, nested groups and nested groups with component instances among them, each reaching 9 deep with a node at the top counting 1 (the tests measure it and fail if it changes), holding solids, strokes, section planes and open meshes, with hidden and locked members: a Move of a group moving everything in it and nothing else and leaving every id where it was, and a Copy making it again item for item in the order it is walked, each group's groups first and then its solids and meshes, each copy in the saved snapshot field for field its original moved the same way but for its id, parent, display number, lock and the sketch a solid came from, strokes not copied; a Move refused past 10 km giving the refusal of what the group meets first; and a Move inside an open component reaching its other copies). Docs:docs/LIMITS.md,docs/DEVELOPMENT.md.
Fixed (lane 92, 2026-11-25) #
- A file the desktop app was started with no longer looks like it opened empty while it waits for "Restore unsaved work?" (#141, from @aramshaw; #115). A double-clicked
.shzwaits for that answer when the last run left unsaved work, and the question and the line "shelf.shz opens after you answer." were only in the status line, under an empty model with "Nothing yet" in the Outliner. While a file waits, the same question, with the same buttons (Restore and Discard, or Discard alone for work that cannot be restored) and the file's name, is now shown in the middle of the model area too, clear of the chips along its top; when Sawhorse starts in Sheets mode, which hides the 3D view, it is over the sheet area. It stays there until it is answered, also when another message takes the status line (the status line then shows its reminder, as before). After Restore, the "Open shelf.shz" button is shown there as well, for as long as the status line shows it. The buttons run the status line's own actions, so they do the same: Discard deletes the work and opens the file (or offers the next set, when there is one), Restore brings it back as an untitled model, Open asks about the restored work first. The second click of a double-click on the notice answers nothing: the next offer's Discard is drawn under the pointer, and it would delete work the person has not read. On the status line the next offer's buttons land where its text ends, which may or may not be under the pointer; that was not guarded by this change, nor was Enter held down or pressed twice on a focused Discard; both are fixed by the #145 entry above. With no file waiting, the offer is on the status line only, as before. Not a system dialog, which has two answers and no room for the Open button after Restore. How old an offer may be and what Save clears are not changed. ADR-0003 gains a dated note. - Tests:
src/components/StartupNotice.test.tsx(what the notice shows: the status line's own offer, the offer made again when another message took the line, nothing with no offer left or no file waiting, the Open button's message after Restore, each of the 24 combinations of a waiting file, six kinds of message and an offer left checked against what may differ from nothing shown; its buttons running the message's actions, and the second click of a double-click running nothing; the error look) ande2e/startup.spec.ts(the question, its buttons and the file's name centred in the model area's box and clear of its chips while the file waits, kept after Ctrl+Z takes the status line, Discard from it opening the file and the notice gone; Restore from it bringing the work back with the Open button there, Open asking about the work and opening the file; a start in Sheets mode with the notice over the sheet area; two pieces of work, each discarded from the notice, and the file opening after the second; a double-click on its Discard with two pieces of work discarding only the first; a file name with no place to break wrapped inside the model area; the view under the pointer all round the notice and the notice under it on the notice; no notice with no file waiting, and none after a Restore or a Discard with none). On the code before this change the seven waiting-file e2e tests fail. - What the review changed from the pull request: the notice's buttons ignore the second click of a double-click (a double-click on Discard with two sets of work deleted both, the second unread), a file name with no place to break wraps inside the notice (it ran out past the model area and gave the window a sideways scroll), the changelog's words on the system dialog (it has two answers), and tests: three new e2e tests (the double-click, the long name, the pointer round the notice), Restore and then Discard with no file waiting added to the e2e test with no file, and the second click and the plain look in the unit test.
Changed (lane 91, 2026-11-25) #
- The view's right-click menu on a dimension, a guide or sketch geometry lists only what acts on it (#140, from @aramshaw; #139). A right-click on a dimension, a guide, a sketch edge or a region opened the list for a solid (Edit Group / Component, Delete, Hide, Lock, Make Group, Make Component…, Make Unique, Explode, Explode Curve, Clear Paint) with all but Delete greyed out, and Explode Curve live on a sketch circle, arc or polygon, since the rest act on solids, groups and components only. It now offers Delete alone, and with a sketch curve in the selection (a circle, an arc, a polygon or an imported curve) Delete and Explode Curve. The items are the menu bar's own, with the same names, keys and rules, and Close Group / Component is still added inside an open group or component. A selection that holds anything of a solid, group or component as well (the solid, a face, an edge, a point or a rim) keeps the solid's list; so do a sketch point (Delete refuses a point alone: "A point goes with its edges") and a section plane with something else. Empty space and one section plane are as before. ADR-0013, which said there is no viewport context menu, gains a dated amendment. Front end only (
menuTargetinsrc/components/ViewMenu.tsx); no kernel op, stored data or file format change. - Tests:
src/components/ViewMenu.test.tsx(the two lists; which list each selection opens, the solid's rim, a sketch point, a curve's segment taken as an edge, an empty selection and a mixed selection included; Close Group / Component on both; and the rule before this change kept in the test and compared on every selection of up to four items from 16 kinds of entity, on something and on empty space: of 139,810, 137,010 agree, 1,554 become Delete alone and 1,246 Delete and Explode Curve, and each that differs was the solid's list with nothing its other items act on) ande2e/view-menu.spec.ts(a sketch region and a plain segment offered Delete alone, a circle Delete and Explode Curve, Explode Curve from it one undo step; a guide offered Delete alone, Delete from it one undo step, and with the solid under it selected too the solid's list; inside an open group a sketch region offered Delete and Close Group / Component, Delete erasing it there; a dimension offered Delete alone, where the test checked before that each of the solid's other items was greyed out, now that the menu holds Delete and nothing else). - What the review changed from the pull request: the comparison with the rule before covered 1,231 different selections, not 20,000: its random numbers came from a product too large for exact arithmetic, so they repeated after 13,399 draws. It now goes through every selection of up to four items and checks the three counts exactly. ADR-0013's note became an amendment at the end of the record, with the paragraph it amends left as it was. The user guide's line also names groups, components and a section plane with something else.
Fixed (lane 90, 2026-11-24) #
- A rectangle started on a box's corner stays on the face under the cursor (#130). Started on a corner or an edge, a rectangle's plane follows the cursor until the second click. Over a face that holds the first corner, the second click could still be caught by a guide line that leaves the face: the line of a point the cursor had rested on earlier, also one hidden under the board, or the red or green axis through the first corner out in the air. On a top face the rectangle then went onto a new sketch beside the face ("on a plane 3/4 up"), and Push/Pull made a second board instead of a rabbet; from the near top corner of a 12 in cube in the Iso view, 5 of 25 second clicks on each side face, in a band along the face's diagonal on screen, were refused as "too small (under 0.01 mm)". Now such a guide line gives way to the point on the face under the cursor: the marker shows On Face before the click, and the rectangle is drawn on the face ("on face 2 of solid 1"). Snaps that lie on the face's plane are kept (the face's corners, edges and midpoints, guide lines in the plane), and so is a real corner, edge or midpoint of other geometry off the plane, which the marker shows and the person may mean; it goes where it went before. A lock already set with an arrow key or Shift is kept. The guide line the face rule hides can still be locked to: the Down arrow and Shift lock to it as before ("Locked to the green axis"), and the marker and the click then follow it; the red, green and blue arrows lock as before. Over nothing, or over a face that does not hold the corner, nothing changes: up into the air on an upright plane, on the ground from a bottom corner, level at the corner's height. The Rotated Rectangle's second click follows the same rule (not its width click). The rule waits for an open plane: a rectangle started inside a face keeps that face's plane, as before.
- Two corners on one line say why nothing is drawn. A second corner on a line through the first along a side of the rectangle (a click on the edge through the first corner, within 7 px of it, or on its far corner or midpoint) was refused by the kernel as "that shape is too small (under 0.01 mm)", and the first corner was gone. Now the tool refuses it first: "On the drawing plane both corners are on one line, so the rectangle has no width. Click off the line, or type width, depth." A second corner that lands on the first on the drawing plane (a click on the first corner, or straight above or below it on a plane already set) gets "On the drawing plane the second corner is on the first. Click the opposite corner, or type width, depth." The first corner stays, an open plane stays open, and only the click sets the words, never a hover. The Rotated Rectangle is not changed by this: its zero width still gets the kernel's words. Where a click lands is unchanged, so a strip narrower than about 10 px on screen still cannot be clicked (
docs/LIMITS.md): type its sizes. - Typed sizes with the cursor still on the first corner keep the corner and say the way was a guess. The cursor then gives no face and no direction, so the sizes ran + / + on the plane chosen at the first click, often off the face, and were refused with "the path must run strictly inside the face"; the first corner was gone. They are still tried the same way, so what drew before still draws. When the kernel refuses them, its own reason stays on the status line and the first corner stays with the plane still open. When both typed sizes are over the kernel's smallest (0.01 mm), one sentence follows the reason: "The cursor did not show which way the rectangle runs, so that was a guess: move the cursor onto the face to choose it." A size of zero or under 0.01 mm gets the kernel's words alone. Esc, another tool, a new first corner or new sizes while the sizes are on their way to the kernel: the old first corner does not come back, the kernel's refusal still shows, and the Rectangle adds nothing to it.
- What is left as it was: Line (in
settlePlane) and Arc (insettle) started on a corner settle their plane from the first segment, and a second point on a guide line off the face draws in the air (a line up an edge is often meant); Circle and Polygon take their plane at the centre's click. Neither is this code path. The inference engine, the snap radii and ranking, and the remembered points are unchanged; no kernel op, stored data or file format change. - Tests:
src/tools/rect.test.ts(33: the plane and the second corner with the cursor over a face holding the corner and an on-face point, a remembered point's line off the face, the start's axis line off a side face, a guide line in the face's plane, a corner and a midpoint of the face, another solid's corner off the plane, a guide carrying another solid's edge; over a face not holding the corner and over nothing, up and level; the ground from a bottom corner; a lock already set, and the Down arrow and Shift locking to the hidden line, and to nothing hidden once the cursor is off it or after Esc; a plane set by a click inside the face; the Rotated Rectangle's second click and its width click; the marker and the guide lines the preview shows; the words for one line and for one point, a click straight above the first corner, the first corner and the open plane kept, hovering setting nothing, a Rotated Rectangle with no width; typed sizes refused with the cursor on the corner and with no cursor, too small, drawn with the cursor on the corner, refused with a direction, refused with no reason from the kernel, the next plane after a refusal, and Esc, a tool switch, a new first corner and new sizes while the refusal is on its way), ande2e/rect-face.spec.ts(7: the route that made a second board: rest on the bottom edge's midpoint, the corner, a click on the top face where that point's line runs, then Push/Pull -3/8 leaving one solid of the rabbet's volume; 25 second clicks over each of the three faces at a 12 in cube's near top corner; the click on the edge and the next click; the typed sizes on the corner, a zero size, then on the face, and the rabbet's 104.625 cubic inches; up into the air, the ground, a midpoint and a corner of the top face, as before).
Fixed (lane 89, 2026-11-24) #
- An unnamed solid in a group that holds a component reads by the group's name in the cut list (#138, from @aramshaw; #137). A group holding a component or another group is an assembly: the cut list walks into it, and each solid directly in it is a part of its own. Such a solid that was never named read "Solid 1", the Outliner's number, which names no place in the model, and the group's name was in no row. It now reads "Carcass · solid", as the same solid in an assembly component reads by the component's name. The nearest group names it, so a solid in "Carcass" inside "Unit" reads "Carcass · solid", and one in an unnamed group inside "Unit" keeps its number. A solid with a name of its own keeps it, a group with no name leaves the number ("Solid 1"), and a group of solids alone is still one part under its own name. A solid inside a component still reads by the component, also when a named group holds it there. Renaming the group renames the row. Two unnamed solids in one assembly group now share a name, as they do in an assembly component (each keeps its own row), so the MCP server's
summarylists that name undershared_names. Only the name a row is given changes: not the parts, their sizes, the nesting's layout, the file format or the model hash. The cut list's own hash covers names, so it moves for a model with such a solid; no golden holds one. ADR-0006 gains a dated note. - Tests:
crates/kernel/tests/cutlist.rs(the group's name, a named solid and the component beside it, renaming the group and then the solid; the nearest of two nested groups, and an unnamed inner group inside a named one; a top-level solid, an unnamed group and a group named only spaces in a hand-edited file keeping the number; a group of solids alone and a solid in an assembly component named as before; an unnamed solid in a named group made inside an open copy of a component reading by the component; a 64-character group name read whole, and the same name with a solid hidden, a solid on a tag, the group hidden, the group locked, the group open and another group open, while an unnamed group of solids in the assembly group keeps "Group"; in a hand-edited file, a group name with spaces at its edges shown as stored and a solid named only spaces keeping that name),crates/mcp/tests/server.rs(two unnamed boards in a group with a component board share the group's name insummaryand undershared_names, and renaming the group lists both rows as changed) ande2e/cutlist.spec.ts(the Cut list pane's rows for a group holding a component, a named solid and an unnamed one). On the code before this change, 4 of the 6 new kernel tests fail (the other two hold what does not change), and the server test and the e2e test fail. - What the review changed from the pull request: tests only, three new kernel tests and one extended. Versions of the code that named a solid by the nearest named group past an unnamed one, named a component's solid by a named group inside it, trimmed or cut short the group's name, read an unnamed group's own row by its parent, treated a solid named only spaces as unnamed, or left the number for a hidden solid, a solid on a tag, a hidden or locked group or while a context was open all passed the pull request's tests; each now fails one.
Added (lane 88, 2026-11-23) #
- The question over unsaved changes has a Save answer (#136, from @akvalentine977; #120). With unsaved changes, File > New, Open and Close asked "Discard the unsaved changes to this model?", and closing the window, File > Exit and a logout on KDE Plasma the same "and close Sawhorse?", with OK and Cancel: to keep the work a person answered Cancel, saved, and did the thing again. Now the question is "Save the changes to cabinet.shz?" ("this model" when it has no file; "before Sawhorse closes" at a close) with three answers, in this order. Save saves as File > Save does, asking for a name when the model is untitled, and then carries on with what was asked. Discard Changes does what OK did. Cancel does what Cancel did. A save that is cancelled (the Save dialog dismissed, or No at "already exists. Replace it?") or that fails leaves everything as it was, as Cancel does: the model, its name, the unsaved work kept for Restore unsaved work? and the window stay, what was asked for does not happen, and a save that failed says why on the status line, as File > Save does. Every place that asked asks this: File > New, File > Open, a file dropped on the window, a file the app was started with, File > Close, an empty SketchUp file over unsaved work, Restore when the open model cannot be set aside, the window's X and File > Exit. "... already exists. Replace it?" is as it was.
- The question is the app's own dialog, over the model, the same in the desktop app and the browser build (
src/components/UnsavedDialog.tsx, in the naming dialog's style); the desktop's message dialog and the browser'swindow.confirmare no longer used for it. Save has the focus, so Enter saves. Escape is Cancel. Discard Changes is never the default: it takes a click, or Tab and then Enter. On Windows and macOS, Enter at the old question chose OK and discarded the work (a listed limit); that is gone with it. From the click on Save until the save has ended the dialog shows "Saving cabinet.shz…" and offers Cancel alone, which gives up on the save: nothing more is written after it (a write the shell has already started finishes whole, as every save does: beside the file, then renamed over it), and nothing else happens. In the browser build a save without the browser's file picker is a download, which counts as saved once the browser has been handed the file, as File > Save counts it. - It is a real modal (
src/components/Modal.tsx: a<dialog>opened withshowModal()):role="dialog",aria-modal="true", named by its question; nothing behind it takes a click, the focus or a key (no tool key, Ctrl+Z or Delete reaches the app); Tab stays inside it; and the focus goes back where it was when it closes. The naming dialog (Make Component) did the first of those four only. It is the same modal now, which also means the page behind it no longer takes clicks while it is open: a click on the model or the menu bar while the naming dialog is up does nothing, and its name field keeps the focus. A key in a dialog shown over another (the close question over the naming dialog) is that dialog's alone: Escape there cancels the question and leaves the naming dialog open. A file dropped on the desktop window and a plugin's batch still reach the model while a dialog is up. - One question at a time (
src/io/unsaved.ts). A question asked while another shows its answers takes its place, and the first ends as Cancel does: a close request, or a file dropped on the window, while File > New's question is up; to the shell a close question that another took the place of is "keep", however quickly it happened. A question asked while a save chosen at the one before is running waits for that save, and is not asked if the save left nothing unsaved; one asked from inside the edit queue (an empty SketchUp file, Restore) does not wait, since that save waits for the queue, and ends as Cancel. A change that lands while a save chosen at the question is running (a file dropped on the window while the Save dialog is up, a plugin's batch) is not in the file: the model keeps its unsaved mark, the status line says the model changed while it was being saved, and what was asked for does not go ahead over it. File > Save no longer marks such a change saved either. - A close request while a save is running. The close guard closes the window on a second close request two seconds after a question the page has not answered, for a page that has stopped answering. A person choosing a file name is not that, so from the click on Save until the save has ended, its Save dialog included, the page says a new word to the shell, "saving", every 250 ms, and the guard's rule becomes: a close request closes the window only when two seconds have passed since the question went out and since the last "saving" (
sawhorse_close_guard::Guard; the shell's command only hands it the word and the time). The word counts only while a question is out, and each one buys at most two seconds: a page that stops saying it is the page of the old rule, so two close requests two seconds apart with no "saving" between them still always close the window, and the unsaved work is offered back at the next start. To the shell a save that was cancelled or failed is "keep", and a save that worked is "close". Before "close" the page waits for this session's autosave to be deleted (at most a second,DISCARD_WAIT_MS), after Save as after Discard Changes: a save starts that delete and does not wait for it, and a window closed straight after one could keep the autosave, which the next start offered back as "Restore unsaved work?" for work that was in its file. - On a close request over unsaved changes the shell un-minimises the window and asks for the focus before it asks the page: the question is in Sawhorse's own window now, and a logout on KDE Plasma would otherwise wait behind a question nobody can see. Whether the window then comes forward is the desktop's choice, and on the seven Linux desktops tried by hand none of them let it: see Tried by hand below.
- What does not change. A close with nothing unsaved closes at once. The browser build still does not ask before its tab closes or reloads. On GNOME and Cinnamon a logout does not close the window first, so the desktop's own dialog warns, as before. A Cancel that comes back sooner than a person could give it still counts as the question failing (
ANSWER_FLOOR_MS). No permission is added: the webview still cannot close, destroy, un-minimise or focus a window. No file-format change. - What the review changed from the pull request: a question asked from inside the edit queue waited for a Save chosen at another question, which itself waited for the queue, so both waited for good and no edit or save ran again; a change that landed while the Save dialog was up was marked saved without being in the file, and New, Open, Close or the close went ahead over it; one Escape at the close question cancelled the naming dialog under it too; a press outside the naming dialog's field moved the focus off it, so typing went nowhere; and a close question that a dropped file took the place of within 150 ms was told to the shell as "failed", so the next close request closed without asking. Each is fixed as described above, with a test. The user guide's Closing paragraph says which parts were tried only on Linux, and its paragraph on work too large to keep names the new question.
- Tests:
src-tauri/close-guard(29, twelve of them new: the two seconds held as a number, 1.9 s waiting and 2.1 s closing, the word holding the window for a minute of words and for a timer slowed to once a second, the window closing two seconds after the last word, a word with no question out not kept for a later one, the word neither answering the question nor bringing back one that failed, a save that worked closing whichever of "saved" and "close" comes first, a clock that steps back;never_trapped_two_requests_two_seconds_apart_always_closekept as it was, and its twin, over every sequence of up to six of the page's words and close requests with "saving" at three spacings among them: two requests two seconds apart with no "saving" between them always close; and the other side of it, a word between them holds).sawhorse-logout-hold: "saving" has its rule (nothing for the hold).src/io/unsaved.test.ts(30: the words, each answer, the beat starting at Save and stopping when the save ends however it ends, Cancel while saving, one question at a time, a question from inside the edit queue not held behind a save that waits for the queue, a save over a model that changed meanwhile not going ahead, a dialog that cannot be shown).src/io/closing.test.ts(24: each way the question can end, a question another took the place of kept and not failed, the autosave's delete waited for before "close" after Save and after a save that was running, a delete that fails or never ends not holding the window, and the handler over the real question with the shell hearing "saving").e2e/close.spec.ts(24: each answer at the window's X, File > Exit and File > Close, a model with a file and one without, the Save dialog dismissed, a save that fails, "saving" for as long as the Save dialog is up and none after) ande2e/unsaved.spec.ts(30: each answer at File > New, Close and Open in the browser build with the saved file opening as the model that was there, a dropped file, a failed save, the keys, the modal and the naming dialog, and in the page as the desktop shell runs it a Save dialog at File > New, giving up on a save, a file dropped on the window, a file dropped while the Save dialog is up, a close request over File > Close's question, a file dropped the moment the close question is up, Escape at the close question over the naming dialog, the focus put back, File > Save with an Undo and a dropped file while its dialog is up (the file the model at the click, the model unsaved with its autosave kept), no key at the question reaching a listener on the window or the document, a press outside the naming dialog's field leaving the focus in it). The specs that answered the old question (startup,window-title,files,session) press the new dialog's buttons; those that accepted it in passing (scale,curves,corpus,private-fixtures) press Discard Changes as it comes up. Not covered by a browser test: the question at an empty SketchUp file and at Restore, which ask from inside the edit queue (queuedinsrc/io/unsaved.test.ts). Docs: the user guide's Closing paragraph,docs/LIMITS.md(Enter at "Replace it?", and the question behind a minimised window),docs/DEVELOPMENT.md. - Tried by hand by akvalentine977 on 2026-11-21, on the .deb, .rpm and AppImage built one commit before the autosave fix named below: GNOME 46 (Ubuntu 24.04), 48.7 (Debian 13), 50.1 (Ubuntu 26.04) and 51.1 (Fedora 45), Cinnamon 6.6.4 (Linux Mint 22.3), and KDE Plasma 6.8.2 (openSUSE Tumbleweed, and CachyOS with the AppImage). On all seven: the question, its three answers and Save in focus as described; Escape cancelled; nothing behind the question took a click; Save with a name saved the file and closed Sawhorse; the question named the file, and Discard Changes closed without saving; Enter at File > New saved with no Save dialog; a Save dialog cancelled left the model, its title and the window. With Save chosen and the Save dialog left open for ten seconds or more, Quit or Close from the dock or taskbar did not close Sawhorse, on all seven. Tab and then Enter chose Discard Changes; once, on Debian, coming back to the question from another workspace, it took Tab twice, and Tab once on a repeat without the workspace change. A minimised Sawhorse did not come forward on any of them, nor one on another workspace: GNOME showed a notice that the window "is ready", Plasma marked the taskbar entry on Tumbleweed and showed nothing on CachyOS, Cinnamon needed a click on the panel; the question was there each time on going back, and the user guide says this. Logging out of Plasma with an untitled unsaved model: the question showed, Save opened the Save dialog and the model was saved; on CachyOS the logout then carried on, on Tumbleweed Sawhorse closed and the logout waited for Plasma's countdown to end. Found by this round and fixed: after Save at a close, the next start offered "Restore unsaved work?" for the work just saved; the autosave was still in the store on four of the seven. A script that draws a rectangle, closes the window, answers Save and reads the webview's IndexedDB found the autosave left in 10 of 15 runs on five of the desktops with that build (0 of 6 after Discard Changes), and in 0 of 19 on six of them with the fix (not run on CachyOS, where the script cannot start an AppImage). Looked at again by hand on 2026-11-22 with the fix, on the same seven desktops: after Save at the window's X with a new name, after Enter at the X on a model that has a file, and on both Plasma systems after a logout with Save, the next start offered nothing back, and the file held what was drawn. Read from each system's disk afterwards, the autosave store held no record on any of the seven. On Ubuntu 24.04 the second of those looks did not go as written: two Sawhorse instances had been started in the same second (the session's journal shows it), and the second stayed open on its empty model when the first saved and closed. On Tumbleweed the logout went at once after the save this time, so its wait for the countdown was seen once in two tries. His rounds were on builds from before the rebases onto #125, #127, #128 and #130's fix and before the changes the review made; nothing was tried by hand on the build of this commit. Not tried: Windows and macOS, by hand or by building there; the desktop shell was type-checked for Windows (clippy for
x86_64-pc-windows-msvc), not built or run.
Added (lane 87, 2026-11-23) #
add_boardin the MCP server makes a component on request (#135, from @aramshaw; #116).add_boardtakescomponent(defaultfalse). Withtruethe board is wrapped in a component named after it (make_componentin the same batch, so the board, the component and any library material are one undo step), andboardin the answer carries itsinstanceanddefinitionids beside theobject. The board is where and what it would be withoutcomponent.apply_opscopies, arrays and moves the instance, innodes: a batch cannot open the component, so an op that moves, copies, reshapes or deletes the solid inside it is refused with the kernel's words ("double-click it to edit inside it"), and the component board's grain and stock are set on its definition ("part": {"definition": id}). Copies and arrays of that instance (copyorarraywithnodes) are instances of its definition, so twelve slats read as one row of 12 and stay alike. A second component board of the same name is a definition of its own, listed undershares_name_with. Withoutcomponent, or with itfalseornull,add_boardmakes the loose solid it made before and answers as before. A component's row insummaryand inchangesnames itsdefinition, the id itstargetgives; other rows are as they were.shares_name_withleaves out the new board's own row when it is a component, as it did for a loose one. Theapply_opsdescription namesnodesbesideobjectsforcopyandarray, and the server's instructions tell an agent to add a part made more than once withcomponent: trueand copy its instance. The default staysfalse: making ittrueis a decision of its own. The MCP server only: no kernel, file format, model hash or golden change. Docs:docs/MCP.md,docs/DEVELOPMENT.md.- What the review changed from the pull request: the
add_boarddescription anddocs/MCP.mdsaid the solid inside a component board could not be edited throughapply_ops, and the changelog that it could not be named in a batch; renaming it, painting it and setting its grain are taken, so they now say which ops are refused and that grain and stock go on the definition (set on the solid inside, they leave the cut list as it was).component: nullwas refused, where every other optional argument ofadd_boardreadsnullas left out; it now does too. Theadd_boarddescription says a second component board of the same name is a part of its own. Tests were added where the pull request's left a gap: in a new model the board's object, instance and definition ids are all 1, so an answer giving the object id as the instance passed every test; spaces round a name of 64 characters, which the component must be named without; a component board over a sketch facing down, whose extrude must turn as a loose board's does; and the descriptions and instructions, checked for what they say rather than for the wordcomponent. - Tests:
crates/mcp/tests/server.rs(component: truewrapping the board where and what it would be without it, in one undo step, over a sketch facing down too, with the instance and definition answered and on the summary row, a name at the 64-character limit, one past it, and spaces round one of 64 trimmed; left out,falseandnullgiving the same model and the same answer, no definition on a loose row, acomponentthat is not true or false refused; an array of a component board one row of 12 instances of one definition, a second component board of the same name its own definition undershares_name_with, its instance and definition ids those of its own row; the board's object, instance and definition three different ids, the instance moved throughnodes, the solid inside refused bytransform,copyanddelete_object, and grain set on the definition; nodefinitionon a group's row or on the rows of an assembly component's parts, and a component's own row naming it; the instructions telling an agent to passcomponent: true, theadd_boarddescription giving the default as false, theapply_opsdescription namingnodesand saying copies of an instance are instances of its definition, and thesummarydescription naming the definition on a component's row). All seven fail on the code before this change.
Added (lane 86, 2026-11-23) #
- A right-click menu in the 3D view, and Edit > Edit Group / Component (#133, from @aramshaw; #107). A right press let go within 4 px of where it went down (
DRAG_PX, the distance that already tells a left click from a selection box, now insrc/lib/gesture.tsso the view, the tools, the tool driver and the Outliner read one number) is a right-click; on macOS a Control+click is too. Past that it is the pan it always was, the point grabbed at the press under the pointer; until then the view does not move, so a click that wobbles opens the menu over what was under it. Another button pressed during the right press, or the press cancelled by the browser or the window, opens no menu. No hold time. The menu holds only the menu bar's own commands, the very items of the menu bar, so names, keys, greyed-out rules and actions are the same: on a solid, group or component Edit Group / Component, Delete, Hide, Lock, Make Group, Make Component…, Make Unique, Explode, Explode Curve and Clear Paint (on a dimension, a guide, a sketch edge or a region the same list, Delete the only one not greyed out); on a section plane Activate or Deactivate Cut, Reverse Section Plane, Create Group from Slice and Delete; on empty space Select All, Select None, Zoom Extents, Undo and Redo; inside an open group or component, Close Group / Component after them. What is under the pointer is read as Select's click reads it (contextPickinsrc/tools/select.ts, Select's own code moved out of the class, with Select's pick context, so a model dimension takes it on its line, its number and its extension lines): a thing outside the selection is selected first, on its own (Shift or Ctrl held with the right button does not add or toggle), one inside it keeps the selection, and a thing outside the open group closes back to where it is, as a click does; empty space keeps the selection. Selecting this way is not an undo step. A choice that changes the model is one undo step, as from the menu bar. Esc, a left or middle press or the wheel in the view, or the window losing focus closes the menu with nothing changed (that press and that turn of the wheel go no further, and that Esc does not also clear the selection or close a group); a right press elsewhere in the view opens the menu there. It also closes when the model, the selection or the tool changes under it (keys other than Esc still reach the app, as with the Outliner's and the Cut list's menus) and when the window is resized. While a tool is part way through a step (itsbusy(), read once the clicks already on their way have reached the tool) a right-click does nothing, so it cannot cancel the step, and a right-click overtaken by a key or another press while its pick is on its way (Esc, a right-drag straight after it) is dropped; a right-drag still pans; between steps the menu opens in any tool. Entity Info is not in it, as it is not in the menu bar. Edit Group / Component, beside Close Group / Component in the Edit menu, opens the one selected group or component as a double-click does, and is greyed out on a locked one, as the Outliner's entry for it is (a double-click on a locked one is refused, as before). The Outliner's entry, Edit inside, is now called Edit Group / Component too, and the Outliner takes a press that moves exactly 4 px as a click, as the view and the tools do (it took it as a drag). Front end only: no kernel, file format, model hash or golden change. Docs:docs/USER-GUIDE.md,README.md(out of "Not yet"),docs/DEVELOPMENT.md. - Tests:
src/viewport/controls.test.ts(a right press let go within 4 px a click that moves nothing, past it a pan and no click, a press the window drops, cancels or chords with the left button no click, a Mac Control+click a click and a Control+drag a pan),src/components/ViewMenu.test.tsx(the items each right-click offers, the menu bar's own objects, separators, a choice running the action once, Esc, a press outside, the wheel, focus lost and a resize closing it, Esc going no further, a left or middle press or the wheel on the view held back and a right press there and a press elsewhere let through, and nothing held back once the menu is gone),src/components/structure.test.tsx(the Outliner: exactly 4 px a click, 5 px a drag) ande2e/view-menu.spec.ts(a solid, with Hide one undo step by the undo depth; empty space and Esc changing nothing; a right-drag; a tool part way through, Line with a point down and Push/Pull part way through a pull, a right-click straight after the click that starts a line included; a section plane, its Delete one undo step; inside an open group; two selected solids kept; a solid outside the open group; Edit Group / Component and the lock; a dimension selected by its number, its Delete one undo step and the Delete key closing the menu; a press, a middle drag and the wheel in the view closing the menu and changing nothing else, and a right press there opening it there; the menu closing when only the selection, or only the tool, changes; a right-click overtaken by Esc or by a right-drag before its pick comes back opening nothing; the menu at the page point of the right-click, the canvas not starting at the page's top left, and kept inside a small window near its right and bottom edges). On the code before this change, 11 of the 13 end-to-end tests and 2 of the 4 new tests insrc/viewport/controls.test.tsfail; the ones that pass hold what stays the same or what that code never did: a right-drag past 4 px still pans (unit and e2e), a cancelled or chorded right press opens nothing (unit), and a right-click overtaken by Esc or a right-drag opens nothing (e2e).src/components/ViewMenu.test.tsxhas no menu to load there, and the Outliner's 4 px case fails with its old< DRAG_PX. - The pull request's own last commit makes the right-click read the pick with Select's pick context, so a model dimension's number and extension lines (taken by Select's click since lane 85) take it; this change has that line and the end-to-end test above for it. What the review changed from the pull request: a left press, a middle drag or the wheel in the view that closed the menu also reached the tool and the camera (it cleared the selection, started a line, orbited or zoomed); it now only closes the menu. The menu stayed open over a selection, a model or a tool that had changed under it (the Delete key, Ctrl+A, Ctrl+Z, a tool key, a section plane removed by Undo), its items then acting on what was there instead; it now closes, and closes when the window is resized. A right-click straight after a click was checked against the tool before that click had reached it, so a line just started could be given the menu; it now waits for the clicks already on their way. A right-click whose pick was still on its way when Esc or a right-drag came opened its menu after them; it is now dropped. A section plane's menu has Delete, as Edit > Delete with a plane selected does. The Outliner's 4 px and the name of its entry, above. The tool driver reads
DRAG_PXfromsrc/lib/gesture.ts. The end-to-end test that waited a fixed 300 ms for nothing to happen now waits for a later hover to come back through the same kernel queue.
Fixed (lane 85, 2026-11-23) #
- A click with nothing under it, and a drag, no longer draw nothing without a word (#130). In the Front or Right view of an empty model a click meets no ground and no face (nor does one wherever else the eye ray misses both). Line, Rectangle, Circle and Arc (and Rotated Rectangle, Polygon and 3-Point Arc), Tape, Dimension, Rotate and Move then did nothing and the status line did not change. A press and release 5 px or more apart is a drag, which those tools dropped without a word, as did Section Plane, Follow Me, Paint and a Push/Pull drag started on nothing. Nothing is drawn still, and the status line now says why: "Nothing to draw on there: click the ground or a face, or use Top or Iso." (Tape "Nothing to measure there", Dimension "Nothing to dimension there", Rotate "Nothing to turn about there" and Move "Nothing to move from there" with something selected, each with the same advice; Move and Rotate with nothing selected say what their click on the ground says then, "Click a solid or a sketch shape, or select what to move first.", since the ground would not do either), and for a drag "Click, move, then click again. A drag does not draw." (Tape "does not measure", Dimension "does not place a dimension"; Rotate "Click the centre, then where the angle starts and ends. A drag does not turn.", or with nothing selected "Click a solid or a sketch shape, or select what to move first. A drag does not turn."; Section Plane "Click to place a section plane. A drag does not place one."; Follow Me "Click the profile: a face, or a region of a sketch. A drag does not sweep.", or the path still to select; Paint "Click a face to paint it. A drag does not paint.", or with no material chosen "Choose a material in the Materials pane first (or Alt+click a face to pick one up). A drag does not paint."; Push/Pull what its click on nothing says, "Click a face or a region of a sketch to push or pull it."). The advice in each of these, before a gesture starts, was followed in a headless build and led to the step it names. A press and release 4 px apart is still a click. Halfway through a shape, the point already placed stays where it was and the words end with the next step, so that hint stays on the status line: "A drag does not draw. Click the opposite corner, or type width, depth." and "Nothing to click on there. Click the opposite corner, or type width, depth." Only the click or the drag says it, never a hover, and the next click that lands says what it did, as before. Left as they were, since a click or a drag there already means something or already says something: Select (a click on nothing clears the selection, a drag is a box), the Eraser (a click on nothing places no point; a drag sweeps), Orbit and Pan, the drags of Move, Scale, Offset and Push/Pull, and the clicks of Push/Pull, Offset, Scale, Paint, Follow Me and Section Plane. Where a click lands does not change: there is still no drawing plane under the cursor in the Front view of an empty model (typing a size works there, and Top and Iso draw on the ground).
- A dimension in the model takes a click on its number and on its extension lines, the Eraser's hint names it, and an Eraser drag across one erases it (#129). Only the dimension line took a click, within 5 px, so a click on the number, or on the short lines from the measured points out to it, erased and selected nothing (or the face behind). Now, for Erase and for Select, the number's box and both extension lines (with the bit past the dimension line, as drawn) take the click too, the lines within 5 px as the dimension line is (
src/lib/dimPick.ts). On its lines a dimension still gives way to a point, an edge or a guide within reach, as its line always did, and takes the click over a face or a sketch region; inside the number's box the number wins over what is under it, edges and points included, since it is drawn over them. Neither tool shows a hover highlight for a dimension, before or now. The other tools pick as before: a number over a face still gives Push/Pull, Move and Paint the face. The Eraser's hint said only "Click or drag over edges to erase"; it reads "Click or drag over edges, guides, dimensions. Ctrl softens and smooths, Shift hides, Ctrl+Shift unsoftens." An Eraser drag across a dimension (its line, number or extension lines) or across a guide erases it with the rest of the drag, in the drag's one undo step, asdocs/USER-GUIDE.mdsaid already; a drag took neither before. With Ctrl or Shift held a drag still flags edges only. An Eraser sweep whose release never reached the view (the button let go outside it) was erased by the next drag, however small and wherever it was (an edge so before, and now a dimension or a guide too); a new press now drops such a sweep, and it erases nothing. Not changed: a dimension in the model still does not follow its solid and cannot be edited or moved; erase it and place it again with D. - Tests:
src/tools/dropped.test.ts(every tool above: a hover over nothing sets nothing, a click on nothing and a drag before the first point and halfway through, the words, the point kept, the next click's own words; a rectangle and a line finished from the point clicked before a drag),src/lib/dimPick.test.ts(the line, each extension line and the number picked, just outside each not, a dimension seen end on, one behind the eye, the nearer of two, and what wins over a point, an edge, a guide and a face),src/tools/driver.test.ts(the number and an extension line over a face for the tools that ask, the face for the others; through the pointer path, a press and release 4 px apart a click and 5 px apart a drag),src/tools/erase.test.ts(the hint; a click; a drag over an edge, a dimension and a guide in one op; Ctrl leaving them alone; a sweep let go outside the view erasing nothing on the next drag),src/tools/select.test.ts, ande2e/quiet-clicks.spec.ts(Front then Top with Rectangle, drags with Rectangle and Line, a first corner kept through a drag, the messages fitting the status line in a 1000 px window; a dimension erased by its number and by an extension line, selected by its number and deleted, and erased by a drag with an edge, each undone in one step; 4 px and 5 px between press and release; an Eraser sweep let go outside the view). Run on the code before this change, withsrc/tools/dropped.tsandsrc/lib/dimPick.tsfrom this change copied in so the files load,npx vitest run src/tools/dropped.test.ts src/lib/dimPick.test.ts src/tools/driver.test.ts src/tools/erase.test.ts src/tools/select.test.tsfails 42 of its 75 cases (the rest test what does not change, or the copieddimPick.tsitself), andnpx playwright test e2e/quiet-clicks.spec.tsfails all 4 of its tests.
Added (lane 84, 2026-11-23) #
- Drag rows in the Outliner onto a group to put them in it, or onto a strip below the rows to take them out to the model, through a new kernel op,
move_into(#128, from @aramshaw; #117). Before, the only ways in or out of a group were Make Group and Explode, which loses the group's name, tag, flags, grain, stock, material and transform.move_into { items, into }takes solids, groups and component instances directly in the open context, as Make Group does, and puts them in the groupinto, or in the model whenintoisnull, as one undo step, answeringmoved_into { into, objects, nodes }. Only where each item sits in the tree changes: nothing moves in the world, what an item holds goes with it, and its name, tag, hidden and locked flags, grain, stock, material and an instance's definition stay. It is refused, changing nothing, for no items, one or a target that is not there, an item not directly in the open context, a locked item or target or a target inside a locked group, a group into itself or something inside it ("a group cannot go into itself or into something inside it"), a component instance or a group inside one as the target ("that is a component: a part put into it would be in every copy"), an item already in the target (the whole op), and with the open context inside a component instance, where Make Group and Explode do work: an item moved out of a definition would keep a slot with no instance round it, and a move within one definition is left out. A repeated item is dropped without a word. What follows from the tree: a group of only solids is one part in the cut list, so a solid moved into one joins that part (its own grain and stock are kept but not read while it is there), and a group moved into one makes it a group of parts; the section planes around a solid's new place cut it; a group left empty goes, as after any step, unless it is open, and a section plane in it goes with it, since tidying does not count planes. The Outliner drags a row, or the selected rows, onto a group's row (into it), onto any other row (into what holds that row), or onto the strip ("Drop here to move out to the model"); it opens what holds the rows first, as Make Group does, refuses rows from two places before opening anything, puts back the context that was open, and names on the status line any group the move left empty. No order is set by a drop: the Outliner lists groups and components first, then solids in the order they were made, as before, and the row order is not stored. A drop where the rows already are moves nothing. A press becomes a drag after 4 px, so a click still selects; only the left button's release drops; Esc cancels; locked rows, imported meshes and section planes do not drag, a locked row takes no drop, and selected rows that include a locked one are refused whole on the drop ("that is locked: unlock it first"); a drag ends, dropping nothing, when the left button is found up, the window loses focus or another button is pressed (that press opens no menu). Plugins and the MCP server reach the op through their batches, which cannot open or close a group, so a batch works in the context that is open: with the model open, it moves top-level items into a group and cannot take one out; a plugin run while the person has a group open, or the MCP server on a file saved with a group open, can move what is directly in that group out of it. Unsaved work that holds amove_intocannot be restored by 0.1.0-alpha.7 or older, as for any new op: Restore there answers "Could not restore the unsaved work: unknown variantmove_into, expected one of" followed by the name of every op, and the work stays offered with Discard beside it, so nothing is lost without a word. No file-format change: a.shzalready stores each item's parent. No golden or older log changes. Docs: ADR-0005 (a dated amendment, the old text kept),docs/PLUGINS.md,docs/MCP.md,docs/USER-GUIDE.md,docs/DEVELOPMENT.md;src/kernel/types.tshas the op and its answer. - Tests:
crates/kernel/tests/move_into.rs(solids, a group and an instance in and out with nothing moving; what an item keeps; every refusal and its words; a repeated item; the three cut list cases; the landing place's section planes; a group left with only a plane; a scene whose group goes; replay; a property test that in and out again gives back the hash once the open context is put back), the fuzzer'sMoveIntointent incrates/kernel/tests/sequences.rs(plain sequences and plugin batches),crates/mcp/tests/server.rs(in throughapply_ops, out refused),src/components/structure.test.tsx(what drags, where a drop lands, a click against a drag, Esc, the strip, rows from two places handed over) ande2e/outliner-drag.spec.ts(in, out, the group that went, several rows, a drop where they already are, Esc, locked rows and groups). All fail on the code before this change. - What the review changed from the pull request: the docs said plugins and the MCP server could never take an item out of a group, which holds only while the model is open (a
.shzkeeps the group that was open when it was saved); they now say when it holds, tested in the kernel (a batch with a group open) and incrates/mcp/tests/server.rs(a file saved with a group open). A drag outlived a release the page never got (a move with no button down kept it going, so the next click dropped), a right press during a drag opened the menu, and a right or middle press left the drag going; now a move with the left button up, the window losing focus, or any other button going down ends the drag and drops nothing, and a right press so used opens no menu. A drag of selected rows that include a locked one did nothing and said nothing; it now goes on to the drop, which is refused whole with the kernel's words. A right button released during a drag dropped the rows on the row under the pointer (and the right-click menu opened too); now only the left button's release ends a drag or drops. The status line says a group left empty was "removed" in place of "went". The user guide says a drop sets no order and where a dropped row shows, and that the move needs the mouse. Tests were added where the pull request's left a gap: a group refused going into a group two levels inside it (a check of one level passed every test before), groups moved and turned and nested two deep left and entered with nothing moving, Undo, Redo and replay; what an item keeps of its material, stock, a locked solid inside a group and an instance's definition and other copy; a target inside a group locked two levels up; a mesh, a sketch or a section plane as an item, noitems,itemsnot a list andintoa string, which do not read and which a batch refuses naming the field ("op 0 (move_into): fielditems: unknown variantmesh, expectedobjectornode", "op 0 (move_into): missing fielditems"); a hidden target and an item in a hidden group, which are let through; the op's and the answer's stored bytes,intowrittennulland read as the model when absent; the open context a group nested inside a component instance, refused as inside a component; insrc/components/structure.test.tsx, a press that moves 3 px still a click and one of 5 px a drag, a right button released in a drag dropping nothing, a drag ending with the left button found up, on losing focus and on another button, Esc going no further than the Outliner, no drag while a name is typed, and a locked row among the selected ones going with the drag; and ine2e/outliner-drag.spec.ts, a drag telling the active tool (Scale's box and grips go with the selection, a line half drawn starts again), Esc in a drag leaving a line half drawn to be finished, a drag with a group open opening it again after, and a selection holding a locked group refused on the drop ("that is locked: unlock it first") and the checks that nothing moved wait for every queued edit and compare the undo depth (waiting showed that the locked group's check read the model hash before the lock itself had landed), and a drop of a row that is not selected beside another in its own place, which the pull request's test did not reach (its drop landed on a selected row, which is not a place to drop). The fuzzer'sMoveIntonow picks mostly a group other than the open one as the target, and the model only while a group is open: over 10,000 cases (seed 20261011) it was accepted 2 times in 774 before and 7 in 774 after, since most generated models hold no second group to move into; the unit and property tests carry the op.
Fixed (lane 83, 2026-11-23) #
copy,arrayandtransformtakenodesalone, and a known op with a field missing or of the wrong kind says which field (#127, from @aramshaw; #116). An agent copying a component instance through the MCP server'sapply_opswith{"op": "array", "nodes": [1], "xform": ..., "count": 5}was refused with "not an op the kernel knows (missing fieldobjects)":Copy,ArrayandTransformincrates/kernel/src/model.rsdefaultednodesto empty on reading but requiredobjects, andcrates/kernel/src/refbatch.rscalled every op that did not read an op the kernel does not know. Nowobjectsis empty when left out, asnodesis, and is still written as before ([]), so no stored log, golden or model hash changes. A batch op whose name the kernel knows but which does not read says so in the form of a refusal, naming the op: "op 0 (array): missing fieldcount" with serde's own words for a missing field, and for one field of the wrong kind, the field too, "op 0 (array): fieldcount: invalid type: string "three", expected u32", a wrong value inside a field included ("op 0 (rename): fielditem: unknown variantobjekt..."). Serde names a wrong field only by what it expected, so the field is found by reading the op again without each field in turn. Only a field that does not read alone with the op's name is tried that way: reading ignores fields an op does not have, and an op holding 16,000 of them after a wrong one took 20 s to refuse when every field was tried (release build in WSL), where an op of 4 MB with 240,000 of them is now refused in under 0.3 s. Two wrong fields at once name none, and a field missing one level down (translationinxform) is named without the level, as serde gives it. An op the kernel does not know, one with noop, or anopthat is not a name, keeps "not an op the kernel knows". The op's name alone tells which, so a wrong value inside a field spelt like the op ({"rename": 1}asrename'sitem) names the field. Copy, array and transform with neither list are refused, as before, with no undo step: in a batch, "op 0 (copy): nothing is selected to transform (objectsandnodesare both empty or left out)", where it said "op 0 (copy): nothing is selected to transform". A misspeltobjects("object": [4]) now reads as left out and gets that refusal, where it said "op 0: not an op the kernel knows (missing fieldobjects)". An array's count is still checked first.src/kernel/types.tsmarksobjectsoptional for the three ops. Docs:docs/PLUGINS.md(both lists empty when left out, and the refusals),docs/MCP.md,docs/DEVELOPMENT.md.- What the review changed from the pull request: the cheap test above before each field is tried (the search was quadratic in the fields of one op, and a message may hold 4 MB); the op's name alone deciding whether it is an op the kernel knows (an
itemof{"rename": 1}in arenamewas called an unknown op); and the refusal for neither list naming both. No change to what is read or written. - Tests:
crates/kernel/src/refbatch.rs(copy,arrayandtransformof an instance bynodesalone, four instances in one cut list row;objectswritten as[]after reading without it, and read back the same; missing and wrong fields named for required and optional fields of three ops, and a wrong value insiderename'sitem, also one speltrename; two wrong fields naming none; an unknown op, one with noopand"op": 5still unknown; each of the three ops withnodesalone and with"objects": []giving the same model hash, log hash and log; neither list refused naming both, with nothing changed, an array of 0 copies still refused for its count andmove_sectionswith no planes as before; a later op of a batch named by its own index and name; an op with 20,000 fields it does not have and a wrong one after them refused naming it in under 5 s) andcrates/mcp/tests/server.rs(copy_and_array_take_nodes_alone, through the server). All fail on the code before this change.
Fixed (lane 82, 2026-11-20) #
- On Linux, the Open and Save dialogs start in a folder you would look in (#125, from @akvalentine977; #71, #80). The page gave the desktop's dialogs no folder: Save a bare name (
Untitled.shz) and Open nothing. GTK's chooser then starts Save in the process's working directory, which for an AppImage is the mount it runs from (/tmp/.mount_Sawhor..., read-only and gone when the app closes), and Open in Recent. Now the page keeps the folder of the last file it opened or saved (sawhorse.lastFolderin the webview's storage, beside the units setting, so it lasts between starts) and names it to the shell before each dialog; Save As names the folder of the model's own file ahead of it. The shell's newdialog_foldercommand answers, on Linux, with the first of those, then Documents, then home, that is a folder the user can list now, and the dialog is given it: Open, Import and Plugins > Load Unpacked Folder as their folder, Save, Save As and the exports in front of the file name. One folder serves every dialog, a plugin's own file dialogs and Plugins > Install from .zip included. A file dropped on the window or one the app was started with counts as opened; a plugin folder picked with Load Unpacked Folder does not move the folder kept, since a plugin's folder is not where the models are. - The rule is one function,
chooseinsawhorse-dialog-folder, a new plain crate undersrc-tauriwith tests of its own; the command insrc-tauri/src/lib.rsonly hands it the page's folders, the two system folders and the check on the disk, and has no branch per system. A folder is taken only when its path is absolute with no.., is Unicode, and can be listed (read_dir): one that is gone, is a file, or is closed to the user is passed over. - What does not change. Windows and macOS: the command answers nothing there and looks at nothing, and the dialogs get exactly the options they got before (the page still asks, and with no answer gives Save the bare
Untitled.shzand Open no folder:src/io/folder.test.ts, ande2e/dialog-folder.spec.tswith the bridge stood in for as on Windows and macOS). The browser build: it has no shell and keeps no folder. The capabilities: no permission is added, and nothing is added to the fs scope; the dialog plugin adds only the path picked, as before. The folder is kept under its own key and goes nowhere else: not into a model file, an export, the unsaved work kept for Restore unsaved work?, a plugin, or a log line. No file-format change. - What the page can learn from the shell that it could not before: of up to four absolute paths it names, the first that is a folder this user can list, else Documents or home. It cannot learn what is in a folder, or whether a file is there.
- A dialog is never held up by this. The check runs on a blocking thread of its own (
spawn_blocking), not on the main thread or the async runtime's workers, and only one runs at a time: while one has not come back (a network mount that does not answer), the next dialog's question is answered nothing at once, so such a folder holds one thread and no more. The page waits at most a second and a half for the answer and then opens the dialog with no folder, as before; a shell without the command or storage that cannot be read means the same. The command writes and keeps nothing, so an answer that comes late is dropped and leaves nothing behind. - What the review changed from the pull request: the check of the disk ran inside the async runtime's task (
#[tauri::command(async)]on a plain function), so each check stuck on a mount that does not answer held one of the runtime's few worker threads for as long as the mount did, and enough of them would stall every other command, the dialogs' own included; it now runs on a blocking thread, one at a time (OneAtATimeinsawhorse-dialog-folder). The Linux switch moved into the crate asON_LINUX, held by a test and at compile time, so a build for Windows or macOS with the switch on does not compile. An end-to-end test of a shell that answers 2 s late was added, and tests were tightened where a planted fault passed them: the limit of four, a cancelled Open keeping no folder when the shell answers another, and nothing logged when the shell lacks the command. The changelog and the user guide say what the slow case does. - Tests:
src-tauri/dialog-folder(16: the order, on Linux and off it; the Linux switch (ON_LINUX, the only thing the shell's command decides by) held to the platform the test runs on; a folder gone, a file, a path that is not whole or not Unicode; a folder closed to the user, on the real disk; the limits on what the page may name, four at most; one check at a time, a check that does not come back holding its turn and a second question answered at once without looking), run in CI'stauri-check;src/io/folder.test.ts(33: what is kept and named, what each dialog is given, the wait given up on, the plugin folder picker, the one storage key, the bytes saved being the bytes given, the browser build);e2e/dialog-folder.spec.ts(10, the page as it runs in the shell with the bridge stood in for: Open, Save As, the first Save, a folder gone, a shell 2 s late given up on with the late answer changing nothing, Load Unpacked Folder, Windows and macOS unchanged, a shell without the command, and with autosave on that neither the saved file's entries, nor anything in IndexedDB, any other storage key or the console holds the folder). Docs: the user guide's Saving section,docs/DEVELOPMENT.md. - Tried by hand by akvalentine977 on 2026-11-20, on the .deb, .rpm and AppImage built from the pull request, each from a first start: GNOME 46 (Ubuntu 24.04), 48.7 (Debian 13), 50.1 (Ubuntu 26.04) and 51.1 (Fedora 45), Cinnamon 6.6.4 (Linux Mint 22.3), and KDE Plasma 6.8.2 (openSUSE Tumbleweed, and CachyOS with the AppImage started from a desktop launcher). On all seven: the first Open starts in Documents, not Recent; the first Save starts in Documents with
Untitled.shz, on the AppImage too; after a save into Downloads, Open starts in Downloads, and still does after the app is quit and started again; Export > STL starts in the folder of the model just opened; Save As starts in the model's folder with the model's name; Plugins > Load Unpacked Folder starts in the folder kept. Then on all seven, with the model in Downloads and an export saved into Documents: Save As still starts in Downloads, and Load Unpacked Folder and Open start in Documents. Not tried by hand: Windows and macOS (the tests show the dialogs' options are unchanged there; the shell was not built or run on either), Import, a file dropped on the window or given at the start, and a folder that is gone or closed to the user. The command as it landed (the check on a blocking thread, one at a time) was not tried by hand: it differs from the pull request he built.
Fixed (lane 81, 2026-11-20) #
- A boolean of two solids that touch face to face where they meet is built instead of refused (#124).
Object::combinerefused, as not a valid solid, the intersection of a side and a shelf 1 mm too thick for its dado with the shelf's end on the dado's floor (side first,EdgeThroughFace; both ways, and the difference too, once both were turned 0.83 rad about a skew axis), a shelf cut to its dado's size pushed 0.5 or 1 mm into the dado's floor (both ways, square to the axes), and two boards lying on each other, turned and moved 1 km (FacesOverlapwithNonPositiveVolume(0.0)). The engine's answer had the right volume: it resolves coplanar faces by symbolic perturbation, and where two faces touch it can keep both over the contact area, facing opposite ways, a sheet of no thickness hinged to the true result, which the validator refuses as faces overlapping or an edge through a face.boolean::combinenow cancels such sheets: on each plane where faces facing opposite ways overlap in area (the validator's own face-on-face test), each facing keeps what it covers and the other does not, on the faces' own corners; a ring left running out and back along a line loses that spike, and a corner a neighbouring edge needs goes back in. It only changes a result the validator refuses, so a result that was accepted is the same. A result that is nothing but such sheets is empty: boards that only touch, and boards less than the merge distance into each other whose faces were welded together. Corners the overlay cannot match to the faces' own leave the result as it was. When the result with the sheets cancelled does not build or validate, the result without the step is built instead and its answer given (the engine runs once;boolean::Combined::build, used byObject::combine, push/pull and Follow Me): a boolean the step cannot save is refused with exactly the words it had before, and one it saves is unchanged. Now these answer, the same both ways, square to the axes, turned about x, turned about the skew axis, and moved about 50 m and 1 km: the shelf too thick for its dado (60 mm3) and the one 1 mm off the floor (50 mm3), with their differences and unions; a shelf 0.011 to 1 mm too thick for a 19 mm dado; the shelf 0.5 or 1 mm into the dado's floor (2,850 and 5,700 mm3) and the differences; boards that only touch (empty, also 5 km out) and boards 0.005 mm into each other (empty). No file-format, model hash, golden or engine change;npm run boolean:diffagrees on its 26 cases. - Still refused, each pinned by an ignored test with what it should answer: boards exactly the merge distance (0.01 mm) into each other, turned away from the axes (square to them, the overlap is empty): the engine's result is welded at the corners that round to the merge distance and not at those that round past it, which needs a decision on what an overlap of exactly that depth is; and the shelf 0.5 mm into the dado's floor, turned 0.83 rad about the skew axis and moved by (40, -25, 12) m: the engine's result is right, but the weld that closes slivers joins a corner of the dado's floor with a point the engine made about 2.6 um from it and keeps that point, so a face is 1.4 um off its plane; keeping the corner instead changes which point every weld keeps, which is for a lane that can show what that does to every result that welds today. Seen while testing and not changed, as before this lane: some turned results come out a few micrometres off (turned 0.83 rad about the skew axis and moved about 1 km, a shelf 0.02 mm too thick reads 34.35 of 36 mm3 side first and is refused shelf first), and some unions and differences of turned parts are still refused: over 3,000 random turns and moves up to 1 km of two 600 x 300 x 19 mm boards, the union of boards lying on each other was refused in 488 (their difference in none), and of boards overlapping 0.05 to 5 mm and slid, the difference in 27 and the union in 42.
- Tests:
crates/kernel/tests/touching_booleans.rs(the issue's steps with the volumes worked out by hand, both orders, in five placements: the shelf too thick for its dado and 1 mm off the floor, every operation; the shelf 0.011, 0.02, 0.1 and 1 mm too thick for the wide dado; the shelf 0.5 and 1 mm into the floor, also moved 40 m along x and along z, intersections and differences; boards that only touch, also 5 km out; boards 0.005 mm into each other; a property test of boards lying on each other, slid, turned about any axis and moved up to 1 km, empty both ways; a refusal the step cannot save, a U profile less a box square to the axes and an L profile less a box moved 40 m, refused as without the step; eleven fixed pairs from a seeded sweep of boxes, L and U profiles and polygons, their volume, faces and vertices and the boolean's own result pinned, chosen so that taking out or changing the corner check, where the step runs (after the plane snapping), running it once, the tolerance it groups faces by, putting corners back, healing, the area under which a piece is dropped, or the plane a piece keeps fails at least one row; and the two ignored tests above). Four of those rows are refused today though taking out a guard makes them answer with the right volume: those guards cost answers. Each runs on the code before this change and fails there, refused.crates/mcp/tests/measure.rs: the shelf too thick for its dado now answers both ways and gives no reason when turned; a shelf 1 mm into the wide dado's floor, turned 0.83 rad and moved by (40, -25, 12) m, still refused side first, keeps the other order's answer tested, checked against the kernel.check_clearancestill tries the other order. Docs:docs/MCP.md(the cases seen),docs/DEVELOPMENT.md.
Added (lane 80, 2026-11-20) #
- The MCP server measures how two parts sit:
check_clearanceandmeasure(#122, from @aramshaw; #14). Each takes two parts as items fromsummary({"object": id}or{"node": id}; a group or component instance stands for every solid in it, at any depth, where it sits).check_clearanceanswersgap_mm, the shortest distance between their surfaces, worked out exactly over their triangles (an edge through a face, edge to edge, corner to face), so a turned part reads right, and 0 when they touch or overlap, a part wholly inside another included; the closest points;overlap_mm3and the overlap's box along the world axes, from the kernel's boolean intersection on copies; andseated, the gap and that box's thinnest side both withinPOINT_MERGE(0.01 mm, fromtolerance.rs, withLENGTH_EPSfor rounding). For parts square to the axes, an overlap about the merge distance deep or less is one the kernel's intersection does not keep, so it reads 0 and seated. Where the kernel cannot work out the intersection either way round (cases seen include boards turned away from the axes, exactly 0.01 mm into each other, and a shelf cut to its dado's size pushed 0.5 mm into the dado's floor, turned 0.83 rad about a skew axis and moved by (40, -25, 12) m; since lane 81 boards touching face to face read empty, and the other shelves in dados tried answer), the overlap andseatedarenullwithoverlap_unknowngiving the first such pair's reason, from the first order, while the gap still answers. A solid inside a group, named by its own item, answers with its own name.measurelists each pair of parallel flat faces (within the kernel'sPARALLEL_EPS), one from each part, facing each other with some area in common (up to the merge distance past each other listed at 0), nearest first, at most 50 and how many more: the distance along the normal and the faces (object and persistent face id), so two sides of a shelf give the inside width, and a shelf short of its dado's floor gives how far. Hidden parts are measured and the answer says which. The same item twice, one item inside the other, an item that is not there and one that holds no solid are refused plainly. Past 20,000,000 triangle pairs a call is refused before any work: 4,000,000 pairs with no box check skipping any took 0.45 s (release build in WSL, 2026-11-20).check_clearanceis also refused before any work when its intersections would take in more than 1,000,000 triangles: two groups of 372 overlapping boards, under the pair limit, took 11.6 s. The slowest accepted calls found (release build in WSL, nothing else running) took 3.5 s and 6.9 s when the intersections built (998,784 and 985,608 triangles), and 9.4 s when they could not be built either way round (998,784 triangles). Both only read: no undo step, the same model hash, the same saved file. Answers give lengths to the nanometre. No kernel, file format, model hash or golden change. - What the review changed from the pull request: the intersection is tried in the other order before giving up (a shelf whose end sits on its dado's floor read "not known" one way round and right the other); the limit on the intersections' triangles above;
measure's test for parallel faces isPARALLEL_EPSfromtolerance.rsin place of a number of its own (which let faces 0.002 degrees apart through, where the distance between them moves by more than the nanometres it is given to); the docs say whatseateddoes not tell (a shelf touching both walls of its dado but short of the floor is seated), that a curved part is measured to its facets, that a group's overlap is added up pair by pair, and where the kernel's intersection was seen to fail. That failure is the kernel's to fix, filed on its own. - Tests:
crates/mcp/tests/measure.rs(18: the 11 of the pull request, the read-only one also with refused calls, a call where the intersection fails and the saved file's bytes, and five from the review: groups two deep, a group's overlap added up and a component copy turned a quarter; a shelf in a dado, fitted, thinner, short of the floor and too thick, and one the other order answers; both limits on either side, refused before any work;measurewith a face turned 0.001 degrees and with 60 pairs facing; a group holding only an imported mesh or only a sketch refused; the pair limit at exactly 20,000,000 and one disc side over, and what the intersection limit counts: solids within 0.01 mm of each other's boxes counted, solids further apart not; which pair and orderoverlap_unknownnames, checked against the kernel on the saved file; andmeasurewith faces 0.01 and 0.0101 mm past each other),crates/mcp/src/measure.rs(2, and the ignored timingpair_cost); all fail on the code before this change, which has neither tool. And the worked example indocs/MCP.mdnow measures the shelf's sides and checks a shelf is seated (the_worked_example_in_the_docs_runs). Docs:docs/MCP.md(the tools, what a group does, the costs, the worked example; out of Not yet),README.md,docs/DEVELOPMENT.md.
Fixed (lane 79, 2026-11-20) #
- The MCP server's first save through a link the file server follows is refused, and leaves nothing of the model outside the folder (#121, from @aramshaw; #118).
placeincrates/mcp/src/paths.rsresolves the folder a new file goes in and refuses one outside the server's folder. On a Samba share seen from Windows, a link made on the server to another folder of the share resolves as the folder asked for, and only a file in it shows where it really is, sosave_modelwroteout/Escaped.shzoutside the folder whileopen_modeland a second save refused the same path. Nowsave_modelresolves the temporary file it wrote (written_inside), and when that is outside the folder removes it and refuses with the words a second save gives ("it leads out of the server's folder"), before anything is read back or moved. A refusal whose temporary file could not be removed says so. The check is made once, after the write: another program changing a link between it and the move is not covered (asdocs/MCP.mdsays of every check). The save never removes a file it did not make, so where a share's client holds a stale view of a folder and says a temporary file's name is taken while the server makes that file, an empty file of that name can stay outside. Server only: no kernel, model hash, golden or file format change. - Tried by the contributor on a Samba share from Windows 11 with a GNU cross-build of
mainand of the pull request, the link made on the file server: onmainthe first save through it landed outside; on the pull request the first and second saves were refused with nothing left outside, on the mapped drive and on the UNC path, and saves inside the folder gavemain's model hash. The empty file above is what he saw when the client's view was stale. Not tried: the share with CI's MSVC build, and a real MCP client against the change. - Tests:
crates/mcp/src/paths.rs(a written file inside passes; one outside, and one in a folder whose name only starts with the folder's name, are refused with those words; one that is not there is refused) andcrates/mcp/src/tools.rs(a save into a folder whose files resolve outside, with the place made by hand since a symbolic link on Unix and a junction on Windows resolve as a folder andplacerefuses them first: refused with nothing left outside, and with a file already there outside refused leaving that file as it was; the same save inside goes through). It runs on Unix and, through a junction, on Windows. Both fail on the code before this change. Docs:docs/MCP.md,docs/DEVELOPMENT.md.
[0.1.0-alpha.7] - 2026-11-19 #
A pre-release, v0.1.0-alpha.7; every change since alpha.6: v0.1.0-alpha.6...v0.1.0-alpha.7. The release notes: docs/releases/v0.1.0-alpha.7.md.
Release (the alpha.7 preparation, 2026-11-19) #
- Version 0.1.0-alpha.7 in npm, Tauri (MSI version 0.1.0.7), both Cargo workspaces and their locks (only the members' own version lines), the six plain crates under
src-tauri(logout-holdamong them), the.shzgenerator examples, the site's download links anddocs/DEVELOPMENT.md's list of the release's files; the release notes indocs/releases/v0.1.0-alpha.7.md(the glue-up note on the cut list row and the Minimum strip setting, #56, #67, #57 and #70, first; the Nesting fields, #89, #90, #92, #95, #93, #96, #98, #101, #102, #100, #106 and #88; Scale, Move and Follow Me after Undo, Delete and Hide, #76, #82, #85, #105, #111, #114, #86, #104, #81 and #83; big sketches and many curves, #11, #61, #64, #87 and #65; unsaved work kept in up to five sets, #94; the cabinet generator's back, #60; the MCP server, #14 and #63; the logout dialog on GNOME and Cinnamon, #73 and #119; the smaller fixes, #9, #97 and #66; not yet, with a minimum strip for one part, #57, and the MCP server in the installers, #14; the known limits, with the GNOME countdown, #73, a saved model offered back on a Mac, #103, a double-clicked file behind the offer, #115, edges Undo removed staying selected, #110, and the MCP server's loose solids and network share, #116 and #118; thanks by GitHub login). The README, the site anddocs/SIGNING.mdpoint at them. In this section, the entries for #88, #63, #64, #61 and #87 and lane 68's now say what is true at the release: the status line's 3.18 mm, the MCP server built and run on Windows and macOS by CI, moving many curves no longer slow, the #87 timing test ignored for the count, and P1LOTRX credited without the links that no longer answer. - Docs and site for alpha.7: the site's cut list and nesting line says the narrowest strip of a glue-up can be set, and its offline line that work not saved is kept as you go and offered back at the next start;
docs/LIMITS.mdsays it is current for alpha.7 (with lanes 46, 49, 60 and 64);docs/MCP.mdrecords what @aramshaw reported on #14, a CI-built Windows binary run from a real MCP client and from a folder on a network share, and the one gap he found there, #118;docs/DEVELOPMENT.mdpoints the test build's Mac walkthrough at the alpha.7 notes and says @akvalentine977 opened the Linux files of test build run 43123831440 on seven desktops (#73).
Fixed (lane 78, 2026-11-19) #
- On GNOME and Cinnamon, logging out, restarting or shutting down with unsaved changes names Sawhorse in the desktop's own dialog (#119, from @akvalentine977; #73). KDE Plasma closes each window when the session ends, so the question the window asks before it closes showed there already. GNOME and Cinnamon end the session without closing the windows first, so nothing was asked (the work came back at the next start through Restore unsaved work?). Both expect an app with unsaved work to hold a logout inhibitor with the session manager. Now, on Linux, the shell takes one when the page says the model is unsaved and gives it back when the page says it is saved or the window is going, the words
close_guardalready hears:Inhibitonorg.gnome.SessionManager, the name gnome-session and cinnamon-session both own, with the reason "This model has unsaved changes" and the flag for logging out only (not suspend or idle). While it is held, the Log Out, Restart and Power Off dialogs list Sawhorse with that reason; after a save they do not. The call goes to the session manager itself and not through GTK'sgtk_application_inhibit: the Linux window is made with no GTK application id, and with none the contributor measured GTK's call registering an inhibitor with an empty app name (and a GLib warning), which GNOME's dialog cannot list. The name sent isSawhorse, theproductNameintauri.conf.json, since GNOME lists an inhibitor only when it can find the app. What this does not do: GNOME still logs out when its dialog's 60-second countdown ends (seen by the contributor on GNOME 48 with a script holding the same inhibitor), so the dialog is a warning and a chance to cancel, not a block. A desktop with no such session manager (KDE Plasma: the name is not on the session bus) is asked once and holds nothing. Windows and macOS are not touched. The calls are made on a thread of their own, so the window never waits on the session manager, and the session manager drops an inhibitor when the connection that took it goes, so none is left when Sawhorse ends.InhibitandUninhibitare waited on for as long as the session manager takes, and only the bus's own answer to whether a session manager is there is given up on after two seconds: anInhibitgiven up on could still be granted afterwards, with a cookie the shell never heard, and that inhibitor would then stay until Sawhorse ends, saved or not. No file-format change. - Tried by hand by akvalentine977 on 2026-11-19, on the .deb and .rpm of the pull request: GNOME 46 (Ubuntu 24.04), 48.7 (Debian 13), 50.1 (Ubuntu 26.04) and 51.1 (Fedora 45), and Cinnamon 6.6.4 (Linux Mint 22.3). Unsaved, Log Out and Power Off or Restart name Sawhorse; saved, they do not (on Cinnamon, Log Out with nothing unsaved went through with no dialog). KDE Plasma 6.8.2 (openSUSE Tumbleweed, and CachyOS with the AppImage): as before, the desktop's dialog first and then Sawhorse's own question. Not tried: the AppImage on GNOME, which installs no desktop file, so GNOME may not list it. Those builds gave each call up after two seconds; the change to waiting on
InhibitandUninhibitwas not tried on a desktop. - Tests:
src-tauri/logout-hold(sawhorse-logout-hold, 11 tests, the shell's memory of the inhibitor as a state machine with no bus in it: the first unsaved takes and the save releases the same cookie; unsaved again while held takes no second one; saved with nothing held releases nothing; each unsaved spell takes its own; a desktop with no session manager is asked once; a failed call holds nothing and is tried again; every sequence six steps deep with every outcome of each take; the app name isproductNameintauri.conf.json; "unsaved" takes the hold and "saved" and "close" give it back; every wordclose-guardparses has a rule here; the flags hold logging out only). The calls on the session bus have no automated test: they need a running session manager. CI:ci.ymlruns the new crate's tests intauri-check. Docs:docs/USER-GUIDE.md,docs/DEVELOPMENT.md(the release checklist bumpssrc-tauri/logout-holdwith the other shell crates).
Changed (lane 75, tests only, 2026-11-19) #
- The property test that extrude then push back restores the sketch draws its sizes on a 1 um grid, so it no longer fails now and then on a shape that came back right (#113, from @aramshaw; #112). No change to what the kernel does: the same models, hashes and file format.
extrude_then_push_back_restores_the_sketchincrates/kernel/tests/invariants.rsextrudes a rectangle, pushes the cap back flat and checks the model hashes exactly as it did with the sketch alone. The extrude takes the rectangle out of the sketch, so the push back draws it again from the solid's world points, and that round trip carries float noise of up to about 2e-14 m. The model hash rounds the sketch's plane-local positions to 1 nm, so a size within that noise of a half-nanometre hashed differently after the round trip with the shape right: CI found one on #108, a 1 x 667.931 mm rectangle 49.86 m from the origin whose top corners came back 1.8e-15 m higher. The test now takes its sizes as whole micrometres from 1 mm to 10 m, either sign (grid_size), which sit at least 0.499998 nm from the nearest rounding boundary, and keeps the exact hash comparison; the origin and the normal stay arbitrary, andsize()is unchanged for the other tests. The input CI found is kept as a plain test,extrude_then_push_back_gives_the_corners_back, that holds what the kernel does guarantee for it, with no hash pinned: the solid collapses, one region comes back, every corner comes back within 1 pm, and the region extrudes again. The same test runs a second rectangle on a skew plane about 84 m from the origin, with sizes about 0.027 nm from the nearest multiple of 0.1 nm, so returned points snapped to a 0.5 nm or a 0.1 nm grid, which CI's input and the grid sizes let through, fail it. Measured with a harness outside the repository (release builds in WSL): the old sizes hashed differently 8 times in 3,000,000 random cases on one seed and 18 times in 10,000,000 on another, once in about 375,000 and 556,000 cases, or once in about 1,500 and 2,200 runs of the test's 256; the grid sizes never did, in the same counts, and in a scratch run outside the repository the test itself passed 2,000,000 cases. - Tests:
crates/kernel/tests/invariants.rs. Docs:docs/DEVELOPMENT.md.
Fixed (lane 76, 2026-11-19) #
- The Outliner's Delete, Explode Curve, Make Group, Make Component, Explode and the steps that hide something tell the active tool the model changed, so Scale's box and grips go with what they remove or hide (#114, from @aramshaw; #111). Since #105, Delete, Backspace and Edit > Delete tell the active tool what Undo tells it. The other steps that remove or hide the selected thing did not: with Scale the tool and a board selected, the Outliner's Delete erased the board and left the dashed box and its 26 grips over the empty model, and Edit > Hide, the Outliner's eye, Hide tag in the Tags pane, putting the board on a hidden tag and a scene that hides the board emptied the selection and left the grips round the hidden board, where a factor typed next scaled the hidden board. Explode Curve left them round a circle's edges once the circle left the selection. After Make Group or Make Component the box stayed on the solid inside the new group and a factor typed was refused as inside a group that is not open; after Explode it was refused as a group that no longer exists; Close Group / Component emptied the selection and left the grips. Now the Outliner's Delete, Explode Curve, Make Group, Make Component and Explode, once the kernel takes them, call what Undo and Delete call: the box and grips go, or move to what is selected now, a factor typed next asks for something to scale or scales the new selection, and the measurements box shows the tool's default. The Outliner's eye, Edit > Hide, Hide tag and Show tag, putting the selection on a tag, a scene tab and Close Group / Component from the Edit menu do the same only when they hid a solid, a group or component or a section plane that was drawn, or took something out of the selection. Showing things, or a scene that only moves the camera, leaves a step half done alone, as before: a line started, a rectangle's first corner, a tape's first point, a move picked up, a push or a scale under way all go on after the click. As with Delete, a step half done when something is removed or hidden is dropped, and Follow Me lets its path go. Not changed: a plugin's batch, since a plugin's own tool applies its steps through it and telling the tool there would clear what that tool draws mid-gesture (a plugin command that deletes the selection while Scale is the tool still leaves the box); Delete Imported Meshes and "Make parts from loose faces", which change only imported meshes, which cannot be selected; Lock, after which the grips stay on the locked solid and a factor typed is refused. Front end only: no kernel, model hash, golden or file format change.
- Tests:
e2e/scale.spec.ts(the issue's three ways, the Outliner's Delete, Edit > Hide and the Outliner's eye, with Show leaving the board unselected and its box on hover; Hide tag; the board put on a hidden tag; a scene that hides the board; Explode Curve on a selected circle; the eye hiding a board whose box showed on hover with nothing selected; Make Group then Explode; Make Component; Close Group / Component; a camera-only scene clicked with a line started, the line finished as one step; a move under way through the Outliner's Show and a tag shown). The first eleven fail on the code before this change; the last two pass there and fail when every step through these callers tells the tool.src/lib/scope.test.ts(hidSomething: what a step hid, a group holding only sketch geometry hidden among it, and that showing things or a camera-only scene hid nothing). Docs:docs/USER-GUIDE.md,docs/DEVELOPMENT.md.
Changed (lane 77, CI only, 2026-11-19) #
- Every job in
ci.yml,pages.ymlanddesktop-test-build.yml, and the Playwright install step, stops after a set time. No change to what the app does. On a pull request on 2026-11-19 the web job's "install Playwright Chromium" step stalled inapt-get updateon the runner; the run's page shows the job cancelled after six hours, GitHub's limit for a job, with that step cancelled and the end-to-end step skipped..github/workflows/ci.ymlset no time limit. Now therustjob is stopped after 40 minutes,mcpafter 45 on each system,webafter 60 andtauri-checkafter 60 (its own apt step has passed after 37 minutes). In the web job, "install Playwright Chromium" fails after 20 minutes,install wasm-packafter 5 andnpm ciafter 10. The Playwright install usually takes under a minute, but with the mirror slow the slowest green one in either workflow took about 11 minutes, so 20 is under twice that. A step that runs out of time is not tried again. Every job inpages.ymlanddesktop-test-build.ymlhas a limit too, and the site build's Playwright install fails after 20 minutes.release.ymlandnightly-perf.yml's job for a missing runner are unchanged and still have no limit.
Changed (lane 74, docs only, 2026-11-18) #
- The setup docs name the Node version and the WSL distro the build needs (#108, from @aramshaw). The README said Node 24+, and
docs/DEVELOPMENT.mdsaid Node 24, but jsdom 30.1.2, the page Vitest's front-end tests run in, and three of its dependencies (@asamuzakjp/css-color,@asamuzakjp/dom-selector,w3c-xmlserializer) declare^22.22.2 || ^24.15.0 || >=26.0.0in theirengines(package-lock.json), so an earlier 24 is outside what they support. No other package in the lockfile asks for more on Node 24. Both docs now say 24.15 or later. On an earlier 24,npm ciwarns (EBADENGINE) and goes on, since the repository does not setengine-strict.scripts/cargo.shandnpm run wasm(scripts/build-wasm.mjs) forward to WSL withwsl.exeand no distro named, so they run in whatever the default distro is, and fail where that distro has no Rust toolchain; the one-time WSL setup indocs/DEVELOPMENT.mdnow says to make Ubuntu the default first, by the namewsl --listshows. Docs only: no code, kernel, model hash, golden or file format change. - Docs:
README.md,docs/DEVELOPMENT.md.
Fixed (lane 73, 2026-11-18) #
- A Nesting setting changed right after Undo or Redo keeps what Undo or Redo did (#106, from @aramshaw; #100). The Nesting section works the nesting out again 200 ms after a change, and its fields and settings came from that last nesting. A setting changed inside those 200 ms after Undo or Redo was stored with the others as the last nesting had them: set Kerf and Trim to 3.1 mm, Undo (Trim back to 0), then type 3.15 in Kerf and press Enter, and Trim came back as 3.1 mm. A length typed back after Undo was compared with the old reading too, so Enter on 3.1 after Undo took a 3.1 mm kerf back stored nothing. Now the fields show, and a change is laid over, the settings stored now, from the state the app reads after every change (
DocState.nest_settings); Undo and Redo put the fields back at once, before the diagrams catch up. The line under the diagrams names the settings of the nesting drawn, so while the nesting is worked out again it is dimmed with the diagrams. The Saw, Kerf, Trim, Joint loss and Minimum strip (clearing it too) all go through it. Read only: no op, model hash, golden or file format change. - Tests:
src/components/NestingSection.test.tsx(a change laid over the stored settings, not the last nesting, in a length field, the Saw, Joint loss and clearing Minimum strip; a typed length compared with the stored value; the stored values shown at once; the controls still waiting for a first nesting; the line under the diagrams dimmed while the nesting is worked out again; the last nesting's used when nothing stored is given),crates/wasm-api(the_state_holds_the_nest_settings_stored_now: the stored settings in the state, written as the nesting writes them, through Undo, Redo and Built-in stock) ande2e/nesting.spec.ts(the issue's two ways and a Redo, with the pane's refresh held by the page's clock). Each fails on the code before this change, except the case with nothing stored and the controls waiting for a first nesting, which pin behaviour that stays. Docs:docs/USER-GUIDE.md,docs/adr/0007-nesting.md,docs/DEVELOPMENT.md.
Fixed (lane 72, 2026-11-18) #
- Delete tells the active tool the model changed, so Scale's box and grips go with the solid (#105, from @socrabs151; #85). With Scale the tool and a board selected, Delete, Backspace or Edit > Delete erased the board and left the dashed box and its 26 grips over nothing. The grips still lit up under the cursor, a press on one was refused with "that solid no longer exists", and a factor typed next began with an Undo, which took the Delete back and scaled the board. Now Delete tells the active tool what Undo tells it: the box and grips go at once, a factor typed next asks for something to scale, and the measurements box shows the tool's default. Undo of the Delete brings the board back unselected, so its box shows when the cursor is over it. The same goes for every tool: a step half done when Delete erases the selection is dropped, as Undo drops it (a line started, a move picked up, a push under way, a tape's first point), and a click starts again. Follow Me lets go of a path Delete erased, so a click on a profile asks for the path instead of sweeping along the erased edge. Front end only: no kernel, model hash, golden or file format change.
- Tests:
e2e/scale.spec.ts(the issue's steps, with a press, move and click where a grip was changing nothing; Edit > Delete and Undo; a factor typed after Delete; Delete in the middle of a scale);e2e/follow.spec.ts(the steps of #86 with Delete in place of Ctrl+Z). All five fail on the code before this change. Docs:docs/USER-GUIDE.md,docs/DEVELOPMENT.md.
Fixed (lane 71, 2026-11-18) #
- Follow Me lets its path go when the model changes under it (#104, from @socrabs151; #86). Follow Me reads its path from the selection when W is pressed and keeps it as points. After Undo, Redo, File > New, Close, Open, Edit > Restore Unsaved Work, or an empty SketchUp file brought in by File > Import, File > Open or a drop (it opens in place of the model) with Follow Me still the tool, a click on a profile swept it along the path as it was: with a region's edge as the path and the rectangle that made it undone, the box's front face was swept round the rectangle that was gone and added to the box. Now the tool lets the path go when the model changes under it. The blue path leaves the view, the status line keeps what Undo or the other command wrote, and a click on a profile changes nothing and asks for the path; pressing W again reads it from the selection as it is then. A selection that still names sketch edges Undo removed is read as a path again by W, and a click on a profile then sweeps along those edges (#110). Front end only: no kernel, model hash, golden or file format change.
- Tests:
src/tools/follow.test.ts(the path dropped after the model changed, a face's edge and a chain of edges, the overlay empty, no status written by the drop, the click after it refused with the same words as with nothing selected and no op sent, W again reading the path);e2e/follow.spec.ts(the issue's steps: the click after Ctrl+Z sweeps nothing, the model hash and the redo step stay). The unit test of the drop and the end-to-end test fail on the code before this change. Docs:docs/USER-GUIDE.md,docs/DEVELOPMENT.md.
Changed (lane 70, tests only, 2026-11-18) #
- The test that a big sketch Move grows with the selection counts work instead of timing it (#11). No change to what the kernel does: the same models, hashes and file format. Since lane 60
crates/kernel/tests/move_redraw.rstimed a Move and a Copy of everything at two sizes and failed when four times the rings took more than twelve times as long. That is a wall-clock comparison, and on a loaded machine it failed now and then for reasons that had nothing to do with the code. Now the default run counts the vertices, edges and curve points the sketch's searches look at during each op, a number that is the same on every run and machine, and fails when four times the rings cost more than six times the work. It covers a Move, a Copy and an Array of 3, of circles and of polylines, drawn one ring at a time and imported. The counts grow about 4.1 times; with the kernel before lane 60 they grow about 16 times and every case fails. The count is kept per thread in the kernel and read throughtesting::sketch_visits, a hidden test hook. The wall-clock test is ignored now, beside the timing table, and still runs by hand in a release build. - Tests:
crates/kernel/tests/move_redraw.rs.
Fixed (lane 69, 2026-11-18) #
- A refused Nesting length loses its error mark when a new reading replaces it (#102, from @socrabs151; #101). In the Kerf, Trim, Joint loss and Minimum strip fields, a refused length stays as typed, marked in red with its reason in the tooltip. When the field had been left and a new reading of the stored length then replaced the text (Redo, or a change of units), the red mark and the reason stayed beside a length that is fine, until a length was next committed in that field. Now the mark and the reason go with the text they belong to. As before, a refused length keeps both while it is still in the focused field, through a new reading too, and while the stored length reads the same. Front end only: no kernel, model hash, golden or file format change.
- Tests:
src/components/NestingSection.test.tsx(the issue's steps; a refused length that was left giving way to a new reading with no mark or reason in all four fields, typed as a length that is not one or one out of range, in millimetres, fractions and decimal inches; a refused length in the focused field keeping its mark and reason through a new reading, refused by Enter or by the pause; a change of units with the field focused and after it was left; a refused Minimum strip giving way to auto, and keeping its mark through the same reading). The tests of a refused length that was left fail on the code before this change. Docs:docs/DEVELOPMENT.md.
Fixed (lane 68, 2026-11-18) #
- A Nesting length field leaves the text being typed alone when its reading changes (from P1LOTRX; #98). In the Kerf, Trim, Joint loss and Minimum strip fields, a new reading of the stored length that arrived while a person was typing replaced their text. The pause stored
3.1typed in a millimetre document and turned the field into3.1 mm, so the next key gave3.1 mm5and an error. The nesting the pane works out again about 200 ms after Undo or Redo put the reading over text typed in that time, so Enter stored nothing new. Now text typed in a focused field stays until Enter, leaving the field or Escape. Enter and leaving the field store it and then show it with its unit; Escape gives it up for the reading stored now, even one that arrived while the person typed. A length that is refused stays as typed with its reason through a new reading too. A focused field with nothing typed in it, or typed back to the reading it showed, follows a new reading as before, and so does a field the focus has left. The pause stores what it stored before, at the same moment. Front end only: no kernel, model hash, golden or file format change. - Tests:
src/components/NestingSection.test.tsx(the pause and the next keys, a late refresh then Enter in all four fields, leaving the field and Escape after a reading arrived, a focused field with nothing typed or typed back to its reading, a refused length kept through a new reading, a reading from elsewhere after the pause, typing again before a commit's own refresh, and a field the focus left without a blur);e2e/nesting.spec.ts(a late refresh held by the page's clock until a length is typed, then Enter and Escape, and the pause and more keys in millimetres, fractions and decimal inches; the #93 test now expects a 4 typed over 5 mm to stay as typed after the pause until the field is left). Docs:docs/DEVELOPMENT.md.
Fixed (lane 67, 2026-11-18) #
- No title in the menu bar does nothing, and the desktop app has a Help menu (#97). The menu bar showed eight titles in every build, and a click on one whose menu had no entries opened nothing: Draw and Window in every build, and Help in every build but the demo on the site, the desktop app on every system included. Now a title is in the bar only while its menu has an entry, so the bar holds File, Edit, View, Tools, Plugins and Help. In the desktop app Help holds User Guide, What's New and Source on GitHub, and each opens https://sawhorse3d.com/guide/, https://sawhorse3d.com/changelog/ or https://github.com/sawhorse3d/sawhorse in the system's browser through the shell's existing
open_externalcommand, which opens exactly those three addresses beside Stripe Checkout; the app's window stays where it is, and a page the shell does not open is named in the status line with its address. The demo's Help menu is unchanged, and the other browser builds (npm run dev,npm run preview) have the same four entries, pointing at the public site. No new dependency or permission: the opener plugin was already in the shell. No kernel, model hash, golden or file format change. Docs:docs/USER-GUIDE.md,docs/DEVELOPMENT.md. - Tests:
src/components/TopBar.test.tsx(a title with no entries left out of the bar and the others in order; every title shown opening its menu, its ARIA state, a second click and Esc; an entry chosen; a title whose last entry goes while it is open leaving the bar and coming back closed; no menus at all);src/lib/help.test.ts(the entries in the desktop app, in the demo with its base on the site and on the github.io address, and in the other browser builds with the bases./and/; the desktop list the same as the shell'sHELP_URLS, read from its source; a new tab in the browser,open_externaland nowindow.openin the desktop app, and a refusal named);src-tauri/device-key(only_the_help_pages_open_beside_checkout: the three pages open, and 17 near misses do not);e2e/menus.spec.ts(every title opening a menu with an entry in the browser build and with the desktop bridge stood in for, on Windows and macOS; Help's entries in each; each entry opening its address in a new tab or through the shell with the app's address unchanged; a shell that does not open it);scripts/site-smoke.mjs(the demo build's Help: four entries opening the site's pages beside the demo in new tabs).
Fixed (lane 66, 2026-11-18) #
- A Nesting length that reads the same as before is shown with its unit (#96, from @bfs2021; #93). In the Kerf, Trim, Joint loss and Minimum strip fields, a typed length that reads the same as the one shown (3.18 in a millimetre document, where the 1/8 in kerf reads 3.18 mm, or 0.13 where it reads 1/8 in) was stored as typed, but the field went on showing the typed text without its unit, after Undo and Redo too. Now Enter or leaving the field shows it as the field writes lengths, 3.18 mm. The pause after typing still stores it and leaves what was typed in the field until Enter or leaving it, so typing can go on. A length that reads differently shows what was typed until the new value is worked out, then its reading, as before. What is stored does not change. Front end only: no kernel, model hash, golden or file format change. Docs:
docs/DEVELOPMENT.md. - Tests:
src/components/NestingSection.test.tsx(Enter, leaving the field, Undo and Redo after it, the pause, Trim, Joint loss and Minimum strip, fractions, decimal inches and millimetres, a length that reads differently, and lengths that are refused staying as typed, a stored kerf over the field's top among them);e2e/nesting.spec.ts(the issue's steps in a millimetre document with Enter, leaving the field, the pause, Undo and Redo, Enter on the other three fields, a refused length, a length that reads differently never shown as the old reading in between, and fractions and decimal inches). The unit tests of Enter, leaving the field, the other fields and the pause, and the end-to-end test, fail on the code before this change.
Fixed (lane 65, 2026-11-18) #
- A length halfway between two inch steps reads as the upper one (#95, from @Golden007-prog; #92). The lengths the saw is set to, written to 0.001 in in decimal inches and to 1/64 in in fractions (the Kerf, Trim, Joint loss and Minimum strip fields and their messages, the status line after a change to them, the footer under the diagrams, a trim step in the cut sequence, a stock's actual thickness and Built-in stock's tooltip and status line), were rounded from a value with floating-point error, so a length exactly halfway could read low: 3/16 in as 0.187 in, 1 13/16 in as 1.812 in, 3/128 in as 1/64 in, 29/128 in as 7/32 in. They now read 0.188 in, 1.813 in, 1/32 in and 15/64 in, the same way as millimetres since lane 63; every other length a field can hold reads as before, and what is stored does not change. Front end only: no kernel, model hash, golden or file format change. Docs:
docs/USER-GUIDE.md,docs/DEVELOPMENT.md. - Tests:
src/nesting/exports.test.ts(halfway lengths in decimal inches and in fractions, two worked out in millimetres, the issue's four lengths typed through the app's length parser, and lengths a hair under a halfway reading low, near 0 and near 12 in);src/components/NestingSection.test.tsx(Enter on a kerf or joint loss reading 0.188 in or 1/32 in, or leaving the field, keeping the exact length). The halfway tests fail on the code before this change.
Fixed (lane 60, a pull request from @aramshaw, 2026-11-17) #
- A Move, Copy or Array of a big sketch selection grows with the selection, not its square (#87, from @aramshaw; #11, from boardfoot's split and scratch change there). A move takes out every edge touching a moving vertex and draws it again with the insertion rules; with everything selected that is every edge, and each was drawn with a scan of every vertex and edge, so a typed Move of 400 circles of 48 segments took about 3.6 s from Enter to the "Moved" line in a headless Edge on the development machine. Now the edges are drawn through a lookup, as a long stroke has been since #65, when there are enough of them for one to pay, and the edges still there after the repair are kept through one set of vertex pairs; a selection of polylines named edge by edge finds its points through one grid of the vertices and checks its edges against one set, not a scan each. The same for a Copy or an Array's segments, and a copy's curves are made together, as an import's are since #61, instead of one at a time with every curve in the sketch settled for each. Measured the same way: a Move of 400 circles of 48 segments about 0.22 s, the same rings as polylines about 0.27 s where they took about 4.9 s, 400 circles of 24 segments about 0.12 s where they took about 1.0 s; natively, a Copy of 200 circles of 48 segments about 0.12 s where it took about 3.7 s, and an Array of three of 100 about 0.12 s where it took about 4.5 s. Four times as many rings now cost about seven times as long, where they cost about fifteen to sixteen times: the square term of the redraw is gone, though what is left still grows a little faster than the count (doubling the rings costs about 2.2 to 3 times). What a move, copy or array leaves is the same, ids and bits included: the model hash after each of 24 such ops (Move, Copy and Array of circles and polylines of 24 and 48 segments) is the one
maingives. A shape lifted off its plane still makes its curves one at a time. No golden, model hash or file format change. Docs: ADR-0012 and ADR-0013 (dated notes),docs/LIMITS.md,docs/DEVELOPMENT.md. - Tests:
crates/kernel/src/sketch.rslookup_tests(a move's edges and a copy's segments drawn through the lookup leave exactly the sketch the scans leave, keys and bits included, with the same regions and curve pieces, over hostile sketches with circles, every vertex or one in two to six moved, shifted by the merge distance, a hair past it or a rectangle's width, turned or scaled; the move test fails with the lookup built before the vertices move; the selection's points found through one grid asvertex_atfinds them, at, either side of the merge distance and on a tie; the new edges kept after the repair, given either way round beside pairs with no edge, the same through the set for over 64 as through the scans, which fails with the set's pair taken as given);crates/kernel/tests/move_redraw.rs(a Move of everything, of circles and of polylines named edge by edge, and a Copy of circles: four times the rings costing at most twelve times as long, the fastest of three runs and of up to nine while not within the bound; about fifteen to sixteen times onmain, which fails it every time, about 7 times now; since lane 70 that timing test is ignored, and the default run counts the work instead, four times the rings at most six times the work; ignored, release only, the Move, Copy and Array timings and model hashes above);crates/kernel/tests/curves.rs(an array of two of a circle, an arc and a polygon numbers its six new curves copy by copy in the selection's order, each on its own copy; fails with a copy's curves handed over in another order);crates/kernel/tests/sketch_move.rs(a rectangle moved beside another leaves its edges in the slots drawing them again in the sketch's order gives; fails with the taken edges drawn in another order).
Fixed (lane 64, 2026-11-17) #
- Restore unsaved work? never hides newer work, and Restore never loses other work (#94). An offer left unanswered stayed the offer at every later start, so work drawn after it and left unsaved was never offered, and Restore of the old offer wrote the old work over it about 300 ms later, for good. An edit while the offer showed replaced its line and nothing said it was still set aside, Save, Open and New never cleared it, so an old offer could outlive several saved sessions, and Edit > Restore Unsaved Work after drawing replaced the drawing without a word. Now every piece of unsaved work is kept set aside until it is restored or discarded. A start offers the newest first and says how many older sets are set aside too ("1 older set of unsaved work is set aside too."); Discard offers the next at once, and after Restore the rest stay set aside, on Edit > Restore Unsaved Work one at a time, newest first, and offered again at the next start. Restore sets the model it replaces aside first when it holds unsaved changes, behind the others, and says how many presses of the menu come before it, leaving out sets the menu cannot restore ("The model you had open is set aside as unsaved work: Edit > Restore Unsaved Work brings it back after 1 other set."; at the next start all are offered by time again), asks the discard question when that model is too large to keep, and gives an untitled model, so Save never writes restored work over an open file. The restored work is kept as this session's work at once, and a reload at any point during Restore finds each piece of work once. While work is set aside and its offer is not on the status line, the line ends with "Unsaved work set aside. Click to restore or discard.", and the click shows the offer again. At most 5 sets are kept, each at most 64 MB as before: a start that would keep a sixth deletes the oldest and says so ("At most 5 sets of unsaved work are kept: the oldest (...) was deleted."). Two sets with exactly the same log are kept as one. With several windows open one model can still be set aside more than once, at different stages. A file the desktop app was started with still waits for the answer: each Discard offers the next set and the file opens after the last, and Restore offers the file beside the work, as before. What older builds kept is read as it is, nothing lost. Front end only: no kernel, model hash, golden or file format change. Docs:
docs/USER-GUIDE.md,docs/DEVELOPMENT.md,docs/LIMITS.md. - Tests:
src/lib/autosave.test.ts(on an in-memory stand-in for IndexedDB: the issue's three starts, Restore, Restore over this session's work, setting the open model aside as a move, an exact copy kept once and counted once toward the cap, Save, Open and New, the four layouts older builds left, the cap, logs with no work and records that cannot be read, storage that fails, ids and order);src/components/ValueBar.test.tsx(the reminder);e2e/offers.spec.ts(twelve tests: the issue's three starts, Discard, edits while an offer waits, Save, New and Open, Restore from the Edit menu after drawing, the older builds' layouts, the cap,?autosave=0, Restore with another set waiting, the count leaving out sets that cannot be restored, a Restore the kernel refuses, and the restored work in the store before any autosave runs);e2e/startup.spec.ts(two sets and a start-up file);e2e/containment.spec.ts(a box drawn while an unreadable record is offered is offered first at the next start). Eleven of the twelve new end-to-end tests fail on the code before this change; the?autosave=0test passes there too. The last one also fails when Restore leaves the restored work to the next autosave instead of keeping it at once.
Fixed (lane 63, a pull request from @Golden007-prog, 2026-11-17) #
- A length halfway between two hundredths of a millimetre reads as the upper one (#90, from @Golden007-prog; #89). The lengths the saw is set to, written to 0.01 mm when the cut list rounds in millimetres (the Kerf, Trim, Joint loss and Minimum strip fields and their messages, the status line after a change to them, the footer under the diagrams, a trim step in the cut sequence, a stock's actual thickness and Built-in stock's tooltip and status line), were rounded from a product with floating-point error, so a length exactly halfway often read low: the built-in 1/8 in kerf and joint loss (3.175 mm) as 3.17 mm, 3/8 in as 9.52 mm, a typed 0.045 mm as 0.04 mm. They now read 3.18, 9.53 and 0.05 mm; every other length reads as before, and what is stored does not change. Front end only: no kernel, model hash, golden or file format change. Docs:
docs/USER-GUIDE.md,docs/DEVELOPMENT.md. - Tests:
src/nesting/exports.test.ts(1/8 in and 3/8 in in millimetres, lengths a hair either side of 3.175 mm, 3.1749999999999 mm reading 3.17 mm, and Built-in stock's words);src/components/NestingSection.test.tsx(Built-in stock's tooltip, and Enter on a kerf or joint loss reading 3.18 mm, or leaving the field, keeping exactly 1/8 in);e2e/nesting.spec.ts(the tooltip, the status line and the fields after Built-in stock in a millimetre document). The unit tests fail on the code before this change.
Fixed (lane 61, a pull request from @aramshaw, 2026-11-17) #
- Built-in stock says what it puts back in the document's units (#88, from @aramshaw; #58). The status line after Built-in stock and the button's tooltip read "kerf 1/8 in, no trim, table saw" in every document, and left out that the joint loss goes back to 1/8 in and the minimum strip to auto as well. Now both name the kerf and the joint loss as the Kerf and Joint loss fields then show them, in fractions, decimal inches or millimetres as the units and the cut list's rounding choose ("kerf 1/8 in", "kerf 0.125 in", "kerf 3.18 mm"), and say the minimum strip goes back to auto: "Stock back to the built-in sheets and boards: kerf 3.18 mm, no trim, joint loss 3.18 mm, minimum strip auto, table saw." In millimetres the built-in kerf is still 1/8 in, which the field showed as 3.17 mm (3.18 mm since lane 63); metric defaults are still open on #58. Front end only: no kernel, model hash, golden or file format change. Docs:
docs/USER-GUIDE.md,docs/DEVELOPMENT.md. - Tests:
src/nesting/exports.test.ts(the words in fractions, decimal inches and millimetres, the kerf as the Kerf field writes it);src/components/NestingSection.test.tsx(the tooltip in each);src/nesting/nesting.test.ts(on the real kernel, Built-in stock after a 2 mm kerf, a trim, maxrects, a joint loss and a minimum strip gives back the kerf, trim, saw, joint loss and minimum strip the words name, and the front end's default joint loss is the kernel's);e2e/nesting.spec.ts(a millimetre document with a 2 mm kerf and a 30 mm minimum strip: the tooltip, the status line and the fields after Built-in stock, the tooltip in inches, and in decimal inches the tooltip, chosen with the dialog open, and the status line after a 0.1 in kerf). The end-to-end test fails on the code before this change, at the tooltip.
Changed (lane 62, CI only, 2026-11-17) #
- The MCP server binary CI builds on Windows and macOS is kept for a week (#14). No change to what the app or the server does. On a push to main, the
mcpjob uploads the release binary it has just run, as the artifactsawhorse-mcp-Windowsorsawhorse-mcp-macOSon the run's page, for seven days. It is unsigned and it is not a release: the server is still not in the installers. It is there so the server can be tried with a real MCP client on a machine that cannot build it.
Changed (lane 59, tests only, 2026-11-16) #
- Where the app tells the active tool the model changed is pinned by tests (#82; #76). No change to what the app does. A check of #82 planted faults in
src/App.tsxand found six no test caught: the call after Redo, after Open, after opening an empty model and after File > Close taken out, the live selection cleared after the call on Open instead of before, and the tool'sresetno longer called after Undo. Tests:e2e/scale.spec.ts(a 24 x 4 x 2 in board stretched to 36 in, undone and redone: 26 grips and the +red face grip hot at 36 in; Scale active over the board, then File > Close: no grips over the empty model; a 12 x 12 x 6 in box saved, then a board whose solid has the box's number selected with Scale active and the box's file opened: no grips, and a typed2says to select something and leaves the box as it was);e2e/draw.spec.ts(a 12 in line drawn and undone while the chain waits at its end: a length typed then draws nothing and says where to click);e2e/private-fixtures.spec.ts(Scale active over the board, then the private empty SketchUp file opened: no grips over the empty model). The private-fixtures test runs only where the private files are, so CI does not run it. Each fails with its fault planted: the Redo test finds no grip at 36 in, the Close, Open and empty-file tests find 26 grips, and the line test reads the 6 in line it drew.
Changed (lane 58, a pull request from @akvalentine977, 2026-11-16) #
- Scale's status line says which key is held and which is tapped (#83, from @akvalentine977; #81). It read "Shift: uniform. Ctrl: about the centre.", the same form for both, though Shift applies only while it is held and Ctrl switches on a tap and stays on until the next. It now reads "Hold Shift: uniform. Tap Ctrl: switch between the opposite grip and the centre.", when the tool is picked and while the pointer is over a grip. The guide's tool table and its Scale paragraph say the same. Nothing about what the keys do has changed.
- Tests:
src/tools/scale.test.ts(the line on activating the tool, and the line over a face grip).
Fixed (lane 58, a pull request from @akvalentine977, 2026-11-16) #
- After Undo or Redo, Scale's box and grips go back round the shape, and a value typed then in Scale, Move, Rotate or Offset no longer undoes a further step (#82, from @akvalentine977; #76). With Scale the active tool, Ctrl+Z after a scale put the shape back and left the dashed box and its grips where the scaled shape had been, so the grips that showed were not where a press was taken. A value typed at that point was worse: the tool still took the undone scale for the last step and began, as it does when a scale is typed again, with an Undo of its own. That took the step before the scale (the Push/Pull that made the board, in the test) and the scale was then refused with "that solid no longer exists". Move, Rotate and Offset did the same with a distance or an angle typed after Undo. File > New, Close and Open with Scale active left the old model's box drawn over the new one, and it stayed there. Now the app tells the active tool when the model changes other than by the tool's own step (
Tool.modelChanged, called afterreseton Undo, Redo, New, Close, Open and Edit > Restore Unsaved Work). Scale works its box out again from the selection as it is and forgets the scale it would have redone, so a value typed after Undo or Redo scales the selection about its centre, as it does when no grip has been picked. Move, Rotate and Offset forget the step they would have redone, so a value typed then says what to do first and changes nothing. New, Close, Open and Restore Unsaved Work now also drop a gesture in progress in whatever tool is active, as Undo already did; keeping the model when asked about unsaved changes leaves the gesture as it was. - Tests:
src/tools/scale.test.ts(after a scale and the app'sresetandmodelChanged, the 26 grips and the dashed box are at the solid's bounds as the host now gives them; a typed2sends onetransformabout the centre and noundo; with nothing selected and no solids there are no grips and no overlay);src/tools/move.test.ts,rotate.test.tsandoffset.test.ts(a value typed afterresetandmodelChangedsends nothing);e2e/scale.spec.ts(a 24 x 4 x 2 in board stretched to 36 in and undone: 26 grips, the +red face grip hot at 24 in, and none left after File > New; a typed2after the Undo leaves one watertight solid from (-12, -2, -1) to (36, 6, 3) in; a board stretched while unsaved work is offered, then Edit > Restore Unsaved Work: no grips, and a typed2leaves the restored 24 x 16 x 12 in box as it was);e2e/move.spec.ts,e2e/rotate.spec.tsande2e/offset.spec.ts(a distance or angle typed after Undo leaves the box or board as it was). Each end-to-end test fails without the change: the first finds no grip at 24 in, the restore test finds 26 grips, and the others read "that solid no longer exists".
Changed (lane 56, tests only, 2026-11-16) #
- The Minimum strip setting's choice of stock, its top bound and a set 0 are pinned by tests (#57). No change to what the app does. Tests:
crates/kernel/tests/nesting.rs(a 12 1/16 in part on 6 in and 4 1/2 in boards glued from the 6 in board with the setting absent and from the 4 1/2 in board with it set to 0, where the 6 in board would leave a 1/16 in last strip, narrower than the kerf);src/components/NestingSection.test.tsx(0.3048 m and the double under it taken and the double above it refused, each typed in metres; a set 0 shown as "0 in" and "0 mm", not empty, and cleared back to auto).
Added (lane 55, a pull request from @aramshaw, 2026-11-16) #
- A Minimum strip setting for glue-ups (#57). Since #56 a glue-up's last strip narrower than 1 1/2 in, or a quarter of the board when that is less, is evened out with the full strip before it. What is acceptable depends on whether the joint shows, so the minimum is now a document setting beside Kerf, Trim and Joint loss in the Nesting section. The field is empty, reading "auto", until set, and the #56 rule holds. Set, a last strip narrower than the setting, or than half the board when that is less, is evened out, so the two equal strips are never under it; on a narrow board the setting holds where the rule's quarter-board cap would have dropped it. 0 never evens out: the last strip has only to clear the kerf and 1 mm, as before #56, so a part auto would glue can be left on no stock. Clearing the field (Enter, or leaving it; a pause on an empty field does nothing) goes back to auto. The setting is an undo step, is saved with the file as
settings.minStrip(0 to 12 in, 0.3048 m, so 304.8 mm and 1 ft are taken) only when set, and is hashed only when set, so every file, hash and golden from before is unchanged. The nesting's footer names it beside the joint loss when something is glued up. The per-part override in #57 waits, as agreed there. Docs:docs/format.md, ADR-0007 (dated notes),docs/USER-GUIDE.md,docs/DECISIONS.md,docs/DEVELOPMENT.md,docs/CLEANROOM.md. - Tests:
crates/kernel/tests/nesting.rs(absent by default and in an older file; saved only when set; 0 and 12 in taken, below 0, past 12 in, NaN and infinity refused, and a refusal through the op changing nothing; the model's hash as before until set and again once cleared, through undo and redo, and 2 in and 3 in hashing apart; saved and opened with the same hash and nesting; on 6 in boards the rule's 1 1/2 in last strip kept, a set 2 in evening it out, a set 4 in held at half the board either side of 3 in; on 2 in boards a set 3/4 in where the rule's quarter cap gives 1/2 in; 0 keeping a 1/4 in last strip and refusing one narrower than the kerf the rule would have evened out; the property tests with the setting absent, 0, 12 in or any in range, every glue-up checked against it; the range's end and the half-board cap to the last bit, and a last strip of exactly half the board kept), the fuzzer's nest settings setting it a third of the time;crates/shz(a document with it set and then cleared saving byte for byte as one that never had it, with the built-in library and with a changed kerf, and the same nesting hash before saving and after opening);src/components/NestingSection.test.tsx(the field empty with "auto" until set, a typed length sent, past 12 in refused, a set value shown, cleared sent without it, 0 sent as 0; a pause on the emptied field clearing nothing, leaving it clearing it; millimetres in a metric document, and 304.8 mm, 1 ft and 12 in all taken);src/nesting/exports.test.ts(the footer naming it beside the joint loss only when something is glued up);e2e/nesting.spec.ts(a 24 1/4 in top: 1/4 in typed, 12 + 12 + 1/2 in and the footer and status line naming it; Undo, Redo, and the field cleared back to auto and 12 + 6 1/4 + 6 1/4 in).
Fixed (lane 54, a pull request from @aramshaw, 2026-11-16) #
- A second rectangle started level with a corner the cursor rested on stays on the ground (#69, from @aramshaw; #9). With a rectangle on the ground, a second one started on the grid or an edge could stand up on a vertical plane such as x = 16 in. Since #23 the far corner skips the blue line through the first corner while the rectangle's plane is open, but not the blue line through a corner the cursor had rested on (a "from point" anchor). When the second rectangle's first corner shared that corner's x or y, the far corner snapped onto that line above the ground, and the upright plane through the first corner held it. Now the directions a rectangle skips go for the anchors' lines too, while its plane is open. Red and green alignments from an anchor stay, an arrow-key lock keeps every line as before, and a rectangle still stands up when its far corner is on a real point, edge or face off the ground. No kernel, model hash, golden or file format change. Docs:
docs/DEVELOPMENT.md. - Tests:
crates/inference/tests/infer.rs(the plane open, the first corner at the origin and an anchor at (0, 1, 0): the far corner 2 px from the anchor's blue line half a metre up is a from point there without the skip, on the anchor's red line on the ground with blue skipped, and on the start's blue line with a blue lock);e2e/draw.spec.ts(in the iso view, a 16 x 10 in rectangle, the cursor resting on its corner at (16, 10) in, a second rectangle from about (16, -6) in, taken on the green line through that corner, with its far corner 2 px beside the blue line through that corner, 8 in up, drawn on the ground). Both fail on the code before this change.
Fixed (lane 53, 2026-11-15) #
- An extrude of exactly 0.01 mm is refused as too short, never as a kernel bug (#66). The shortest push/pull is 0.01 mm, the distance under which two points are one. An extrude of exactly that made walls exactly that tall, which the kernel's own check refuses, so it was rolled back as "kernel bug, operation rolled back: ... VertexOnFace" on the ground, as four zero-length edges 500 mm up (the corners, once placed, rounded a hair under 0.01 mm apart), and went through 1000 mm up (they rounded a hair over). The same rounding reached a few doubles over the minimum. Now an extrude of 0.01 mm or less is refused on every plane with "an extrude must be more than 0.01 mm" (after the check that the shape stays within 10 km, as before). A push/pull, extrude or offset up to 1 nm over the minimum that fails the way the minimum makes things fail (the kernel's check finding zero-length edges or a corner on a face, push/pull's degenerate result, an offset's loop meeting or leaving the face's own edges), while the same op at 0.02 mm would go through, is refused with "too short here: at this distance two corners, or a corner and a face, would be 0.01 mm or less apart; use a longer distance" (an offset: "too short here: the offset would come 0.01 mm or less from the edges it starts from; use a longer distance"), alone, as an op of a batch, or in a plugin's or the MCP server's batch. Before, a push/pull with Ctrl said "push/pull through the solid: the result has degenerate geometry" and an inward offset that the path crossed the face's boundary or had to run strictly inside it. Under the minimum a push/pull still says "distance must be at least 0.01 mm" and an offset "offset distance must be at least 0.01 mm": a plain push/pull or an outward offset of exactly 0.01 mm goes through as before. Any other failure at the minimum keeps its own message (and a kernel bug of another kind stays one), and everything from just over 1 nm over the minimum is unchanged. A loop drawn on a face that would leave two corners under 0.01 mm apart is refused like one that comes within 0.01 mm of another face, instead of reaching the kernel's check. Measured over six planes (level both ways, upright, two sloped, a diagonal), 0 to 5 km out along their normal, a 0.4 x 0.1 m rectangle and an 8 km one, both ways: the rounding reaches 1.4e-12 m over the minimum; nothing ends as a kernel bug, the WASM kernel the same. Inside a batch each such op's own result is checked at once, so the kernel's check refusing it is judged there too; a failure the check finds only after later ops of the batch is not traced back to one op and stays a kernel bug (none was seen), and so does a refusal that mixes the minimum's violations with any other.
- Tests:
crates/kernel/tests/min_distance.rs(the issue's cases on the ground, 500 mm and 1000 mm up, both ways, refused with nothing changed, and 0.0100001 and 0.02 mm extruding by exactly that distance; the document's history kept on the refusal; a plain push/pull of exactly 0.01 mm still sliding the face; a sweep of the six planes at six heights, two rectangles, both ways and 76 distances from two doubles under the minimum to just past the band, through extrude, push/pull, push/pull with Ctrl and offsets of a face and of a region, with never a kernel bug, only the one refusal each op may give at each distance, and everything past the band going through; a property test over any plane within 9 km and any rectangle; each refusal's words true where it is shown; a Ctrl push/pull and an inward offset at the minimum refused the same way as the first and the last op of a raw batch and in a plugin's batch, nothing left behind; other failures at the minimum keeping their own message, alone and in a batch; a shape beyond 10 km saying so at exactly the minimum; an op whose failure at the minimum is the minimum's kind but which fails at 0.02 mm too keeping its own error, alone and in a batch; an extrude within the band judged by the same rule as every other op, alone and in a batch, its own result checked at once),model::tests::only_the_minimum_s_own_failures_are_relabelled, the unit test of an extrude's refusals. Without the fix the issue's cases come back as the kernel bug, and the sweep and the property test fail; without the batch's own retry the batch test fails with "the result has degenerate geometry". - A long stroke goes in in time that grows with its length, and one certain to break a sketch's edge limit is not drawn first (#65). Each new segment of a stroke was checked against every point and every edge already in the sketch (to snap its ends, to split it at points it passes and to find the edges it crosses), so a stroke cost its length squared, and one over the sketch's 20,000 edges held the kernel for seconds before it was refused. Now a long stroke looks those up in a grid of the sketch's points and edges and checks the few nearby, with the same tests on every point and edge that can pass them, so the sketch it leaves is the same, point for point and edge for edge. The grid is used only where it pays: for strokes of 48 segments or more (a 24-segment circle always scans), with a cell the size of the stroke's segments, of the sketch's edges, or between, whichever is estimated cheapest, and only when that estimate (entering the sketch's points and edges, and each segment's queries with what they find in nine cells of the box the sketch and the stroke cover) is at most half what the scans cost, decided in one pass over the sketch's edges and the stroke before anything is built, and only within a ceiling of four entries per point, edge and segment (at most about 250 bytes each). A grid that turns out crowded, out of room, or answering most queries with most of the sketch is dropped on the way and the scans finish. And a stroke that crosses, touches and folds over nothing, itself included, adds exactly one edge a segment: when it is the last op of its edit and would take its sketch past the limit, it is counted instead of drawn, and the edit is refused with the error the limit check gives with it drawn (the first sketch over the limit, in the check's order, with its count: "a sketch would hold 23999 edges; at most 20000"). Every other stroke is drawn and then checked as before, so the strokes accepted, and the errors of those refused, are exactly those before. A file can already hold a sketch past the limit (opening it does not check this one); every edit to it is refused for that sketch, as before. The issue's zigzag sent as one batch, before and after, on the WASM kernel in Node: 8,000 points 1.21 s and 0.10 s, 20,000 points 8.43 s and 0.18 s (drawn); 24,000 points 7.17 s and 0.03 s, 32,000 points 11.59 s and 0.04 s (refused); native release, best of three: 0.47 s and 0.022 s, 2.92 s and 0.062 s; 4.17 s and 0.014 s, 7.52 s and 0.021 s. Beside 19,000 parallel lines 1 m long (native release, best of three): drawing the lines 4.53 s and 0.87 s, a stroke of 1,000 segments of 0.5 mm 0.91 s and 0.57 s, of 5,000 segments 2.77 s and 1.24 s; the process peaked up to 2.3 MB higher (16 MB and 18 MB), and 4.6 MB higher (16.9 MB against 12.3 MB) beside 2,000 lines 0.2 m long with a 5,000-segment stroke, and the WASM kernel's memory 1.5 to 2 MB higher; a 20,000-point stroke takes about 4 MB more of the WASM kernel's memory while it goes in (15.1 MB against 11.1 MB), and a refused one less. Drawing circles is as fast as before: one more 8 or 24-segment circle into a sketch of 100 to 400 circles took 0.99 to 1.02 times as long, the 64-segment one 0.81 to 0.84, and 400 circles drawn one at a time in the WASM kernel 11.08 s against 11.42 s. One shape is slower: beside 250 lines 0.52 m long, 3 mm apart, a stroke of about 200 to 250 segments of 0.5 mm crossing them, diagonal to them or closed over them took 5 to 12% longer, a few tenths of a millisecond (closed, 256 segments: 4.15 ms against 3.71 ms; across, 256 segments: 3.95 ms against 3.76 ms); there strokes of 128 segments or fewer were level, and of 512 segments 7 to 15% faster (a stroke of 512 segments 5 cm clear of them, 3.86 ms against 6.32 ms). Elsewhere, sweeps of strokes of 16 to 2,048 segments beside, across, diagonal to, closed over and inside sketches of none to 38,400 points and edges found no other shape slower (beside them, nothing of 0.5 ms or more over 1.03 times as long), strokes of 48 to 128 segments as fast or up to 2.2 times faster and of 512 to 2,048 segments up to 14 times faster; and a stroke crossing itself thousands of times (an import of 4,650 points ending with 145,088 edges) as long as before.
sawhorse-mcpkeeps its own limit of 20,000 points a batch. - Tests:
crates/kernel/tests/stroke_limit.rs(the issue's zigzag of 24,000, 32,000 and 200,000 points refused with its count and nothing changed, as a draw, as the last op of a batch and as a polyline in the sketch's frame, each within a generous 120 s on another thread, which fails before the fix (the 200,000-point stroke would take hours); a stroke past the limit that is not the last op of its batch drawn and then erased, allowed; a stroke past the limit with a point off the sketch's plane refused for that point; a batch drawing past the limit into two sketches, either way round, refused for the first sketch the check comes to; another limit broken earlier in the batch reported as with the stroke drawn; and, ignored, release only: 20,001 points making exactly 20,000 edges drawn, 20,002 refused with 20,001, and the refusal after drawing equal to the early one),model::tests::a_file_already_over_the_sketch_limit,model::tests::a_stroke_of_exactly_the_limit_is_drawn(a stroke to exactly 20,000 edges drawn, not counted, in the default run),model::tests::the_redo_with_the_stroke_drawn(a test hook leaves out a stroke under the limit to reach the path, otherwise unreachable, that does the edit again with the stroke drawn: the same model as drawing it),sketch::sure_count_tests(the strokes the count is certain for and not; a property test that a certain count is the count inserting gives, on random and on a fixed seed, both answers coming up often),sketch::lookup_tests(random hostile strokes, revisiting, folding back and running along edges at distances either side of the merge distance, into sketches with rectangles, a 40 m diagonal and an earlier stroke, at the origin and 9 km out, through the grid and through the scans, one stroke at a time and as an import, leaving the same vertices and edges under the same keys, the same regions and curves and the same new edges),sketch::lookup_border_tests(the same comparison where a grid is easiest to get wrong: steps of one to a few merge distances, so the cell is its smallest, every point on a cell border, a rounding or a fraction of the merge distance off it, beside short and long edges on the same borders and with strokes running along a long edge under the merge distance away, on a fixed seed in every run; planted faults in the grid, a dropped neighbour column, a cell under the merge distance, edges looked up without their neighbour ring, fail it),sketch::lookup_cost_tests(2,000 lines of 1 m beside a stroke of 0.5 mm segments, where a grid of the stroke's cells would need 8 million entries: held under the ceiling throughout, the same sketch; a grid crowded half way through a stroke, and one forced out of room part way, dropped with the same sketch as the scans; a query along a 10 km segment scanning instead of taking a cell per sample),sketch::lookup_decision_tests(beside 400 circles a stroke of 47 segments scans and one of 48 or 512 builds a grid; beside 250 lines 0.52 m long a stroke of 128 segments scans and one of 2,048 builds one; a grid whose queries find most of the sketch dropped with the same sketch; a segment's sample count held within a 32-bitusize, as on wasm32). Checked as well against the kernel before this change: 6,000 random cases (strokes, polylines and imports of up to 4,650 points, beside rectangles and a 40 m diagonal, at the origin and 9 km out) and 76 ops shaped like two reviews' (thousands of long lines then a short-segment stroke beside, across and along them; 250 lines 0.52 m long then a zigzag of 16 to 2,048 segments beside or across them; batches past the limit into two sketches) gave the same outcomes and model hashes on both.
Added (lane 52, a pull request from @aramshaw, 2026-11-15) #
- A glued part's cut list row says what it is glued from, and a board counts it once (#67, from @aramshaw; #56 point 4). Since #53 the Nesting section lists the glue-ups, but the cut list row of a glued part had no note, and a board holding both strips of one panel said "2 parts" while the totals said "1 of 1 part placed". Now, while the Nesting section is open, a glued row's notes say "glued from 2 (4/4 x 12 x 96)", naming the board from the stock library as the Nesting section does, in a metric document too. The note comes only from a nesting worked out for the model as it is shown, with the same Visible only as the list, and only for the row whose parts were glued; after a change it is gone until the nesting is worked out again. The CSV, the printed cut list and the labels leave it out, so they read the same whether Nesting is open or not. Each board's count of parts counts a glued part once, with its strips: "1 part in 2 strips", or "2 parts in 3 pieces" with a whole part beside them; a board with no strips reads as before. A part whose strips are too long to share a board is named on each board that holds some of them ("1 strip of 4a", the tag the glue-up list and the diagrams use), not counted as a part there, so no part is counted on two boards and each counts once in the totals. The count is the same in the pane's caption and diagram label, the booklet's Stock pieces list and each SVG's header. In the booklet a board with strips whose count runs into its yield gives the yield a line of its own, kept on the page with its title (so such a row can move to the next page), and a count naming the strips of several parts wraps after its commas rather than being cut short; a booklet with no glue-up is the same as before, byte for byte. Front end only: no kernel, model hash, golden or file format change. Docs: ADR-0007 (dated note),
docs/USER-GUIDE.md,docs/DECISIONS.md,docs/DEVELOPMENT.md. - Tests:
src/nesting/glue-note.test.ts(the note for copies glued alike, some glued, and glued from different boards; none without a nesting, with no glue-ups, for another row, or for a glue-up whose part is not one of the row's; the count with no strips, strips only, strips of two parts, strips beside a whole part, and a part whose strips are split across boards, as the booklet and the SVG write it; each of sixty booklet rows keeping its yield on its page, with the list starting at fourteen heights; a row with no strips whose count ends a point before its yield kept on one line, as before; a long count wrapped after its commas, whole, with the yield under it);src/components/NestingSection.test.tsx(the row's note with the nesting there and gone, the other rows without it; a board's caption and diagram label);src/nesting/nesting.test.ts(on the real kernel, each glue-up's row is the cut list's row at all three roundings, on thecutlist-mixedgolden, whose 16 in top reads "glued from 2 (4/4 x 12 x 96)", and on a 15 in panel whose hidden rail drops out with Visible only, moving the panel's row up one);e2e/nesting.spec.ts(a 15 in panel's row noted only while Nesting is open, its board's caption, diagram label and SVG saying "1 part in 2 strips"; three panels, one hidden, whose note, recorded at every change of the page, never reads "3 glued from 2" as Visible only is ticked, nor the board from before as the panel's stock is set and undone, which fails with either guard inApp.tsxtaken out; the 15 in panel's cut list CSV, PDF, labels and printed report the same bytes with Nesting closed and open with the note showing, and no note in the CSV, which fails when the exports are made to carry the note). Random cut lists through the kernel's nesting were also compared with the notes and counts their placements make, and random nestings with no glue-up with the files they gave before.
Fixed (lane 51, 2026-11-15) #
- A sheet or board the parts fill reads 0.00 waste, not -0.00. With no kerf and no trim, parts that fill their stock exactly (nine 16 x 32 in parts on a 4 x 8 sheet, three 4 x 32 in parts on a 4/4 x 4 x 96 board) have areas that, added up, came to a hair more than the stock's by rounding alone, so the Nesting panel, the SVG of each piece and the PDF booklet said "100.0% used · -0.00 sq ft waste" and the yield tile "-0.00 sq ft waste", and the nesting's numbers had a waste a little below zero and an efficiency a little over 1. Now the kernel reports such a piece, its group and the totals as exactly full: no waste and an efficiency of 1, and the words say "0.00 sq ft waste". Only a sum over its stock by no more than rounding can make is brought back, so parts truly larger than their stock still show; every layout, placement, cut and nesting hash is as before, and stock the parts do not fill reads the same numbers to the bit. An area that rounds to zero at two decimals is also never written with a minus, in the nesting and in the cut list.
- Tests:
crates/kernel/tests/nesting.rs(the filled sheet and board, a positive zero waste and an efficiency of exactly 1 for each piece, group and the totals, and their plain sums over the stock, so the case is the one rounding put over; ten parts each a whole 5 x 5 sheet, whose sheets added one by one came to more than ten times one sheet, filling the group and the totals exactly; a part half a nanometre larger than its sheet each way still below zero and over 1; the bookshelf, the plywood carcass, a part-filled sheet and the rails reading as before to the bit),src/nesting/exports.test.ts(an area that rounds to zero written as 0.00 in square feet and square metres, one of -0.01 or less keeping its minus, and the piece's line and the yield tile for the filled sheet's old and new numbers); the filled-stock tests fail on the code before this change. Two more guard the code as it is:crates/mcp/tests/server.rs(an absolute path,/probe.shzand real ones outside the folder, refused byopen_modelandsave_modelwith the message that says it is absolute,new_modelrefusing a path, nothing made or changed in or outside the folder; spaces around a path trimmed, the save, the open and the answer alla.shz; each fails on Linux with its guard inpaths.rstaken out, where before only the Windows run did) andsrc/tools/gather.test.ts(points exactly half way up their cell, near -3.4e6 m where a cell's number is quantised to quarters, gathered as the scan does, which fails with the lookup's side taken at<= 0.5).
Changed (lane 50, 2026-11-14) #
- The MCP server's folder rule and its save are now tried on Windows and macOS on every change (#14).
sawhorse-mcpreads and writes only.shzfiles under the folder it was started with, and until now that had been shown on Linux only. A new CI job,mcp, lints the server and runs all its tests on Windows and macOS, then builds the release binary and runs it once on a fresh folder (a board added, saved and its cut list read over stdin and stdout), failing unless every answer is the expected one and the saved file is the only one in the folder.docs/MCP.mdsays where it has been tried, thatfileon Windows is the\\?\C:\...form, and what those runs showed: a save over a read-only file is replaced on Linux and macOS and refused on Windows with the old file kept; on Windows a save over a file another program holds open is done when that program lets others delete it and refused otherwise, never leaving a half-written file or a temporary file; and a name differing only in case names the same file on Windows and macOS. - Tests:
crates/mcp/tests/windows.rs, on Windows only (drive, drive-relative, rooted, UNC,\\?\and\\.\paths and..with\or mixed separators refused, with nothing changed outside the folder, beside it or where such a path would land; streams, device names in lower, upper and mixed case and names ending in a dot refused, with no stream made; junctions, folder links and file links out of the folder refused, a junction to such a junction too, and those whose target is inside followed; a save over a hard link or a file link never writing through it; a start folder given as a junction, with a separator or a.at its end, or by its 8.3 short name; a path over 260 characters saved and opened; a save over a file another handle holds open, in each share mode, leaving the old file or the new one whole and no temporary file;filein the long resolved form), and incrates/mcp/tests/server.rson every system (requests ending in CRLF; a relative start folder and one ending in a separator; a save over a read-only file, the old file or the new one whole; a name differing only in case from a file that is there, one file after where the volume ignores case; a start folder through a link, on Unix, which on macOS is every test's temporary folder). Where what a system does is not certain, the test asserts what must hold and prints what happened. The shared helpers moved tocrates/mcp/tests/common/mod.rs.
Fixed (lane 49, a pull request from @aramshaw, 2026-11-14) #
- A Move, Rotate or Scale of a big sketch selection starts without waiting on gathering it (#64, from @aramshaw; #11). As a drag began, the tools gathered the selected sketch points, edges and moving points, each once, by checking every new one against all those gathered so far, so the time grew with the square of the selection. Now each is looked up in a grid of the ones gathered so far, which checks the few cells around it, so the gather grows with the selection. Measured on the development machine in a headless Edge, with everything selected: the time from the press to the first preview of a Move is about 0.15 s for 1,000 rectangles (4,000 edges) where it was about 0.28 s, about 0.3 to 0.4 s for 2,000 rectangles where it was about 0.8 s, and about 0.29 s for 400 circles of 24 segments where it was about 3 s. Rotate is the same, and Scale's grips come up in about 0.07, 0.13 and 0.2 s where they took about 0.2, 0.57 and 2.5 s. In Node, 4,000 edges gather in about 16 ms where they took about 350 ms, and 8,000 in about 32 ms where they took about 1.4 s; the pull request measured the same on another machine. What is gathered is the same, in the same order, with the same point kept where two are near: the same 1 nm test, both ways round for an edge, and a point that is not finite, or too far out for a cell, checked against everything as before. A typed Move of 400 circles, and of the same rings as polylines, leaves the same model hash as before. A fan of many edges from one point still gathers slowly, a big drag still waits a moment as it starts for other reasons, and a Move of many curves was still slow once it was made, after the click or Enter that ends it (#11), until lane 60 (#87). Docs: ADR-0012 (dated note),
docs/LIMITS.md,docs/DEVELOPMENT.md. - Tests:
src/tools/gather.test.ts(eight times the edges cost less than 24 times as much, the fastest of nine alternating runs, and of up to 27 while they are not within the bound: 8.5 to 9.3 times here alone, up to 13.1 beside full vitest runs and a cargo build, and 65 times on the scan it replaced, where it fails; over 500 seeded random selections, the same points, edges and moving points in the same order as the scan it replaced, written out in the test, with near misses either side of 1 nm, edges both ways round, two sketches and solids' edges left out; duplicates 1e300 m out and at the largest double gathered once, NaN and Infinity each time, as the scan did, which fails with the fallback for points without a cell taken out; points exactly 1 nm apart and one to three doubles either side, across zero, across multiples of a few nm and out to 1e15 m, as two points and as edges, gathered as the scan does, which fails with cells 2 nm wide where the other tests pass). Compared with the scan inmainbefore this change, the gather agreed on 600,000 more random selections, on 2.16 million pairs of points a few ulps apart from 100 km to a billion km out, and on hand cases exactly 1 nm apart and a hair either side, on cell edges and in cell middles, at plus and minus zero and at subnormals.
Added (lane 48, a pull request from @aramshaw, 2026-11-14) #
sawhorse-mcp: an AI agent builds, reads and saves Sawhorse models over the Model Context Protocol (#63, from @aramshaw; #14). Until now an agent could read a saved file's cut list throughsawhorse-cli, but not make or change a model without the app.sawhorse-mcp <folder>is a server on the same kernel that an agent starts and talks to over stdin and stdout (MCP revision 2025-11-25, JSON-RPC withserde_json, no new dependency). Its tools:new_model,open_modelandsave_model;summary(every part by name, with its size in mm to 0.1 mm, material, grain and ids);add_board(one named solid board from a size, a corner, the axes its length and thickness run along, and a material from the model or the app's library);apply_ops(the kernel ops a plugin batch sends, through the same checks);cut_listandnest(the same JSON assawhorse-cli, with the keys in alphabetical order);undoandredo. Every change is one undo step, all or nothing, and answers with the cut list rows it added, removed and changed. Where two parts share a name the answer says so and picks neither. It reads and writes only.shzfiles under the folder it was started with: an absolute path,.., or a link out of the folder is refused, so is a name that would mean something else on Windows (a:, a\, a device name such asCONorNUL, a dot or a space at its end), and a save goes through the kernel's writer to a new temporary file beside the target, is read back and its model hash checked before it replaces the file, and the answer says where the file is on the machine. These rules have been tried on Linux; since lane 50 CI also builds, tests and runs the server on Windows and macOS. A message that is not JSON, too deeply nested, over 4 MiB or of the wrong shape gets an error and the server reads on, and a batch of more points than a sketch may hold edges is refused before any work. A new workspace crate,crates/mcp; built from a checkout likesawhorse-cli, not in the installers. The tools and a worked example:docs/MCP.md.- Tests:
crates/mcp/tests/server.rs(a bookshelf built withadd_boardand saved, whose cut list read back throughsawhorse-cliis the one the server showed; boards on all six pairs of axes, in inches, and over a sketch facing the other way, which fails with the distance left unturned; one undo step per change and its cut list changes; a failingapply_opsand nine bad boards change nothing; shared names; paths out of the folder, by.., absolute or through a link, refused; malformed, deep and over-long input answered with errors; the binary end to end; the worked example indocs/MCP.mdas written; the finds of a second check on the first version: a 20,001-point stroke refused in under a second,..refused inside the folder, a 65-character name refused as a name, unknowncut_listandnestarguments refused, 2025-03-26 answered in 2025-11-25; names that mean something else on Windows refused on every system while names close to them save; a file already at the temporary file's first name neither written over nor removed; a save over a hard link or a link to another file replacing it, never writing through it; from the pull request's own run with a real client, sizes in answers to 0.1 mm with no float noise, the saved file's place on the machine, andapply_opspointing tocopyandarray). They fail without the crate. Two guards no input reaches have unit tests of their own incrates/mcp/src: a file that does not read back as the model, under the wrong hash or as bytes that are not a model, is never moved over the target, which keeps its old bytes; and a panic inside a tool comes back as a failed call, with the next call answered. Each fails when its guard is taken out.
Added (lane 47, a request from @sandulucian-oss, 2026-11-14) #
- The cabinet generator's back takes the thickness you give it (#60, requested by @sandulucian-oss, with thanks). The back was always thin sheet, 6 mm in a metric document and 1/4 in otherwise, and the panel only had a box to leave it off, so a cabinet with a 16 or 18 mm back had to be drawn by hand. Now the panel has a Back thickness field right after Stock, in the document's units like the other sizes. It starts at 6 mm in a metric document and 1/4 in otherwise, so a 16 or 18 mm back is one number to type. The back is the same part in the same place, between the sides at the rear from the toe kick up, and the top, the bottom and the shelves are that much less deep: a 600 x 720 x 560 mm cabinet with an 18 mm back lists Back 18 x 564 x 620 and a top 542 deep. A back over 1/4 in is solid stock in the Cut list like the sides, so with the built-in stock library it nests on the same 4/4 boards as they do; give the parts a plywood stock and they go on the 18 mm Baltic birch sheets together. The field is greyed out while Back panel is off. A back of no thickness says "The back needs a thickness.", and one that leaves no depth says "The depth must be more than the stock and the back together (578)."; the button waits until it is fixed, as for the other sizes. The line under the button names the back's thickness ("Adds a cabinet: 600 x 720 x 560, 1 shelf, 18 back, 100 toe kick."). A cabinet made with the defaults is exactly the one made before, with the same parts and the same model hash. Until you type a thickness the back follows the document's units, 6 mm or 1/4 in, as it did; once typed it is kept with the other sizes for next time and stays that length when the units change. Sizes kept by an earlier version, without the field, start at the default; the document keeps only which cabinet the plugin made, as before, so a model saved now opens in 0.1.0-alpha.6 as it is, and that version's generator keeps the extra size and ignores it. Changing only the back and pressing Update selected cabinet replaces the cabinet, as one undo step. The sample is version 1.1.0. Docs: the plugin's README,
docs/USER-GUIDE.md,docs/PLUGINS.md(the packed file's name),docs/DEVELOPMENT.md. Tests:src/plugins/cabinet.test.ts(new: the plugin's ownmain.jsrun against a fake host with its batches applied to the WASM kernel; the defaults in mm and inches, a 30 x 72 x 12 in cabinet with three shelves, one without a back, one started in inches with the units then set to mm, and sizes kept by alpha.6 make the same model hash as on the commit before this change; 16 and 18 mm backs at the rear between the sides, with the top, bottom and shelf depths and the cut list's rows; a 1/2 in back in an inch document; the field's place, starting values and greying out; each message; kept and old sizes, and kept values that are not numbers; the units; Update as one undo step),e2e/plugins-samples.spec.ts(an 18 mm back typed in the panel, on the model, the Cut list and the boards, kept through a save and reopen; a 1/2 in back in an inch document, kept through a reload). For the unit test,vite.config.tspoints the"sawhorse"module at the API's own shim in tests only.
Fixed (lane 46, a pull request from @aramshaw, 2026-11-14) #
- Importing a file of many circles and arcs no longer slows with their square (#61, from @aramshaw; #11). An import made each of the file's curves on its own: it found each curve's points by checking every point of the sketch, then settled every curve in the sketch again, so a file of n curves took time in n squared. Now each curve's points are found through one grid of the sketch's points, and only the new curve is settled, against the edges the curves already there hold: the graph does not change while an import adds its curves, and settling the others again changed nothing. Measured on the development machine: 400 DXF circles import in about 3.9 s in a headless Edge, where they took about 7.5 s (the same rings as polylines: about 4.4 s); natively in the test profile 400 circles take 6.0 s where they took 9.6 s (6.1 s plain), 1,000 small circles with half of them crossed by a line 1.6 s where they took 5.6 s (1.6 s plain), and 5,000 three-segment circles in one sketch 4.4 s where they took 41 s (4.4 s plain). The pull request measured 8.1 s to 4.7 s and 5.1 s to 1.3 s for the first two on another machine. What an import leaves is what it left before, the same curves with the same ids and the same model hash, also where a curve splits, or drops a piece too short to be a curve and a later curve takes that edge: the 203 corpus
.skpfiles and thirteen DXF, SVG and import files of circles, arcs and lines crossing, repeated and on many planes give the same model hash, curves, curve counters and notes as before, with their curves and as plain strokes, and in the app the same import report, counts and hash. A sketch whose curves would not settle to themselves, which no file the app writes holds but a hand-edited.shzcan, takes an import's curves one at a time as before. Moving many curves was still slow (#11's Move half) until lane 60 (#87). No golden, corpus file, model hash or file format changes; there is no new setting. How:Sketch::add_curvesincrates/kernel/src/sketch.rs(withVertexGridbeside it, a hash of cells twice the reach wide, and one curve's part ofsettle_curvesassettle_curve), called from the import incrates/kernel/src/model.rs; a draw still usesSketch::add_curve. Docs: ADR-0013 (a dated note, and a correction: a stroke that landed whole but off its circle becomes a polyline curve, it does not stay plain edges),docs/LIMITS.md,DEVELOPMENT.md. Tests:crates/kernel/tests/import_curves.rs(two imports, 72 curves apart on two planes and then 11 more crossing them, one repeated exactly, and a line across, leave the model hashes and notes the code before this change leaves; so do a square polygon split by spurs at two corners with an arc along that side, and a P-shaped polyline with a polyline along its tail, where an older curve drops a piece and a newer one takes its edge; 1,000 circles of 8 segments, every other one crossed, import as curves in no more than twice the time of the same strokes plain, the fastest of three alternating runs each, and of up to nine while the fastest so far are not within the bound: 0.98 to 1.03 times here in ten runs alone and at most 1.26 times in twelve beside a parallel release build, and 3.7 times on the code before this change, where the test fails);sketch::testsincrates/kernel/src/sketch.rs(over 1,000 seeded random imports, crowded and spread out, into sketches that may hold curves already, with circles, polygons, arcs of one segment and more, over another curve's chord too, P-shaped and doubled-back polylines, spurs, lines across, strokes repeated exactly or within the merge distance and centres a little off,add_curvesleaves the same curves, ids, next id and sketch hash and returns the same ids asadd_curveone at a time; curves split in 722 of them and stay plain edges in 764; the vertex grid finds what the scan finds, points at the reach, far out and not finite included). Lane 46 made the timing test take up to nine rounds, since beside a parallel build one round of three measured 1.75 times against its bound of 2, and added two tests: a sketch a hand-edited file left with a circle running whole through two junctions takes an import's curves one at a time and splits the circle as that did, and a point exactly as far from two vertices finds the one with the smaller id through the grid, as the scan does. Each of eleven deliberate breakages of the grid,add_curvesand the import's count fails at least one of these tests. Compared with adding the curves one at a time, in the same build: every import of the curve property tests, 25,886 imports and 124,236 curves over 6,000 random sequences that draw, cross, erase, explode, offset, move, turn, scale, mirror, copy, extrude and push curves and import more into the sketch and into the document reopened from its snapshot, left the same curves, ids, counter and sketch hash; and no model any test reached held a sketch whose curves would not settle to themselves.
[0.1.0-alpha.6] - 2026-11-14 #
A pre-release, v0.1.0-alpha.6; every change since alpha.5: v0.1.0-alpha.5...v0.1.0-alpha.6. The release notes: docs/releases/v0.1.0-alpha.6.md.
Release (the alpha.6 hygiene pass, 2026-11-14) #
- Version 0.1.0-alpha.6 in npm, Tauri (MSI version 0.1.0.6), both Cargo workspaces and their locks (only the members' own version lines), the five plain crates under
src-tauri, the.shzgenerator examples, the site's download links anddocs/DEVELOPMENT.md's list of the release's files; the release notes indocs/releases/v0.1.0-alpha.6.md(the cut list's glue-ups and shared boards, #49, #53, #62, #50 and #51, first; the desktop app's close question and File > Close and Exit, #44; the double-click on Windows and the title bar, #45; the selection after a move that splits or merges shapes, #7 and #55; the Move preview, #8 and #59; Control+click on a Mac, #40, #41 and #42, not yet reported from a real Mac; what alpha.5's ad-hoc signature did on three Apple Silicon Macs, #27; the Save As extension, #29 and #31, not yet reported from Linux; the smaller fixes; not yet, with cutting sizes, #54, joints, #25, the glue-up's cut list row, #56, its narrowest strip, #57, metric stock and starting values, #26 and #58, and the cabinet generator's back, #60; the known limits, with Cmd+Q on a Mac, Enter at the desktop app's questions, two windows' unsaved work and what a glue-up cannot do; the macOS walkthrough as #27 found it; thanks by GitHub login). The README, the site anddocs/SIGNING.mdpoint at them. - Docs and site for alpha.6: the site's cut list and nesting line names the shared boards and the glue-ups, and its unsigned-builds note says what macOS shows on the first open since alpha.5 (the warning that Apple could not verify the app, then Open Anyway), where it spoke of a damaged app; the README's signed-installers line and
docs/SIGNING.mdsay what alpha.5's ad-hoc signature did on three Apple Silicon Macs;docs/LIMITS.mdsays it is current for alpha.6 (with lanes 32, 37, 39, 41, 43 and 44);docs/DEVELOPMENT.mdpoints the test build's Mac walkthrough at the alpha.6 notes, and its release checklist says the preparation is gated and verified on a branch, then landed onmainby fast-forward and tagged frommain, and to read each cited issue's state before the notes call it open or closed.
Changed (lane 45, a pull request from @aramshaw, 2026-11-14) #
- A glue-up comes from the board that needs the fewest joints, never leaves a thin last strip, and uses a longer board when the widest is too short (#62, from @aramshaw; #56). Since #49 a solid part wider than every board was glued from the board the rest of that wood used, whatever it cost: a 16 in top beside narrow oak parts on 4/4 x 4 was five strips, 4 + 4 + 4 + 4 + 1/2 in, four joints and a sliver. Its last strip was whatever width was left, down to the kerf. And a part longer than the widest board was reported too large, even when a longer, narrower board could glue it. Now the strips come from the board of that thickness that glues the part from the fewest strips; on a tie, the board the rest of that wood uses, then the board listed first. That top is 12 + 4 1/8 in from 4/4 x 12, one joint. A last strip narrower than 1 1/2 in, or than a quarter of the board when that is less, and the full strip before it become two equal strips: a 24 1/4 in top from 12 in boards is 12 + 6 1/4 + 6 1/4 in, not 12 + 12 + 1/2 in, and a 6 1/16 in panel on 6 in boards, refused before for its 1/16 in sliver, is 3 1/32 + 3 1/32 in. A board shorter than the part is never a candidate, so with 4/4 x 12 x 96 and 4/4 x 6 x 120 a 15 x 100 in top is 6 + 6 + 3 1/4 in from the longer board, and so is a 10 x 100 in part narrow enough for 4/4 x 12 but too long for it (6 + 4 1/8 in); a part is too large only when no board of its thickness can glue it and no board makes it whole. So a part narrow enough for the board the rest of its wood shares but longer than every board of its thickness now goes in one piece on a thicker board long enough, when the library has one, where #53 reported it too large. On a tie, "the board the rest of that wood uses" is the one board the parts of that wood and thickness that fit a board's width are nested on; parts on other boards (a stock that is set, another glue-up, a thicker board) do not count, and with no such part library order decides. A part whose stock is set, by the part or as its material's default, keeps that board, as before. The refusals stay, now on the narrowest strip: narrower than the kerf or 1 mm, or more than 100 strips. One visible effect of the tie rule: a 15 in panel with nothing else of its wood, which #53 glued 12 + 3 1/8 in from the widest board, is 8 + 7 1/8 in from 4/4 x 8, also one joint, since 4/4 x 8 is listed first. The
cutlist-mixedgolden's nesting hash moved, for that top, and no other hash: no model, cut list or file format change. How:choose_stockandglue_widthsincrates/kernel/src/nesting.rs, withglue_minimumbeside them;testing::check_nesting_ofchecks the new rule. Docs: the user guide's Glue-ups, ADR-0007 (a dated note),DECISIONS.md,CLEANROOM.md,DEVELOPMENT.md. Tests:crates/kernel/tests/nesting.rs(a 17 in side beside 5 in shelves is 12 + 5 1/8 in from 4/4 x 12, where #53 glued it 6 + 6 + 5 1/4; a 13 in part ties between 4/4 x 8 and 4/4 x 12 and goes with the rest of the oak, else to library order; 15 x 100 in on 4/4 x 6 x 120, and too large at 130 in; a 10 x 100 in part, alone and beside a 15 x 100 in one, glued from 4/4 x 6 x 120, a 5 x 100 in part made whole on it, and 10 x 130 in still too large on 4/4 x 12; a 6 1/16 in panel, the 6.003 in part #56 named, and 4.9 in on 4 in boards made equal, while 7 1/2 in on 6 in boards and 5.1 in on 4 in boards keep their filler; a 1 nm filler made equal, 8 m and 2 nm on 4 m boards made 4 + 2 + 2 m and a hair, which #53 refused; widths a hundred floating point steps either side of a whole number of boards never leave a strip under the minimum); the invariants now check that every glue-up's strips are as the rule plans them, none under the minimum, that a part reported too large glues on no board of its class, and that no board of its class glues a part from fewer strips, so the property tests check the new rule on random nestings, now with longer, narrower boards in the library too;e2e/nesting.spec.ts(the 15 in panel is 8 + 7 1/8 in in the app, and a 24 1/4 in top is drawn and listed as 12 + 6 1/4 + 6 1/4 in). The tests that pinned #53's choices were changed to the new rule (the 17 in side, the 15 in panel, the 12 1/16 in panel, the refused 1 nm and 2 nm fillers), each saying what it was. Nine of the 28 nesting tests fail on the code before this change, each for the case it names; lane 45 added three: a 3 x 100 in rail beside a 5 in shelf, whole on 5/4 x 6 x 120 when the 4/4 board is 96 in long, and too large without that board; a 17 in side whose stock is 4/4 x 6, as oak's default or named by the part, still 6 + 6 + 5 1/4 in though 4/4 x 12 would take two strips; and a 0.8 in part on 3/4 in strip stock, two equal 0.4 in strips with a 3/8 in kerf and too large with a 1/2 in kerf. Compared with the code before this change over 100,000 random nestings (mixed lengths, grain, material defaults, set stocks, kerf, trim and joint loss from 0 to their limits, libraries with longer, narrower and odd boards): no part placed whole moved or was glued, no glue-up was refused, no sheet, no part with its grain across and no part whose stock is set or whose material's default applies changed board, a board change at the same strip count always went to a board listed earlier, and every other change was fewer strips, two equal last strips, or a part reported too large that is now glued or whole.
Fixed (lane 44, a pull request from @aramshaw, 2026-11-13) #
- Dragging a big sketch with Move, Rotate or Scale keeps up (#59, from @aramshaw; #8). The drag preview checked both ends of every edge against every moving point on every frame, and did the same kind of scan several times as the drag started, so its cost grew with the edges times the moving points. With 1,000 rectangles selected (4,000 sketch edges), each step of a drag took a quarter to a third of a second, so the shapes trailed well behind the cursor. Now, as the drag starts, the moving points go into a grid lookup and each edge's two ends are looked up once; each frame only moves the ends already known to move. The preview draws the same edges with the same ends moved, each moving point found with its own tolerance as before, and it lies where the shapes land. Measured on the development machine with 4,000 moving edges: the preview's own work went from about 210 ms to 0.5 ms a frame, and from about 330 ms to 25 ms at the start of the drag (in Node); in a headless Edge, every frame of a Move, Rotate or Scale drag after the first now comes within 7 ms, where each took 0.24 to 0.31 s. The pull request measured 356 ms to about 1 ms a frame on another machine. Starting a Move of that selection still pauses once, for about 0.2 s where it was 0.6 s: gathering the selected shapes' points checks each one against those already gathered (#11), and
docs/LIMITS.mdlists it. How:nearIndexandSketchPreview.movesinsrc/tools/xform.ts, used bysketchPreviewsandsketchSegments. Nothing in the kernel, the model or the file changes. Docs:docs/LIMITS.md, ADR-0012 (a dated note),DEVELOPMENT.md. Tests:src/tools/move.test.ts(eight times the edges cost less than 24 times as much, each frame and at the start of the drag, timed as the fastest of nine alternating runs after a warm-up: 5.5 to 11 times with the change, alone and beside other work, and about 64 times without it; on a sketch where every third point moves, the preview is the same edges with the same ends moved, plain and as a copy, as checking each end against every moving point; a point 10 km out, whose 4 mm tolerance makes the lookup's cells 8 mm wide, leaves a point 3 micrometres from a quarter-metre point unmoved and moves one 2.9 mm from itself, and a moving point that is not finite gives the preview the scan gave; over 400 seeded random sketches from 1 mm to 10 km across, some with a point 10 km out, with rings, carried edges either way round and points selected on their own, the same edges, moved ends and lift as checking every point, and the same segments under five moves, turns and scales, plain, as a copy and without the recorded ends).
Fixed (lane 43, 2026-11-12) #
- Redo of a move that split a shape selects the pieces again (#7). Move a circle across a rectangle's edge, press Undo and then Redo: Redo replays the edit without the Move tool, so what Undo had left selected stayed selected, the circle's old region id, which the kernel had given to one of its pieces again. The hint bar said one region was selected, one half was lit, and the next Move, Delete or P with a typed distance acted on that half alone. Now Move, Rotate and Scale tell the app what was selected when the step started, and the app keeps it with what the tool left selected and Push/Pull's target before and after, for that one step (known by the undo depth and model hash it went from and to). Undo of the step selects what was selected before it, Redo selects what the tool left, each only where it still exists, and any other undo or redo keeps the selection as before. Nothing in the kernel, the model or the file changes. For tests,
window.__sawhorse.selected()now says what is selected (each entity, with its kind and ids) and what the view lights as selected (regions and faces by id, imported meshes, and how many edge segments and points); it hands back a copy and changes nothing. How:rememberSelectionon the tool host (src/tools/tool.ts), called bysrc/tools/move.ts,rotate.tsandscale.ts;src/App.tsxkeeps the steps and hands the kept selection to the undo or redo it belongs to. Docs: the user guide,docs/LIMITS.md(the Redo case is gone from #7's list), ADR-0012,DEVELOPMENT.md(the hook). Tests:e2e/sketch-move.spec.ts(a 4 in circle moved 16 in across a 24 x 12 in rectangle's edge, then Undo, Redo, Undo and Redo, each read through the hook: the circle selected and lit after each Undo, its two halves after each Redo; changing what the hook returned changes nothing), which reads only the circle's old id after Redo without the change;src/tools/move.test.ts(the Move tool hands the host the selection from before the step, also when a distance typed after the move does it again). - A shape moved exactly onto an identical one is selected as the shape there (#7). Move a circle so it lands point for point on an identical circle, and the two become one: the moved circle's edges weld onto the other's. The selection kept the moved circle's region id, which named no region any more, so the hint bar counted one selected but nothing was lit, and P with a typed distance was refused. Now, when the kernel names no region for a region moved in its plane (it reports none for a shape that welds whole onto another), the selection is the regions the view mesh draws in that sketch inside where the shape went, here the circle it merged with, or nothing when there is none, never an id that names nothing. Push/Pull's target follows, so P and a typed distance push that circle. Nothing in the kernel, the model or the file changes. How:
regionsInsidebesidemovedSelectioninsrc/tools/xform.ts. Docs: the user guide,docs/LIMITS.md, ADR-0012,DEVELOPMENT.md. Tests:e2e/sketch-move.spec.ts(two circles of 4 in radius, one moved 20 in onto the other: one region left, and it is what the hook says is selected and lit; P and 2 in make a solid of the circle's area times 2 in), which reads the moved circle's old id selected and nothing lit without the change;src/tools/move.test.ts(through the WASM kernel: a unit square moved onto an identical one is selected as the square that stays, and every id selected is a region the new mesh draws), which gets the old id back without the change. - A shape lifted onto another plane across a shape there is selected as its own pieces (#7). Lift a rectangle with Move onto the plane of another sketch, so that it lands across a square drawn there: it cuts the square, and the two split each other. The selection was every region the lifted edges bound there, so it held the rest of the square too, and Push/Pull's target was the first of those regions, which could be that remainder: P and a typed distance pushed the square's remainder. Now a lifted shape is selected as the regions there that lie inside where it went, by the same test as a move within the plane (lane 41), and Push/Pull's target follows: the one region it became there, or nothing when it is several, so P waits for a click on the piece to push. A shape lifted onto an empty plane, or onto a part of one with nothing in the way, is selected and pushed as before. Nothing in the kernel, the model or the file changes. How:
movedSelectionandtargetAfterMoveinsrc/tools/xform.ts, which is now given the target from before the edit and the sketch each moved sketch is in after it (sketchesAfter) by Move, Rotate and Scale. Docs: the user guide,docs/LIMITS.md(the lift case is gone from the #7 list), ADR-0012,DEVELOPMENT.md. Tests:src/tools/move.test.ts(through the WASM kernel: a 2 x 1 bar lifted 1 up across a 2 x 2 square on another plane is selected as its two halves, not the square's remainder of 3, and its target is none where the old rule gave that remainder; with the tool host, a region lifted across a shape there leaves no target and one lifted onto an empty plane targets the region it is there;targetAfterMovefor a lift), each of which fails without the change. - A circle's rim a move breaks up is selected as every arc it became (#7). Select a circle's rim on its own and move it across a rectangle's edge: it splits into two arcs where it crosses. The selection kept the circle's curve id, which the first arc carries, so it shrank to that one arc, lit as such, and the next Move or Delete acted on half the circle. The same happened to a rim lifted onto another sketch's plane across an edge there. Now the kernel says which curve each further piece came from, and the selection is the first arc and every other. A rim moved exactly onto an identical circle shares its edges with it, and the circle drawn first keeps them; when that is the other circle, the moved rim's id named nothing and stayed selected, and now nothing is selected for it. Nothing in the model or the file changes, and no golden or model hash moves: the move's result gains
pieces, (curve in the op, sketch, piece) for each further piece, left out when nothing broke up. How:settle_curvesincrates/kernel/src/sketch.rsreturns which curve each new piece came from (andadd_curve_tracedbesideadd_curvefor a lifted curve);transform_sketchincrates/kernel/src/sketch_move.rsreports the op's own curves' pieces inSketchMoved.pieces(src/kernel/types.tsin step);movedSelectioninsrc/tools/xform.tsselects them, and within the plane finds a curve by its id. Docs: the user guide,docs/LIMITS.md(the #7 entry is gone: none of its four cases is left), ADR-0013,DEVELOPMENT.md. Tests:crates/kernel/tests/curves.rs(a circle moved across a square's edge, and one lifted 1 up onto another plane across one, reports its two arcs,curvesandpiecestogether naming the sketch's only curves; a line moved across a circle reports no pieces of the circle it cut);src/tools/move.test.ts(through the WASM kernel: the rim moved and lifted across a rectangle's edge is selected as both its arcs; a newer rim moved onto an older circle selects nothing, an older one onto a newer circle stays selected), which select one arc, and the merged rim's dead id, without the change.
Fixed (lane 42 fix pass, found by the lane's verifier, 2026-11-12) #
- A part a hair wider than whole boards no longer stops the nesting (the verifier's random glue-ups, 17 of 20,000 cases). A part 12 in and 1 nm wide on 6 in boards with no joint loss was planned as two strips, the second a hair wider than its board, and the board layout refused that strip and panicked, so the Nesting section could not be shown. The strip count came from a quotient and the filler from a sum, and at that boundary the two round apart by far less than a billionth of a millimetre. Now the count is settled on the filler itself: the least count whose filler the board holds, and a filler wider than the board is refused. That part is reported too large, as before #49, since its third strip would be a 1 nm sliver. Away from such a boundary every glue-up is planned as before, and no golden changed. A part of no length is never glued up either. How:
glue_widthsincrates/kernel/src/nesting.rs, andtesting::check_nesting_ofnow works out each count's filler the way the kernel does, so the two agree to the last bit. Tests:crates/kernel/tests/nesting.rs(that part, and every width a hundred floating point steps either side of such a boundary for 2 to 40 strips, four joint losses and two kerfs, with every invariant checked and no strip wider than its board; a 30 in part of no length never glued). Both fail without the change. - Parts of no size end their cut sequence (found while fixing the above). With no kerf, a part of no length laid out after another part, or of no width beside one, sat on the far end of the offcut the cut before it left, and the first cut found was just before it: the same offcut with the same part, cut again and again until memory ran out (1.9 GB asked for, then an abort). Older than #49, and a model never reaches it, since its cut list does not count a part of no thickness, but the kernel takes any list. A cut before the first part must now also fall short of the offcut's far end; a part with a size always starts before the far end, so no layout of real parts changes (ADR-0007). How:
find_cutincrates/kernel/src/nesting.rs. Test:parts_of_no_size_end_their_cut_sequenceincrates/kernel/tests/nesting.rs, which aborts without the change.
Added (lane 42, a pull request from @aramshaw, 2026-11-12) #
- A solid part wider than every board is planned as a glue-up, not left on no stock (#53, from @aramshaw; #49). A cabinet side in solid timber is often wider than any board: a 17 in side from 6 in stock is three strips, ripped, jointed and glued. The nesting listed such a part under "Parts on no stock" as larger than the stock, so the boards it needed were never counted or drawn. Now it is planned as full-width strips of a board and one narrower filler, the least number that covers its width once each joint loses the new Joint loss (1/8 in to start, 0 to 1/2 in, beside Kerf and Trim):
n >= (W - J) / (w - J)strips for a partWwide from a boardwwide, the last oneW + (n - 1) J - (n - 1) w. That side is 6 + 6 + 5 1/4 in. The strips come off the board the rest of that wood and thickness uses, so they nest with the other parts and a narrow filler can share a board's width (#50); with nothing else of that wood, the widest board of its thickness. Each strip is tagged after its part ("4a.1", "4a.2"), drawn and listed at its own width ("strip 2 of 3"), and the Nesting section and the PDF booklet list every glue-up with its strips; the footer names the joint loss when something is glued up. A glued part counts once in the totals, and hovering it in the model lights every strip. A part some listed board thick enough makes in one piece is never glued, even a thicker, wider board than the rest of its wood uses; a part whose stock is set, by the part or as its material's default, is glued from that board when it is wider than it. Gluing adds only width, and a plan has to make sense at the saw: a part longer than the board, with its grain across, on a board no wider than the joint loss, whose last strip would be narrower than the kerf or 1 mm, or that would take more than 100 strips is still on no stock, now said as "larger than the board and cannot be glued up for width" with those five reasons. The joint loss is saved (settings.jointLoss,docs/format.md) and hashed only when it is not the 1/8 in default, so every file and model hash from before stays the same. Three goldens' nesting hashes moved, and only those:components.json,cutlist-mixed.jsonandtransforms.json, each because a part that was too large is now glued up (two shelves and a solid from 5/4 x 6, a top from 4/4 x 4, a solid from 8/4 x 6); their model and cut list hashes did not move. The cut list's rows are unchanged; only the nesting knows about glue-ups. Docs: the user guide's Nesting section (Glue-ups, the joint loss, parts on no stock),docs/format.md, ADR-0007,DECISIONS.md,CLEANROOM.mdandDEVELOPMENT.md. Tests:crates/kernel/tests/nesting.rs(a 15 in panel from a 12 in strip and a 3 1/8 in filler on one board; a 17 in side from three strips of the 6 in board two shelves use, and a 10 in part on a 12 in board never glued; a 14 in part beside two 3 in parts goes whole on a 5/4 x 16 board rather than glued from their 4 in board; no joint loss, two whole 12 in boards; a part too long to glue still too large; a 12 1/16 in panel with no joint loss and a 1/8 in kerf, which would leave a 1/16 in filler, still too large, and glued with a 1/16 in joint loss; a 12 in panel from 1/2 in boards with a 0.49 in joint loss, which would take 1,151 strips, too large, while a hundred 1 in strips make a 100 in panel; the joint loss saved, read back, refused outside 0 to 1/2 in, and hashed only when set; the stock test's oak on 8 in boards now glues its sides and top, and on a 24 in board reports them too large with that stock); the property tests now vary the joint loss, andtesting::check_nesting_ofchecks every glue-up (strips 1 to n each once, off one board, all but the filler full width, their widths the part's width plus a joint loss per joint, listed as glued, and a part reported too large only when gluing cannot make it); the fuzzer sets the joint loss with the kerf and trim;src/components/NestingSection.test.tsx(the Joint loss field and its range; a glue-up listed, its strips at their widths, every strip lit from the model, the footer);e2e/nesting.spec.ts(a 15 x 40 in panel opened in the app is glued up on one board, drawn and listed, and a joint loss typed as 1/16 in re-plans its filler). The Rust tests do not compile on main (the new fields); there the same cut lists report each part too large. The vitest and e2e tests fail on main (no Joint loss field, no glue-up).
Fixed (lane 41, a pull request from @aramshaw, 2026-11-12) #
- A region moved across another shape is selected as the pieces it became (#55, from @aramshaw; #7). Move a circle so it lands across a rectangle's edge, and the circle splits in two where it crosses (and cuts the rectangle). The selection kept the circle's old region id, which the kernel had given to one of the pieces, so the hint bar said one region was selected, the highlight showed a single piece, and the next Move or Delete acted on that piece alone until you clicked again. Now the Move, Rotate and Scale tools select the pieces the region became: of the regions the kernel says the moved edges bound (
SketchMoved.regions), those inside the moved shape, found by testing a point of each (the centre of its largest triangle in the view mesh) against the selection's rings where the move took them. It runs once per committed move, in one pass over the view mesh's triangles: about 11 ms for a move of 60 circles in a sketch of 400 (19,000 triangles), and 20 ms for 800 selected circles, measured in Node on the development machine. The rectangle's remainder stays unselected, and a move that splits nothing selects the region as before. Push/Pull's next target follows: a region that became one piece targets it, one that became several targets nothing, so P and a typed distance wait for a click on the piece to push instead of pushing the one piece the old id named. Nothing in the kernel, the model or the file changes. Four cases are not fixed here anddocs/LIMITS.mdlists them: a circle's rim selected on its own still shrinks to its first arc (the kernel names only a split curve's first piece); a shape moved exactly onto an identical one, so the two merge, keeps its old id, which names no region now (the kernel reports no regions for it); a shape lifted onto another sketch's plane where it cuts a shape there selects that shape's remainder too; and Redo of a split, which replays the edit without the tool, leaves the old id on one piece. How:movedSelectioninsrc/tools/xform.ts, now given the new scene's view mesh by Move, Rotate and Scale, andtargetAfterMovebeside it. Docs: the user guide,docs/LIMITS.md, ADR-0012 and ADR-0013,DEVELOPMENT.md. Tests:src/tools/move.test.ts(a unit square moved across another shape, with the kernel reporting two pieces inside it and one outside, is selected as the two inside; a move that splits nothing keeps the region; Push/Pull's target after a split, a single piece and no split);e2e/sketch-move.spec.ts(a 4 in circle moved 16 in across a 24 x 12 in rectangle's edge in the app: three regions, the selection is the circle's two halves, P and a typed distance push nothing, and a click on a half then pushes it). Both fail without the change: the unit test gets the old id back, the end-to-end test reads "1" selected, as #7 describes. Three more insrc/tools/move.test.tsrun the tools' own steps through the WASM kernel and read the selection back by area: a bar turned 180 degrees across a square's edge is its two halves and the square's remainder is not selected (Rotate); a triangle mirrored across a square's edge is both its pieces (Scale); a square with a hole moved across another square is its two pieces, with its island and the other square's remainder left out (Move). Each gets the one old id back without the change.
Added (lane 40, 2026-11-11) #
- The desktop test build also makes Mac and Linux files. Someone testing on a Mac or a Linux desktop could not try
mainbefore a release: the "Desktop test build" workflow, run by hand from the Actions tab, made only the unsigned Windows installers. Now it has three jobs that do not depend on each other, so one that fails still leaves the others' files, and each uploads one artifact of that commit, kept 7 days:unsigned-test-build-<commit>-windows(the.exeand.msi, unchanged),unsigned-test-build-<commit>-macos(the Apple Silicon.dmg) andunsigned-test-build-<commit>-linux(the.AppImage,.deband.rpm). Downloading an artifact needs a signed-in GitHub account. The Mac app is signed ad hoc and nothing more, as in alpha.5, so macOS asks on the first open and the steps under Unsigned installers in the alpha.5 release notes are the way through; the Linux files are unsigned. How: each job runsrelease.yml's steps for its platform (the Mac one onmacos-15-intelwith--target aarch64-apple-darwin, since this repository's Apple Silicon runners would not start, its ad-hoc signing step andscripts/macos-adhoc-check.shwith no release tag; the Linux one onubuntu-22.04with the same apt packages) withnpx tauri buildin place of tauri-action. The workflow still reads no secret, hands no GitHub token to any build step, has read-only permissions and makes no release and no tag;release.yml's optional signing secrets step is left out.docs/DEVELOPMENT.mdsays what each job makes. The Mac and Linux jobs had not been run when this landed; their first run, 43123831440 on d99dfa4 on 2026-11-11, finished all three jobs with their files. Nobody has yet reported opening the Mac or the Linux files of a test build on a real machine.
Fixed (lane 39, 2026-11-11) #
- A start-up path with
..in it opens the file (#52). Started from a terminal assawhorse-desktop.exe ..\box.shz, from a folder beside the model, the desktop app opened an empty model and the status line showed the file reading side's raw error ("Can't do that. invalid args path for command stat: ... cannot traverse directory, rewrite the path without the use of ../"). The relative path was joined to the starting folder with its..still in it, and the fs plugin the page reads files through refuses any path that holds a... Now the path is cleaned on its text alone once it is absolute: a.is dropped and a..takes away the folder name before it, so..\box.shzisbox.shzin the folder above, and an absolute path holding..is cleaned the same way. A path whose..would climb above the root, a drive or a share is no file at all, nor is a.or..after a Windows\\?\prefix (Windows does not resolve them there); a..after the file's own name (box.shz\..) names a folder and opens nothing. The check that the file exists, the fs scope and what the page is handed all use exactly the cleaned path: still one file per start, still only a type File > Open takes, nothing made from it and nothing run. The cleaning reads nothing from the disk and never canonicalizes, so when a folder named just before a..is a link, the file opened is the one beside the link (LIMITS). A double-click, a plain relative name and a full path open exactly as before. How:cleaninsrc-tauri/start-file, overstd::path::Component, called bycandidates. Tests:src-tauri/start-file(..in a relative path, in an absolute one, several in a row, at the very start of an absolute path, climbing above the starting folder's root,.components,..after the file name, the existence check asked only about cleaned paths, and every answer of every test checked against what the fs plugin refuses: no.or..and nothing it would read as a URL); eight of them fail without the change. The Windows forms (a drive, a share,\\?\, backslashes) have tests that only a Windows build runs, and no job runs one yet; CI compiles the desktop shell on Linux only, and no desktop build of this change has been run by hand yet. - The desktop window's title bar names the model (found in the same hand test as #52). The page has always put the model's name in its title, with a dot while there are unsaved changes ("• shelf - Sawhorse"), and a browser shows that on the tab, but the desktop app's title bar said only "Sawhorse" whatever model was open. Since lane 37 a second double-click on a
.shzopens a second window, so two windows could not be told apart. Now the title bar shows the same text as the page's title and follows it: the name when a file opens, the dot after an edit, "Untitled - Sawhorse" after File > Close. In the browser build nothing changes. How: the page hands the text it givesdocument.titleto the shell's newwindow_titlecommand (src/io/title.ts, desktop app only); the shell passes it throughtitlein the new plain cratesrc-tauri/window-title(no dependencies), which removes control characters and line breaks, keeps at most 200 characters, cut on a character boundary and ending in "…", and falls back to "Sawhorse" when nothing is left, then sets it with Tauri'sWindow::set_titleon the calling window only. No permission is added: the webview still has no core:window permission. A call that fails leaves the title bar as it was and says nothing. Tests:src-tauri/window-title(control characters, line and paragraph separators, a very long name in one-byte and many-byte characters, names in several scripts, blank titles);src/io/title.test.ts(the same text asdocument.title, never called in the browser build, a refused or throwing call swallowed,App.tsxsetting its title only through it);e2e/window-title.spec.tswith the bridge stand-in (e2e/tauri.ts, which now playswindow_title): the title following a start-up file, an edit and File > Close, a failing call never shown, the browser build untouched. The page's tests and the spec fail without the change. The desktop shell was not compiled on this machine (CI compiles it on Linux only), and nobody has seen the real title bar change yet.
Fixed (lane 38, 2026-11-11) #
- A tiny solid's volume in inches reads "< 0.1 in³", never "0.0 in³" (#26). With the units in fractional inches, decimal inches or feet and inches, the view's badge printed a solid under half a tenth of a cubic inch, a 7 mm cube or a 1/4 in cube say, as "0.0 in³", which is also what an empty model reads, so the solid looked as if it had no volume. Lane 33 made the metric badge read "< 0.000001 m³" for a solid under its step; the inch badge now keeps the same rule and reads "< 0.1 in³". Every other volume reads exactly as before, an empty model still reads "0.0 in³", and nothing in the model, the file or its hash changes. How:
formatVolumeinsrc/lib/units.ts, the one place the badge's volume is written. Tests:src/lib/units.test.ts(a 7 mm cube, a 1/4 in cube, a hair under half a tenth and the smallest volume a double holds read "< 0.1 in³" in every inch system; half a tenth and more rounds as before; zero and a tiny negative read as before; the spread of volumes from before #46 prints as it did, the one real solid under the step aside);e2e/units.spec.ts(a 7 mm cube drawn in the app reads "< 0.1 in³" and a 20 mm cube "0.5 in³" in each inch system). The unit tests fail without the change, and so does the 7 mm cube's end to end test, which read "0.0 in³" before.
Added (lane 37, a report from @aramshaw, 2026-11-11) #
- Double-clicking a
.shzon Windows opens it in Sawhorse (#45, reported by @aramshaw). A model saved asshelf.shzcould not be opened from File Explorer: Windows asked which app to use and Sawhorse was not in the list, because the installers declared no file association and the desktop app never read a path it was started with. Now both Windows installers (the setup.exeand the.msi) associate.shzfiles with Sawhorse: a double-click, or Sawhorse in the Open with list, starts Sawhorse with that model, the files show the Sawhorse icon (from the setup.exe; the.msinames no icon for them), and uninstalling removes the association. On every system, a path after the program's name on a command line opens that file the same way, for any file File > Open takes; one file per start, and further paths are not opened. The file is opened exactly as a file dropped on the window is, with the same checks and messages. A double-click while Sawhorse is open starts a second window with that model, as starting Sawhorse twice does, so nothing in the first window is replaced and nothing needs asking there; the two windows keep their unsaved work in the same place (LIMITS). If the last run left unsaved work, Restore unsaved work? is asked first ("shelf.shz opens after you answer."): Discard opens the file, Restore brings the work back and puts an Open shelf.shz button beside it, which asks before replacing the work. Not yet: on a Mac a double-click does not open the file in Sawhorse and the Mac app claims no.shzfiles, and Linux file managers do not offer Sawhorse for them; File > Open, dragging onto the window and the command line work there.
Changed (lane 36, a pull request from @aramshaw, 2026-11-11) #
- Narrow parts share a board's width when that saves a board (#51, from @aramshaw; #50). Board nesting was one-dimensional: every part took the board's full width along its length, so a 1 1/2 in rail on a 4 in board was charged all 4 in, and a job with many rails and stretchers over-ordered. Now a board can be crosscut into sections, each as long as its longest part, with parts ripped side by side from a section, a kerf apart, inside the board's width: four 1 1/2 x 40 in rails come off one 4/4 x 4 x 96 board instead of two, and the Nesting panel, the buy totals, the SVG, DXF and PDF booklet all show the one board. How:
board_layoutincrates/kernel/src/nesting.rsruns the existing first-fit-decreasing and lookahead twice, once with each part its own full-width section (exactly as before) and once on shelves (parts longest first, each into the first section with room left across the board, else a new section as long as itself), and takes the shelves only when they need fewer boards. So a layout that saves nothing is unchanged, deterministic as before (no solver, no randomness, input-order tie breaks), grain stays along the board for every piece, and the cut sequence is the onedecomposealready finds on a board: crosscut a section off, rip it to width (with a crosscut to length where a shorter part rides beside a longer one), then the next. On a board the parts are now listed in that order too, section by section, so the list beside the diagram follows the cuts; a board whose parts all lie on its near edge, which is every board before this change, lists them exactly as before. Sheets, stock choice and the file format are untouched, and so is every hash but that of a nesting whose board count drops; no golden moved. Nesting a large job takes a little longer, since the lookahead runs twice, each run within its own node budget: 1,000 narrow parts take about 2 ms, and 2,000 short parts of different lengths, the lookahead's worst case, about 115 ms where they took 70. Docs: the user guide's Nesting section (Boards), ADR-0007 anddocs/format.md's line on board stock. Tests:crates/kernel/tests/nesting.rs(four 1 1/2 x 40 in rails take one 4 in board in two sections of two, a kerf apart each way, the section's crosscut before its rips; two rails that already fit end to end stay end to end on the near edge; a part as wide as the board keeps its own section while two narrow rails share one beside it, one board instead of two; two each of 1 1/2 x 40, 1 1/4 x 30 and 1 x 20 in rails take one board in sections of 40, 30 and 20 in, with every placement, the parts' order and all ten cuts in order checked);e2e/nesting.spec.ts(four rails opened in the app give one board in the Nesting panel, the rails drawn side by side where the layout puts them with their tags, the six cuts listed and drawn in order, and the parts listed section by section). The property tests (no overlaps, kerf gaps, inside the usable area, parts in = placed + unplaced, cuts that cross no part, deterministic hashes) hold on the new layouts. Every new test that expects a board saved fails without the change; the end to end test reads "2 boards" there.
Fixed (lane 35, a report from @aramshaw, 2026-11-11) #
- Closing the desktop window over unsaved changes asks first (#44, reported by @aramshaw). The window's X and Alt+F4 closed the desktop app at once, and every change since the last save was gone without a word. Now, with unsaved changes, any close the system sends to the window (the X, Alt+F4, the taskbar's Close, the red button on a Mac) asks "Discard the unsaved changes to this model and close Sawhorse?". Cancel keeps the window and the model as they were. OK closes it and, as File > New does, deletes the work kept for Restore unsaved work?. With nothing unsaved the window closes at once, as before. The question can never keep the window from closing: if it gets no answer (the app stopped responding, or the dialog never appeared), closing the window again two seconds later closes it without waiting, and the unsaved work is offered back at the next start. On a Mac, Quit Sawhorse in the app menu (Cmd+Q) still quits without asking.
- File > Close and File > Exit (#44). File > Close closes the model and leaves Sawhorse running on an empty untitled one, asking first over unsaved changes ("Discard the unsaved changes to this model?"); it is File > New under another name. In the desktop app, File > Exit (Quit Sawhorse on a Mac, Quit on Linux) closes Sawhorse the way the window's X does, with the same question. The browser build has File > Close only, since a page cannot close its own tab, and still does not ask before its tab closes: it keeps your work as you go and offers it back the next time.
Fixed (lane 34, a pull request from @sdm7306, 2026-11-10) #
- An STL or OBJ that Sawhorse exported comes back in at its true size, whatever File > Import units says (#48, from @sdm7306; #47). Sawhorse writes STL and OBJ in millimetres and says so inside the file (the STL's header, the OBJ's first line), but the importer read every STL and OBJ in File > Import units, which is remembered from one session to the next. With it on Inches, as it naturally is for someone working in fractional inches, a part sent out and back came in 25.4 times too big: a 2 x 4 x 48 in board came back ~ 1219 3/16 in long beside the original, and after a second round trip a bench frame's 48 in rail measured ~ 30967 11/16 in with the Tape (25.4 x 25.4) and the badge read 1460566899164.6 in³. The Tape was measuring the model right; the model was the wrong size. Now a binary STL whose 80 byte header is exactly Sawhorse's ("Sawhorse binary STL; units mm; Z up", the rest NULs) and an OBJ whose first line is exactly Sawhorse's ("# Sawhorse OBJ; units mm; Z up", also after a text editor added a byte order mark or CRLF line ends) are read as millimetres, and the import report says so ("Sawhorse STL: read as millimetres, as its header says (File > Import units is for other STL files)", and the same for OBJ). Every release has written exactly these bytes, so an STL or OBJ exported by an earlier version comes back at its size too. Every other STL and OBJ, every ASCII STL (Sawhorse writes none) and a DXF without units still follow File > Import units, as before; a file from another program that copies Sawhorse's header byte for byte is read as millimetres, as it says. Nothing in the model, the file format or its hash changes. A part that already came in too big stays that size: delete it and import the original export again, or scale it with the Scale tool by 0.0393701 (1 / 25.4) once for each round trip it went through. Tests:
crates/import/src/stl.rsandcrates/import/src/obj.rs(a 48 in rail exported and imported twice under each of the five import units stays 48 in long with its volume, through the STL writer, both OBJ writers and the kernel; another program's STL and OBJ, a header that only starts like ours, an OBJ whose matching line is not its first and one that says "units in" still follow the menu; our OBJ with a byte order mark or CRLF line ends is ours, and a first line that is not valid UTF-8 or only part of ours is not; short files and odd counts after our header are not read as ours and do not panic; an ASCII STL follows the menu);e2e/files.spec.ts(with File > Import units on Inches, another program's 48 x 3 1/2 x 1 1/2 in rail comes in in inches, Sawhorse's STL of it comes back 48 x 3 1/2 x 1 1/2 in, not 1219.2 in long, then an OBJ of both rails comes back at their size too, the report naming each). Each fails without the change.crates/wasm-api'simports_files_through_the_docasserted the bug: it read Sawhorse's own STL in inches and expected it 25.4 times bigger. It now gives that check another program's STL (the same triangles with a blank header), so it still shows the units reach the reader, and checks that Sawhorse's own STL in inches comes back at its size; no assertion was removed and no tolerance changed.
Fixed (lane 33, a pull request from @aramshaw, 2026-11-10) #
- With the units on mm, cm or m, the view's badge gives the volume in cubic metres (#46, from @aramshaw; #26). The badge at the top left of the view printed the model's volume in cubic inches whatever the units were: a bookcase with the units on mm read "26967.5 in³", a number nobody working in metric can check against anything. Now it follows the document's units: the three inch systems read cubic inches to one decimal, exactly as before, and mm, cm and m read cubic metres to six decimals (a cubic centimetre) with trailing zeros dropped, so a 300 mm cube is "0.027 m³", a 19 x 90 board 2400 long is "0.004104 m³" and that bookcase is "0.441918 m³", the unit rough-sawn timber is priced in. A solid smaller than half a cubic centimetre, a 7 mm cube say, reads "< 0.000001 m³", never "0 m³". Changing the units changes the badge at once; nothing in the model, the file or its hash changes. How:
formatVolumeinsrc/lib/units.ts, which the badge's line insrc/App.tsxcalls with the document's units. This is the status bar's part of #26's "labels and totals follow the units"; the nesting labels, the totals and the stock library are not touched, and the Model report plugin still gives metric volumes in cm³. Tests:src/lib/units.test.ts(the inch systems print exactly what the badge printed before for a spread of volumes, zero, negative, NaN and infinity among them; the metric systems in cubic metres; the six-decimal step and the half-step edge; a real solid under the step; a large model; both texts read back to the same volume; every unit system answered);e2e/units.spec.ts(a 300 mm cube drawn in the app reads "0.027 m³" in mm, cm and m and never "in³", then "1647.6 in³" in each inch system and never "m³"; a 7 mm cube reads "< 0.000001 m³" and a 20 mm cube "0.000008 m³" in each metric system). Each fails without the change.
Fixed (lane 32, a pull request from @akvalentine977, 2026-11-10) #
- On Linux, a name typed in Save As without
.shzis saved as.shz(#29, from @akvalentine977; #31). The desktop app's Save dialog on Linux (GTK's file chooser) hands the name back exactly as typed, so Save Ascabinetwrote a file namedcabinet: a valid document that the Open dialog's "Supported files" filter then hid, so it opened only by typing its full path. Windows and macOS add the filter's extension in the dialog itself. Now a name without one of the type's extensions gets the type's first, for exports too:cabinetis saved ascabinet.shz,cabinet.v2ascabinet.v2.shz,partaspart.stl, andCabinet.SHZstays as it is. The dialog asked about replacing only the name that was typed, so when a file of the final name is already there the app asks first, "cabinet.shz already exists. Replace it?". No writes nothing and leaves the document as it was; Yes replaces it, and the old copy is kept ascabinet.shz.bakas on every save. It asks every time, also when that file was saved the same way earlier in the session or was opened or dropped on the window; a later Ctrl+S to the file just saved does not ask again. How: the page sends the dialog's own path along with the save (x-chosen;withExtensionandsaveFileinsrc/io/files.ts), andsave_file_atomicasksdecideinsawhorse-safe-save, a pure function, which writes only when that path is one a dialog returned, is not a folder, and the final path is it plus one extension of 1 to 10 letters or digits (the rule a plugin'sfile.savekeeps). A save never adds a path to the ones the app may write. A save whose path already ends in one of the type's extensions (on Windows and macOS every save where the dialog added it, the usual case; a name typed with its extension on Linux; and Ctrl+S after an open, a drop or such a save) reaches the shell exactly as before; a name a Windows dialog hands back with another extension,cabinet.txt, is now saved ascabinet.txt.shz. Found on Linux (the 0.1.0-alpha.4.deb) by scripting the app under Xvfb. Tests:src-tauri/safe-save(the decision against a scope and a disk kept as plain sets: a path the dialog returned as it is; an added extension on a new file and on an existing one, with and without consent; a second Save As of the same name, and a file opened or dropped, asked about again; no chain through an earlier save or an opened file; a folder, a path that is not the chosen one plus one extension, and the rule's edges refused (empty, a trailing dot, 11 characters, a non-ASCII letter, a slash, a backslash or a second dot inside, a hidden name); without a chosen path the answer is the scope's alone, as before, whatever the disk or the consent say; the same on a real folder with the shell's own questions);src/io/save.test.ts(the name with and without its extension, in either case, for every type the app saves; on Windows and macOS the request is the old one; the chosen path travels and stays on the handle; Ctrl+S on an opened, dropped or plainly saved file writes its path exactly, and on a handle with a chosen path carries consent and asks nothing; the question, No and Yes; any other refusal, also one after Yes, is an error; a save given up during the question writes nothing; a plugin's save is asked about like any Save As). Each fails with its part of the change taken out. The desktop shell is compiled by CI's Linux job; it was not run as an app for this change.
Fixed (lane 31, pull requests from @brewmium, 2026-11-10) #
- A rectangle drawn square on the ground stays a square (#23, from @brewmium; #9). In a 3D view, with the first corner on the ground or the grid, a rectangle dragged out to 12 x 12 in collapsed to a vertical line reading "0 x 12" the moment it became square (11 7/8 x 12 was fine). From an iso-style eye a square's diagonal lies over the blue axis through the first corner on screen, and while the rectangle's plane is still open its far corner snaps in 3D, so the blue axis won over the grid and stood the rectangle up with no width. Now, while the plane is still open, the far corner no longer offers the blue line through the first corner, or "from point" alignments along it: the inference query takes
start_skip, a list of directions, and the Rectangle sends the blue axis until its plane is set and nothing after, since on a set plane the line that would leave it is already dropped. The red and green lines stay, so the far corner still says when the rectangle is square to an axis; so do parallel and perpendicular lines off a diagonal edge and alignments with points elsewhere. Arrow-key locks keep every line, and the Rotated Rectangle is unchanged. An upright rectangle still comes from starting on an upright face or an arrow key before the first click. Tests:crates/inference/tests/infer.rs(with the iso-style eye the blue axis takes the square's corner, and with blue skipped the grid gives exactly 12 x 12 in; a "from point" along the skipped blue line goes with it; a diagonal reference stays; a lock keeps a skipped line on a ray that meets nothing else);src/tools/draw.test.ts(the far corner skips blue while the plane is open and nothing on a set plane; the Rotated Rectangle skips nothing). - On a Mac, Control+drag pans the view, in every tool (#41, from @brewmium; #40). Control+click is the Mac's right click in every app, and with a one-button mouse, a trackpad, or a left hand on a Magic Mouse it is the right click that comes easily. Sawhorse took it as a left click with Ctrl held: in Select it toggled, in Paint it painted the whole solid, and the view never panned; only the right button itself did. Now, on macOS only, a left press with Control and not Cmd is the right button (
isMacControlClickin a newsrc/lib/platform.ts, withisMac(), the app's first OS check):leftButtonNavanswers "pan" for it in every tool, so lane 30's left-button path pans and keeps the press and its double-click from the tool, and the drag stays a pan through Control let go and through Shift. Cmd stays the tools' Ctrl, as it always counted: Cmd+click toggles a selection or paints a whole solid, and the Eraser softens with Cmd. A tap of Control (Move and Rotate copy, Scale about the centre) is its release with no key or click between, on macOS only, as Alt's has been since lane 30, so a Control+drag pan in Move does not switch copying. On Windows and Linux nothing changes: Ctrl+click and Ctrl+drag reach the tool as before and a Ctrl tap still counts as the key goes down. Tests:src/lib/platform.test.ts(only a Mac is a Mac, and only its left press with Control and without Cmd, from a mouse or a pen, is the right click);src/tools/navigate.test.ts(a Mac Control+click pans in every tool, the Orbit and Pan tools, Paint, Section Plane and a plugin's tool, whatever Shift and Alt do);src/viewport/controls.test.ts(Control+left pans on macOS through Control let go and Shift pressed and let go, and ends on its release; not on Windows, nor with Cmd);src/App.test.tsx(on a Mac the Control tap is its release, and not across a press or Control+Z; on Windows and Linux the tap still counts as the key goes down);e2e/orbit-trackpad.spec.ts(the platform set to macOS: Control+drag pans in Select and under Orbit through Control let go, Select sees nothing, Cmd+click toggles, Move's copying is untouched and a tap still switches it). Paint's, Select's and the Eraser's end-to-end Ctrl+clicks pressControlOrMeta, which is Control on Windows and Linux, so there they still show that a Ctrl+click reaches the tool (a toggle, a whole solid painted, an edge softened), and they pass on a Mac too. - A right-drag pans a drawing sheet, as it pans the 3D view; on a Mac, a Control+drag does too (#42, from @brewmium; #40). A sheet panned only with the middle button or Space+drag, and a right press did nothing on the paper, so the right-drag that pans the model did nothing there, and a Mac's Control+click (its right click) reached the sheet tools as a plain click. Now the sheet canvas starts its pan on the right button and on a macOS Control+click (
isMacControlClick) as it does on the middle button; the browser's menu was already kept off the paper. The right-drag is on every platform; Control+drag is macOS only, and on Windows and Linux a Ctrl+drag is still the tool's own drag. Tests:e2e/sheets.spec.ts(with the View tool in hand, a right-drag on the platform as it is, and a right-drag and a Control+drag with the platform set to macOS, each move the paper by the drag and place no viewport; off a Mac a Ctrl+drag still places a viewport and leaves the paper where it was). Both fail without the change.
[0.1.0-alpha.5] - 2026-11-10 #
A pre-release, v0.1.0-alpha.5; every change since alpha.4: v0.1.0-alpha.4...v0.1.0-alpha.5. The release notes: docs/releases/v0.1.0-alpha.5.md.
Release (the alpha.5 hygiene pass, 2026-11-10) #
- Version 0.1.0-alpha.5 in npm, Tauri (MSI version 0.1.0.5), both Cargo workspaces and their locks (only the members' own version lines), the
.shzgenerator examples, the site's download links anddocs/DEVELOPMENT.md's list of the release's files; the release notes indocs/releases/v0.1.0-alpha.5.md(Save after a deletion, #21, #34 and #35, first; the macOS ad-hoc signing, #27, with what it does not change; orbit without a middle button, #36; Back, Left and Bottom views; the discard question, #32; SketchUp curves and older files' scenes; the unit picker, #13;sawhorse-cli, #14; the smaller fixes; not yet, with the trackpad's two-finger orbit, #36, metric stock, #26, and Control+click on a Mac, #40; the known limits, with the window's close button, the Linux Save As name, #31, and the SketchUp 5 file, #15, with its re-save; an antivirus's hold on an unsigned download beside SmartScreen; thanks by GitHub login). The README, the site anddocs/SIGNING.mdpoint at them. - Docs and site for alpha.5:
docs/LIMITS.mdsays it is current for alpha.5 (with lanes 25 and 28); the site's unsigned-builds note says the release notes have a one-line fix if macOS says the app is damaged;docs/SIGNING.mdsays alpha.5 is the first release signed ad hoc and is not yet confirmed on a real Mac; the README sayscargo run -p sawhorse-cliruns in the checkout'scrates/folder (from its root, cargo finds no workspace);docs/DEVELOPMENT.md's release checklist names the lock regeneration and says to quote messages from the code at the release's head.
Fixed (lane 30's small corrections, 2026-11-09) #
- A cut list with no lumber totals 0 board feet, not -0.
sawhorse-cli cutlistprinted"board_feet":-0.0for a model with nothing to cut or only sheet goods, andsawhorse-cli nestprinted-0.0areas for a nesting with nothing placed: an f64 sum over nothing is -0.0 in Rust. The kernel adds those totals up from 0.0 now (cutlist.rs,nesting.rs), so the app's panes get the same 0 the command line prints. Nothing else changes: every other total adds up in the same order to the same value, and no hash reads them. - Kerf and Trim keep what was set while a typed length waits (from the review of #33). A length typed in the Nesting section's Kerf or Trim box is committed by Enter, by leaving the box, or by a pause of 700 ms. The pause's timer kept the settings of the moment it was set, so typing
3/16 inand pressing Enter committed it, then committed it again 700 ms later (a second undo step for the same change); and if the kerf and the trim were changed from outside while a typed kerf waited (a plugin, or Redo), the timer set the trim back to what it had been. A commit now reads the settings as they are when it runs, and Enter or leaving the box stops the timer. - The alpha.4 release notes date the ad-hoc signing right. They said the release workflow signs the macOS app ad hoc "since alpha.4"; it does from the build after alpha.4, which is why alpha.4 itself says "damaged" on Apple Silicon.
- Tests:
crates/cli/tests/cutlist.rs(an empty model's cut list and nesting print no-0.0in plain or pretty JSON, and a board's total is its row's board feet);src/components/NestingSection.test.tsx(Enter, then the pause, commits once; a kerf and trim set from outside while a typed kerf waits are kept, and the next typing commits against them). Both fail without the change.
Added (how to contribute, 2026-11-09) #
- CONTRIBUTING.md (#37). A contributor asked how help is wanted; the answer is written down at the root of the repository: reports, small fixes straight away, larger items and new ideas through an issue first, AI-assisted pull requests welcome with the trailer kept and what was run said, what makes a change fit (a test that fails without it, a changelog entry in this form, the guide with the behaviour, the full gate with its exact commands), how a pull request lands, what the maintainer keeps (the
.shzformat and the model hash, releases, signing, the site), and the tests on real hardware that would help most. The README anddocs/DEVELOPMENT.mdpoint to it.
Added (orbit without a middle button, 2026-11-09) #
- Orbit with a trackpad: the Orbit tool (O) and Option+drag (#36). On a MacBook with only its trackpad you could pan (a two-finger click and drag) and zoom (a pinch) but not orbit: orbit was the middle button's alone, a trackpad has none, and no key or modifier stood in for it, so the standard views were the only way to turn the model. Now the Orbit tool (O, on the rail and View > Orbit) orbits with a plain left-drag exactly as a middle-drag does (the same pivot under the cursor, the same crosshair, the same stop short of looking straight down), Shift+drag pans, and Esc goes back to the tool you had; the Pan tool (H, View > Pan) pans with the left button. In every tool but Paint and Section Plane, Option+drag (Alt+drag on Windows and Linux) orbits without leaving the tool, halfway through a line or a move too, and Option+Shift+drag pans. Paint keeps Option+click for picking a material up and Section Plane keeps Option for reversing the cut, so in those two the O key is the way. The guide's Navigating section says all of it, with a paragraph for trackpads.
- An Alt tap is a tap. Move's autofold switch and Section Plane's reverse came on Alt going down, so holding Option for an Option+drag would have switched autofold every time. They now come when Alt is let go with no key and no click between. Section Plane's Alt+click now places the plane reversed, as the guide always said: the tap on the way down used to reverse it first, and the click turned it back.
- Shift switches a middle-drag back as well. Pressing Shift during a middle-drag switched the orbit to a pan, but letting Shift go did not switch it back, and letting the button go was only noticed at the next move: the switch took the button from the move event, which carries none. The drag now keeps the button it was pressed with, for the left button's drags too.
- How: the camera controller asks the app what a left press does (
leftButtonNavinsrc/tools/navigate.ts: the Orbit or Pan tool, or Alt in a tool that gives Alt no meaning) and runs the middle button's own drag for it (src/viewport/controls.ts), so the orbit itself is the same code; that press and its double-click never reach the tool. A plugin's tool counts as a tool without an Alt meaning (PLUGINS.md). The rail has a sixth group for the two tools, after Section (ADR-0003's lane-30 note). - Tests: vitest (
src/viewport/controls.test.ts: an Alt+left press orbits about the same pivot as a middle press and leaves the camera exactly where the middle drag did, Alt+Shift pans and letting Shift go orbits, Shift switching a middle or an Alt drag both ways four times with button-less moves and the release ending it at once (fails on main), a plain left press in a tool is not taken, the Orbit and Pan tools;src/tools/navigate.test.ts: the rule for every kind of tool, Paint, Section Plane and a plugin's;src/App.test.tsx: O, H, Esc back to the tool before, View > Orbit and Pan, the Alt tap);e2e/orbit-trackpad.spec.tswith the real mouse: Alt+drag orbits about a box corner pinned under the cursor, leaves the standard view with no view button lit and selects nothing, Alt+Shift pans, Move's autofold untouched by the orbit and switched by a tap; the O tool orbits, H pans, Esc returns to Line and then to Select; in Paint, Alt+click still samples and an Alt drag does not orbit; in Section Plane, Alt+click and an Alt tap both place the plane reversed.
Added (a headless cut list, 2026-11-09) #
sawhorse-cli: the cut list or the nesting of a saved.shzas JSON, with no app (#14: "reading a cut list from a .shz as JSON without opening the app").sawhorse-cli cutlist Bookshelf.shzprints what the Cut list pane reads (rows with finished sizes, quantities, grain, stock, board feet or area, the totals, the hash),sawhorse-cli nest Bookshelf.shzwhat the Nesting section reads;--visible-only,--rounding sixteenth|thirty-second|half-mm(cutlist),--algorithm guillotine|maxrects(nest) and--pretty. What the reader had to do to open the file (a texture missing from it, an object rebuilt fromgeometry.glb) goes to stderr asnote:lines, so a script can tell a clean read from a repaired one while stdout stays JSON. It is the kernel's own serialization throughsawhorse_shz::read, so a file gives the same JSON here and in the app. A new workspace crate,crates/cli, with no dependency beyond the kernel, the reader and serde_json; it reads and prints, never writes. A CLI that builds or changes a model, and an MCP server, are not in this; the kernel's op log makes both possible later.- Tests:
crates/cli/tests/cutlist.rs(a saved board's cut list and nesting equal the kernel's for the same model, byte for byte; rounding, visible-only and the algorithm reach the kernel; a saved file rewritten with aplugin-data.jsonthat is not text comes back with the reader's note and the same cut list, a clean file with none; a file that is not a document says so; the command line end to end: every option, every refusal, a missing file).
Fixed (the desktop app waits for the discard question, 2026-11-09) #
- The desktop app asks before throwing away unsaved changes (#32). In the Windows, macOS and Linux app, File > Open and File > New replaced a model that had unsaved changes at once, and "Discard the unsaved changes to this model?" was never seen. The dialog plugin gives the desktop's
window.confirmback as a Promise (a yes whatever the answer, to code that does not wait), and the app did not wait; the shell had also never granted the plugin's message permission, so the dialog could not have shown. The question now goes through the dialog plugin on the desktop (askYesNoinsrc/io/files.ts, with the app's name on the dialog) and is awaited wherever it is asked: Open, New, and an empty SketchUp file opening as a new model. The browser build asks as before.src-tauri/capabilities/default.jsongrantsdialog:allow-message. Found on Linux (the 0.1.0-alpha.4 .deb and AppImage, andmain) by scripting the app under Xvfb. - Tests: vitest (
src/io/files.test.ts: the browser asks with window.confirm; the desktop asks through the plugin and waits for the answer);e2e/files.spec.tsstands in the desktop's asynchronous confirm and checks that Open and New over unsaved changes wait for No and keep the model, and go ahead on Yes.
Added (Back, Left and Bottom views, 2026-11-09) #
- Back, Left and Bottom standard views, on the View menu ("Back view", "Left view", "Bottom view"). Each is a square, parallel view framed like the others: Back looks along -Y, Left along +X, and Bottom looks up from below with the front edge at the top and red running right, as a sheet's Bottom view draws it. The top bar keeps its five buttons; a menu view lights none of them.
ViewId,VIEWSandVIEW_DIRSinsrc/viewport/camera.tscarry the three, andBAR_VIEWSis the bar's five. The README's "not yet" list loses its Back and Bottom line. - Tests:
src/viewport/camera.test.ts(the eight views, the bar's five, every direction, opposite pairs, up square to direction);e2e/navigation.spec.ts(each menu view sets the view and a parallel projection with no bar button pressed).
Fixed (a lock ignores a point level with its start, 2026-11-09) #
- Push/Pull no longer drops to 0 partway up a drag. In the iso view, pushing a 12 x 12 in rectangle up from near its top right, the distance went 1, 2, then 0 with the preview gone for a stretch, then 4, 5 ...; from lower on the rectangle it happened at 8 or 9. The cursor going up the screen also runs diagonally over the ground, past the rectangle's far corner, its edges' midpoints and the alignment lines through the corners just drawn, which run along its far edges and on past them. Those points are level with the face, so projected onto the locked push line they meant "no distance at all".
- How: a point that a lock would project back onto the gesture's start is no longer a snap; the cursor keeps following the line. A point at any other level still projects (push until level with a neighbour's corner). It is in the inference engine, so every locked line gets it.
- Tests: an inference test sweeps the cursor up the iso view from six grabs on the rectangle, with the drawn corners remembered, and holds that the distance never falls to 0, and that a neighbour's top corner still projects.
Fixed (lane 28, 2026-11-09) #
- Save works after you delete, update, explode or group things (#21, #34, #35). In alpha.4, Ctrl+S could answer "Could not save: the file did not read back as written: the model differs" and keep answering it for every edit after: once the cabinet generator had updated a cabinet in place (Generate pressed again with the cabinet selected), once a cabinet or a component had been exploded and its parts grouped, once a copy of a component had been deleted, or after any other deletion. Those models now save, open as the same model, and save again. Nothing that was saved before needs anything done to it.
- What was wrong: Save reads its own file back and refuses one that would not open as the model in the window (lane 16), and the reader numbered every list 1, 2, 3 ... again. A model in which something had been deleted has gaps in its ids, or ids in a slot used before (the cabinet's eight nodes after an update were 4294967297 to 4294967304), so the file opened with other ids, the model hash (which includes them, because ops and scenes name things by id) differed, and Save refused. The fix stores and restores the ids instead of hiding them: a
.shzreader now keeps every id exactly as written, holes and reused slots included (ids::with_ids), for solids, meshes, groups and instances, section planes, and (new optionalidfields, format.md) sketches, component definitions, guides, dimensions and sheets. Files without the new fields open numbered as before. A tampered file's ids are refused with a plain message in under a millisecond: zero, a slot past twice its list's limit, a slot listed twice, or more than 2^24 steps to rebuild (LIMITS.md). The same pass found that a saved section plane's normal and a guide's direction moved by their last bit on every save (the reader normalised a unit vector again); a unit one is now read as written. Neither change makes the hash ignore anything, and the read-back check is as strict as before. - When Save does refuse, it says what to do: "Could not save: the saved copy would not have opened as the same model, so nothing was written; File > Export keeps the shapes. Please report this." (a file that does not read back at all says why inside the same sentence). The model, its undo and the unsaved mark stay as they were, and the next save writes them.
- Tests:
crates/shzround trips, one per report (the cabinet generator's import op, updated in place three times with the stored id still naming it, then a board drawn; a cabinet exploded, its parts grouped, another deleted, two parts grouped inside an open cabinet; components arrayed, scaled, turned, made unique, deleted and exploded, then edited inside after opening), a deletion from every list, refused ids, and files without the new ids. Onbf2c9f0the four round trips and the refusal test fail (the old-file test passes on both); all pass now. The op fuzzer and every repro replay now save, open and compare each sequence (testing::check_saved: same hash, ids and snapshot; about 5% more fuzzer time, 26.7 s against 25.3 s for 2,500 sequences); the golden round-trip test no longer excuses documents whose ids are not 1, 2, 3;src/io/save-roundtrip.wasm.test.tsimports all 203 corpus.skpfiles and saves and opens each one through the WASM kernel, after an explode and two deletions too (about 2 s; 110 of them failed onbf2c9f0);crates/wasm-apichecks the refusal's wording and that the work survives it;e2e/plugins-samples.spec.tssaves and reopens an updated cabinet and an exploded, grouped one in the app;e2e/files.spec.tsdrives a refused save (?kerneltest=1) and checks nothing is downloaded and nothing is lost. No golden hash and no corpus byte changed. - Save no longer refuses after an edit that empties a component is undone (lane 28 follow-up, found by CI's long fuzz at seed 20261011 the day lane 28 landed). With three copies of a component, a group made inside one copy is in all three; delete what the group held from inside it in one copy, draw a line there, and open another copy, and the empty groups go, which takes the group out of the component and so out of every copy, and the copy that held the line is then empty. Tidying swept empty groups and copies once, before it carried that removal through the copies, so the emptied copy stayed (invisible, holding nothing) until the next edit of any kind removed it. Undoing that edit brought it back, and Save then refused, because the file of that model opened without it: Save's read-back check (lane 16) holds a file to the model in the window, and the model in the window held a copy no edit would have kept. The fix is in the model, not the file: tidying now sweeps again after every round of carrying changes through copies, until a sweep finds nothing, so the copy goes in the edit that empties it and Undo never brings back a model the reader would tidy differently. The writer, the reader and
check_savedare unchanged. Tests: the fuzzer's minimal sequence ascrates/kernel/tests/repro/2026-11-09-save-after-a-component-copy-emptied-by-tidy.json, andcrates/shz'sa_component_copy_emptied_by_tidying_is_not_saved_as_a_ghost, which saves and opens the model at each step and holds that only the open copy is left, before and after the undo (both fail without the fix). The long fuzz passes at 10,000 sequences for seeds 20261011, 20261109 and 7. Still open, and separate: the line drawn in that group is gone with it when you leave (a group's counterparts are swept although one of them holds a line), in the window as well as the file. - macOS: the app is signed ad hoc until it has a certificate, and the release notes say how to open a "damaged" alpha.4 (#27). On Apple Silicon, alpha.3's and alpha.4's disk images said "Sawhorse.app is damaged and can't be opened" with no Open Anyway button, because the app carried no signature at all. The release workflow now sets an ad-hoc identity when no Apple identity is configured, so Tauri signs the
.appbefore it makes the.dmg, and a step after the build verifies the app and the app inside the.dmg(codesign --verify --deep --strict), signing, rebuilding and re-uploading them if they do not verify (scripts/macos-adhoc-check.sh). Untested until the next release build runs on a Mac runner. For alpha.4, the release notes and SIGNING.md givexattr -cr /Applications/Sawhorse.appand, if that is not enough,codesign --force --deep --sign - /Applications/Sawhorse.app.
Fixed (lane 27, 2026-11-01) #
- A SketchUp import's curve note says what the model holds (#17). openskp's
gondola_v20.skpsaid "16 curves came in as curves (8 arcs, 8 polylines)" while the model held 24 polylines and no arc: the note counted a component's curves once, for its definition, in the frame its items are built in, and its arcs sit in components placed with an uneven scale, which turns each copy's arcs into polylines only where it lands. The note now counts every placed copy as it lands, as the curves view does (the gondola: "24 curves came in as curves" and "16 circles or arcs in groups or components scaled unevenly came in as polylines"), and an uneven scale on a component's placement is said with a group's: "N circles or arcs in groups or components scaled unevenly came in as polylines". Five of the 35 real files tried said a different number than their curves view (Corynth's cupboard said 30 curves, 6 circles and 24 arcs, for a model holding 12 circles and 48 arcs); none does now. - How: after an import places everything, the kernel reads the rims of every solid it placed (each copy of each component, nested ones too) the way the curves view reads them, and counts those, so the note cannot disagree with the view. A circle or an arc stretched by a group's uneven scale still comes in as a polyline, flagged for the kernel (
ImportCurve.stretched) so it is counted per copy with the rest; what stayed plain edges (on a mesh, drawn on a face, not on one circle) is counted per copy too. The notes written before the kernel sees a curve (a record that did not match its edges, a broken chain, an ellipse, an arc cut on a chord) still count each definition once. Nothing about the geometry changed: the 35 files bring the same solids, meshes and curves, kind by kind, and no model hash, golden or corpus byte changed (ADR-0013's lane-27 addendum). - Tests: kernel tests (
crates/kernel/tests/import_curves.rs: a definition's arc placed evenly and unevenly, "2 curves came in as curves (1 arc, 1 polyline)" with one stretched; nested copies of a definition with a rim, a curve on a mesh and a flagged polyline, six copies, two stretched by their placement; the flag in JSON; the component test that asserted one count per definition now asserts one per copy); vitest (src/io/skp.test.ts: the issue's case written with openskp's writer and imported through the WASM kernel, the group test with the kernel's note, the cupboard's note against its view);src/io/skp-sweep.test.tsnow fails any private file whose note does not count what its view lists. - The status line tells regions of two sketches apart (#10). Moving a region of one sketch with a region of another that has the same number said "Moved region 1 and region 1". Sketches now have names like solids ("sketch 2": its place among the document's sketches, in the order they were made), and a Move, Rotate or Scale message naming regions of more than one sketch names each one's sketch: "Moved region 1 of sketch 1 and region 1 of sketch 2 24 in along +red." Regions of one sketch keep the short form ("region 1 and region 2"). Tests:
src/lib/names.test.ts,src/tools/move.test.ts. - A typed angle that turns nothing says so (#10). In Rotate, a typed
0showed nothing and left the tool waiting, and360said "Nothing to move there." Both, and any other whole number of turns (-360,720), now say "An angle of 0 turns nothing; type another angle or press Esc.", change nothing, and leave Rotate waiting for another angle, during a turn or just after one, for solids and sketch shapes alike. Tests:src/tools/rotate.test.ts(0, 360 and -360 mid-turn, before the start is clicked, after a turn, on a sketch region, then a real angle). - Quarter turns are exact (#10). A sketch stood up with Rotate, Right and
90faced (0, -1, 6e-17) instead of (0, -1, 0). When the angle is typed, or snapped to a protractor tick, and is a whole number of quarter turns, Rotate builds the turn from exactly 0 and plus or minus 1, tested on the degrees, never on the radians (turnCosSininsrc/tools/xform.ts); a copy divided with/2or/4keeps it. A drag that lands between ticks turns as before. Tests:src/tools/rotate.test.ts(the sines and cosines; a ground normal turned 90, -90, 180 and 270; typed, snapped and free turns as they reach the op; and through the WASM kernel, a ground sketch stood up and a solid turned each way, every normal exactly an axis). No golden or corpus byte changed. - Lane 26's loose ends.
format.mdsays a scene's"grid": nullreads as absent (it always did), and a kernel snapshot test and a.shztest prove it. Clicking the scene tab that is already active brings its scene back like any other tab (camera, style, grid, hidden tags, sections; one undo step; the lane-26 note), as it already did onmain: a newe2e/grid.spec.tstest holds it (the grid hidden by hand comes back on the click and goes again with Ctrl+Z), and the guide says so. The end-to-end suite runs six workers locally (playwright.config.ts): at Playwright's default, twelve on the development machine, three full runs on an idle machine passed, but beside 16 threads of other work three runs failed 2, 1 and 3 different interactive specs, and at six workers three runs under the same load passed; CI keeps its default, andPW_WORKERSoverrides it (DEVELOPMENT.md). After a reload,e2e/session.spec.tsande2e/containment.spec.tswait for the kernel to load as every spec does on its first load (15 s) instead of the default 5 s, which a loaded machine overran.DEVELOPMENT.mdsays to find a scene tab by its accessible name ordata-scene, since CSS shows it in capitals.
Fixed (lane 26, 2026-10-29) #
- A scene brings back the grid it was saved with (#6). Hide the grid (View > Grid) and save Scene 1, show it and save Scene 2, go to Scene 1 and then Scene 2: the grid used to stay hidden, because Scene 2 was saved with the default style, which is stored as no style, and a scene without a style left the style (the grid with it) as it was. Now going to Scene 2 shows the grid, going to Scene 1 hides it, and the status line says so ("Scene 'Scene 2': grid shown."; nothing is said when the grid does not change). Updating a scene saves the grid that shows then. Going to a scene stays one undo step. A scene from a SketchUp file (SketchUp has no ground grid) or one saved before this fix leaves the grid as it is. The alpha.3 and alpha.4 notes listed this as a known limit.
- Format: a scene carries an optional
grid(trueorfalse), the ground grid shown when it is activated, written on every scene Sawhorse saves or updates (format.md); the kernel'sactivate_scenesets the style's grid to it after bringing back the scene's style, and stores a style that becomes the default as none. The grid still lives only in the style; the scene remembers what to set it to (ADR-0008's lane-26 addendum). Older files open as before, and no model hash and no golden changed. - Tests: kernel tests (
crates/kernel/tests/scene_grid.rs: two scenes with opposite grids flip it both ways, from no style too, one undo step each; the switch over a disagreeing style; a scene without the switch, and the sheet golden's lane-12 scenes, leave the grid alone; the snapshot accepts the switch absent and present and refuses anything but true or false;as_sceneleaves the document alone);.shzround trips (crates/shz: both scenes reopen with the same hash and switches; an older file's scenes leave the grid alone); a drawing of a scene is the same with the grid hidden or shown (crates/export/tests/drawings.rs); vitest for what a scene saves, the status line, and, through the WASM kernel, View > Grid and the Styles pane's Ground grid following a scene (src/components/sceneGrid.test.tsx);e2e/grid.spec.tsruns the issue's steps, saves the.shz, opens it and runs them again, and checks that a scene saved with X-ray faces and the grid hidden brings both back. The lane-21 spec that checked the known limit as written now checks the fix. The fuzzer's scenes carry the switch on, off and absent.
Changed (lane 25, SketchUp curves come in as curves: openskp 1.4.0, 2026-10-28) #
- SketchUp circles and arcs come in as curves. The
.skpreader is openskp 1.4.0 (it was 1.3.0), which says which edges make up each curve and gives every arc's and circle's exact centre, radius and angles, from SketchUp 2013 to 2020 files and 2021 and later ones alike. A cylinder, a dowel or a rounded part that is a solid arrives with its circles and arcs as rims: click one and the whole circle selects, its centre snaps, and it rides along when you pull the cap; every copy of a component has them. A circle lying loose at the top of the model, or around a flat face there, arrives in a sketch with its face (not as an amber mesh), ready to pull into a cylinder. Welded curves come in as one curve of straight segments. The import report counts them: "30 curves came in as curves (6 circles, 24 arcs)" for one of the CC BY test cupboards, which brought none before. - What stays plain edges, and says so. Curves on faces that are not a solid (the amber meshes most hand-made furniture arrives as), a circle drawn on a solid's face, and loose curves inside groups come in as plain edges, counted in the report ("481 curves on faces that are not a solid (or on no face) came in as plain edges: a mesh keeps no curves"). An arc SketchUp cut short on a chord or scaled unevenly is one curve but not a round one. Sawhorse still never guesses a curve from the edges' shape, and checks every circle the file records against its edges: one that does not match comes in as plain edges, named ("Leg: 1 curve's record did not match its edges; it came in as edges"). None of the 35 real files tried had one.
- Scenes from SketchUp 2013 to 2020 files. openskp 1.4.0 reads the scenes of files saved before 2021, with their cameras and hidden tags; they come in as a 2021+ file's always did. A parallel (orthographic) scene, from either kind of file, now shows the height SketchUp shows: it used to come in zoomed by its eye's distance.
- Fixes from openskp 1.4.0 you could meet: a component placed with its scale kept in the placement's scale term (some exporters write them) is placed and sized correctly; it came in 100 times too big and 100 times too far out. A SketchUp 2018 save that would not open ("base probe: anchor resolved to null") opens, and so do openskp's SketchUp 3, 6 and 7 test files. Guide points and guide lines in 2021+ files are counted in the report as not imported, as older files' always were.
- Still refused: a real SketchUp 5 save ("legacy .skp parse failed: back-ref to unwalked slot 20617"; it was "texture object is not a dib"): open it in SketchUp 2017 or later and save it again (#15). Nothing that opened before opens worse: the 35 files tried bring the same solids and meshes, file for file (skp-compat.md).
- Not changed: groups and components are still told apart by name and how often they are placed; openskp 1.4.0's own group flag disagrees on 59 definitions of the files tried, and using it is #16.
- Kernel: an import item may carry curves (
ImportItem.curves), which become rims of the solid they run along when every segment is an edge of that solid between two different faces (ADR-0013's lane-25 addendum); the import's one curve note counts strokes and rims together, by kind. No model hash and no golden changed. - Tests: kernel tests for imported rims (
crates/kernel/tests/import_curves.rs); unit tests for the curve mapping (a circle, an arc both ways round, an open run of a circle, a polyline, an arc cut on a chord, an ellipse, a record that disagrees, a broken chain, a chain where only some edges carry the curve;src/io/skpCurves.test.ts) and for the import (the corpus's three curve files, a pulled disc, a cylinder's rims beside a disagreeing record, an unevenly scaled group, the cupboard's 30 curves, the scale term, parallel scenes, the group flag changing nothing;src/io/skp.test.ts);e2e/curves.spec.tsimports the corpus's circle, arc and welded curve as a circle, an arc and a polyline and selects the circle whole. The.skpcorpus is regenerated by openskp 1.4.0's writer (166 files changed bytes: it flags a group's definition as a group); every file imports to the same op as before.src/io/skp-sweep.test.tssweeps a private directory of.skpfiles through the import in Node (skipped without one).
Changed (lane 24, units where the eye lands, 2026-10-22) #
- The units are findable in the first minute (#13: a first look at the browser demo "only gives me inches"). The unit chip beside the Value Control Box now opens a unit picker (Millimetres, Centimetres, Metres, Decimal inches, Feet and inches, Fractional inches, each shown with a sample length, the current one checked) instead of cycling through the six on each click; Edit > Units lists the same six, with a Choose… that opens the picker; and on an empty document the status line ends with "Units: fractional inches. Click to change.", which is the click. The browser demo (never the desktop app) shows a one-sentence hint above the chip on the first visit, dismissed for good by Got it or by opening the picker. The guide's first page says where units are and spells out the menu path. No kernel change; no model hash changes.
- Tests: vitest for the chip, the picker, the status line and the hint (
src/components/ValueBar.test.tsx), the App's chip and Edit > Units, the picker's choices;e2e/units.spec.tschanges units from the chip on a cold open and sees a typed 300 become 300 mm (and the choice survive a reload); the other specs pick units through one helper.
[0.1.0-alpha.4] - 2026-10-20 #
A pre-release, v0.1.0-alpha.4; every change since alpha.3: v0.1.0-alpha.3...v0.1.0-alpha.4. The release notes: docs/releases/v0.1.0-alpha.4.md.
Release (the alpha.4 hygiene pass, 2026-10-20) #
- Version 0.1.0-alpha.4 in npm, Tauri (MSI version 0.1.0.4), both Cargo workspaces, the
.shzgenerator examples and the site's download links; the release notes indocs/releases/v0.1.0-alpha.4.md(curves, #3; sketch geometry that moves, #2; the user-visible fixes; the known limits #6, #7, #8, #9, #11 and #12); the README, the site anddocs/SIGNING.mdpoint at them. docs/LIMITS.mdsays it is current for alpha.4; the user guide no longer says a circle is a chain of separate edges under Moving sketch shapes (lane 22's note, which lane 23 made untrue), and its Offset section points at a curve's radius offset, and it calls Sawhorse an alpha (it said pre-alpha). The README's feature list names curves and sketch shapes that move, and its Not yet list Weld Edges.docs/LIMITS.mdhas a Moving sketch geometry section (the selection after a move that splits a shape, #7; a Move drag's preview in a sketch of more than about 1,500 edges, #8), and the release notes name #8 with the known limits.- The release notes, as the hygiene pass's verifier read them: the thanks line credits the SketchUcation report with #2 only, since #3 came up while reproducing it (the report's other request, the grid, was #4 in alpha.3); the Eraser drag across a circle or a polygon is part of curves, not a fix since alpha.3 (it fixed a regression made while curves were being built), so it moved from Fixed into the curve's Erase bullet; #7 reads "the selection is not updated to the pieces it leaves" (in the notes and
docs/LIMITS.md), as the verifier saw it; and the known limits name #9, a second rectangle that now and then lands on a vertical plane.
Fixed (lane 23b's second fix pass, found by lane 23b's verifier, 2026-10-20) #
- A section's two halves add up to the solid whatever its faces' bends (the fuzzer, seed 20281103, plane snapping on; a regression of lane 23b): a 700 m ring wall, two corners of its outer wall nudged up a micrometre, was cut through its centre, and the fuzzer's check read the whole 0.47 m3 above its 265.7 m3. Lane 23b measured each half as fans over its kept face rings, and a fan over a ring round a hole spans the hole: on a face bent within tolerance that is a different surface from the face's triangles. A section's kept volume is now the cone over the solid's own triangles (the ones its volume is measured by), each clipped to the kept side, so the halves make the solid's volume to rounding (9e-14 of it here, 1.5e-14 on lane 23b's fin, which lane 23b held only to 1e-4); the check holds them to it within 1e-6, as before lane 23b, without the bend allowance lane 23b had added.
- The fuzzer's check of a far-out solid's faces measures about the solid (seed 20281207, plane snapping off; on lane 23 too): a 3.8 mm sliver of a 700 m circle, pulled 0.5 m down, read 3.17e-6 m3 over its faces' stored planes and 1.84e-6 by its triangles, because the planes were integrated about the world origin, 700 m away, and a narrow face's stored normal may tilt off its corners' by its bend over its width. The planes are now integrated about the solid's own centre, and allowed what a face's bend can move them: its area, plus its perimeter times its distance from that centre over three, both times its bend (a face flat to rounding is allowed nothing beyond the 1e-6 floor). The old allowance, the planarity tolerance times the area, left the second term out; a new property test found it short by a factor of almost six on a ring wall 50 m across and 0.2 mm wide (8.5e-4 m3 apart, 1.5e-4 allowed).
- Tests: both finds as named repros (
2026-10-20-section-of-a-700m-ring-wall-with-two-corners-nudged-a-micrometre,2026-10-20-section-of-a-sliver-of-a-700m-circle-snap-off) with a section test each; a property test of bent ring walls (5 cm to 1 km across, up to 5 km out, corners nudged, cut anywhere, snapping on and off: the halves within 1e-9 of the volume plus rounding and the documented gap of a half the tie rule leaves open); the lane-19 section finds hold each half to its volume worked out without the cut (the flux of the distance beyond the plane through the solid's triangles) and the halves to the whole to 1e-12 (it was 1e-7). The lane-19b verifier's sliver is 8.354e-9 m3 by both measures; it was asserted at 1e-8 to 1.5e-8, the reading through its bent top face's stored plane.
Fixed (lane 23b, found by lane 23's second verifier, 2026-10-20) #
- An Eraser drag across a circle or a polygon erases it (a regression of lane 23): a drag whose sweep crossed the shape's face as well as its rim did nothing and said "Can't do that. no curve that one there". The face's erase takes the curve with it (its ring), and the curve's own erase in the same step then found nothing and undid the whole step. The kernel's batch now treats a curve an earlier op of the same batch erased as already erased (as it does an edge already gone), and the app no longer lists a curve that is the whole boundary of a face it erases with it. One undo step brings both back; the status line says "Erased 1 item."
- Every refusal that names something by its id reads as a sentence: "no curve that one there" is "that curve no longer exists"; the same for a section plane, a sheet and a sheet's items. A test reads every message the kernel and the browser bridge format with an id and checks each comes out as words.
- A section across a hair-thin fin keeps two halves above zero (the fuzzer, seed 20271003, plane snapping on, also on lane 22): a 0.1 mm cylinder with two points of its rim moved 2.2 m up is a fin a few hundredths of a millimetre wide, and a plane at 45 degrees across it kept halves of 1.43e-7 and -4.5e-8 m3 of a 9.7e-8 m3 solid. Each kept face was measured through its stored plane, whose normal a face that narrow does not pin down (its corners sit within tolerance of it but tilt across its width), about the world origin 1.5 m away. The kept volume is now the cone over each kept face's own corners from the solid's centre (ADR-0010 is unchanged: only how the halves are measured; the second fix pass, above, takes the cone over the solid's own triangles instead).
- A
.shzwith a curve id beyond 2^53 - 1 is refused on open (the verifier's hostile files): a solid rim's id of u64::MAX overflowed while its rims were settled (a panic in a debug build, 33 of 60,000 mutations; a release build wrapped and then refused). Curve ids and a sketch's curve counter above 2^53 - 1 (the largest JavaScript reads exactly) are refused, and the arithmetic is checked. - SketchUp imports no longer say "curves came in as plain edges" on every file: openskp 1.3.0 gives no curve record, so it cannot tell a file with curves from one without, and the note was on every import with an edge. The fact is in skp-compat.md and the guide.
- Scale says what a circle is now: "Scaled a circle ×2: radius 600 mm." (an arc and a polygon alike), or that it was scaled out of round. The unit chip beside the Value Control Box shows nothing for a factor (Scale) or a count (a circle's segments, a polygon's sides), and a degree sign for an angle (Rotate); it was "mm" next to "2".
- Move, Rotate and Scale count shapes: a circle and its face are one shape, so 200 circles window-selected with their faces move as "200 circles", not "201 items" (the same for closed curves of straight segments, "200 curves"). The curve's kind names it ("a circle", "an arc", "a polygon").
- Scale refuses a lone point of a curve before any grip shows, with the words Move and Rotate use (ADR-0013 said so; Scale showed no grips and no reason).
- Sheet viewports and SVG drawings draw a soft edge only where it is the outline: a pulled circle seen from the front is its two sides, not its 24 seams (a sheet viewport drew 13 upright lines; the SVG export drew none of the sides). Hidden edges are left out of sheet viewports as they are of SVG drawings.
- Offset of a circle, an arc or a polygon moves its radius: a 24-segment circle of 200 mm offset 50 mm out is a 250 mm circle (it was 249.57 mm: the polygon offset moved its edges 50 mm, so its apothem). The same centre, kind and segment count, as SketchUp draws it; a polygon inward past its apothem but not its radius is still a polygon. Any other shape offsets as before.
- Filed, not fixed: moving or importing many curves is quadratic (#11); zoomed out, a click mid-segment on a large circle picks a vertex (#12).
- Tests: a kernel test of the batch (a circle and a polygon erased with their faces, one undo; a curve never there still refused), the fin as the named repro
2026-10-20-section-across-a-fin-pulled-up-from-a-tiny-cylinderand a section test, the curve tampers intampered_snapshots_are_refused, the radius offset (circles, polygons, arcs both ways, past the centre refused), drawing and SVG tests of a soft cylinder from the front; vitest foreraseOps, the refusal sentences, the Scale status and chip, shapes counted with 1, 2 and 200 circles, Rotate and Scale refusing a curve's point; an e2e test (an Eraser drag across a circle and diagonally across a polygon, two circles moved, a pulled circle's front elevation on a sheet: two upright lines).docs/DEVELOPMENT.mdhas the property and fuzz runs.
Added (lane 23, curves, 2026-10-19) #
- A circle, an arc or a polygon is one curve (#3), as in SketchUp. Clicking its rim used to select one of its segments or one of its points, and Move on that bent the circle. Now:
- Select: hovering any segment highlights the whole curve; a click selects it and the status line says what it is, in your units: "Selected a circle (24 segments, radius 300 mm)", "an arc (12 segments, radius 1 1/2 in, 90 degrees)", "a polygon (6 sides, radius 2 in)". Shift and Ctrl add and toggle it whole; a window takes a curve when all of it is inside, a crossing box when it touches any segment; a click exactly on one of its points still selects that point.
- Move, Rotate and Scale carry it as one, alone or with other things selected: a circle moved, turned, mirrored or scaled evenly stays a circle with its new centre and radius; Ctrl copies, each copy a new curve. Moving one point of a curve on its own is refused, saying why and naming Edit > Explode Curve (SketchUp bends the curve; this is Sawhorse's one deliberate difference, ADR-0013).
- Drawing across a curve splits it: a line across a circle leaves two arcs on that circle (one line ending on a circle leaves it whole; two split it); a polygon splits into curves of straight segments.
- The Eraser takes a curve whole, on a click or across a drag, one undo step. Edit > Explode Curve turns the selected curves back into plain edges, one undo step.
- Offset of a curve, or of a region bounded by one, is a curve of its kind: a circle offsets to a circle about the same centre.
- Push/Pull a circle's, an arc's or a polygon's region and the curve becomes the rim of both ends of the solid: a click on a rim selects it whole, and rims follow the solid through moves, copies and components (keyed by face ids, like soft edges). The walls between a circle's or an arc's segments come out soft and smooth, so a pulled circle is a smooth cylinder (a polygon's stay hard). Pushed back flat, the circle is a curve in the sketch again.
- Centre: hovering a circle's, an arc's or a polygon's segment with a drawing or moving tool shows its centre (a small blue dot labelled Centre); moving there snaps to it, on sketches and on rims.
- Files:
.shzkeeps curves and rims with their ids (new optionalcurvesandnext_curvein a sketch,curvesin a B-rep;docs/format.md; files without them read and hash as before). A DXF'sCIRCLEandARCimport as curves, counted in the report ("3 curves came in as curves"). A SketchUp file's curves come in as plain edges, with one note saying why: openskp's parser does not say which edges make up a curve, in either file family, and Sawhorse does not guess (docs/skp-compat.md,docs/upstream/openskp-curves.md).
- Kernel:
crates/kernel/src/curve.rs(the curve entity, a solid's rims, their checks); a sketch settles its curves after every edit (split segments taken in, splits at junctions, polyline pieces for what lost an edge, an edge in one curve at most);Op::Draw { curve },Op::EraseCurve,Op::ExplodeCurve,Op::TransformSketch { curves }; outcomesDrawn { curve },SketchMoved { curves },SketchCopied { curves },CurveExploded; typed refusalsNoSuchCurve,NotACurve,CurvePoint; the validator checks every curve's chain, kind and circle; the view mesh names each edge's curve (edge_curve,curves) and picks carry it; inference names the centre of the curve under the cursor. ADR-0013. - Tests:
crates/kernel/tests/curves.rs(every rule, and the three finds below);crates/kernel/tests/curve_props.rs, a hostile property test (circles and polygons of 3 to 96 segments at radii from 0.1 mm to 9 km, arcs of 0.001 to 359.999 degrees, lines ending on a curve's point or a segment's middle, crossing a segment, crossing two curves, along a segment, erases, explodes, offsets, moves, turns, tilts, scales, mirrors, lifts, copies and arrays of whole curves and lone points, pushes; after every op the validator,check_model, exact undo and redo, the snapshot through JSON; thencheck_sequence); the fuzzer's lane-23 intents;crates/inference/tests/perf.rs(the inference hot path on 9,600-face models); vitest (src/lib/curves.test.ts: select, erase, move, scale, offset, the window and crossing boxes, the status line);e2e/curves.spec.ts(a circle drawn, clicked, moved by a typed distance, scaled from a grip, copied, split by a line, one arc erased, the other exploded; a polygon pushed and its top rim clicked; the Centre hovered and snapped to; every step undone and redone; saved and opened; a DXF's curves and the corpus's SketchUp circle imported). The corpus gains three SketchUp curve files (203 in all).
Fixed (lane 23 fix pass, found by the lane's verifier, 2026-10-19) #
- A thin band round a huge circle draws (the curve property test at 100,000 cases, seed 7303): a 9 km circle offset 0.07 mm inwards leaves a 3.84 m2 band between two rings of 247 million m2. The triangulator's area check took the band's area as the outer ring's less the hole's, each worked out only to its own size, so it read 2.3e-8 m2 off (5.9e-9 of the band, over the 1e-9 allowed) and the view could not be built, although earcut's triangles were exactly right. The net area is now one compensated sum over every ring at once, so it is right to the polygon's own size. Older than curves: any offset that thin, that far out, failed the same way.
- Holes that touch at a point triangulate (the fuzzer, seed 20267102, plane snapping on): a 700 m circle drawn round two slivers that share a corner could not be shown. earcut drops the shared point's second copy and covers one sliver, and its fallback bridged the holes one at a time, so the outline passed through the point twice the wrong way round and came out with a triangle of -80 m2. The fallback now joins rings that touch at a point into one ring first, decides every turn with exact arithmetic, checks every bridge it cuts, and never clips a triangle that another pass through one of its corners opens into; a point that is only a second copy of a used one is no longer forced into the mesh by splitting a wrong triangle. Also older than curves. No golden changed.
- Create Group from Slice reaches caps far along a tilted plane (the fix pass's own fuzz run, seed 20269807, plane snapping off): a sketch holds points up to 10 km from its origin, and the slice's sketch took the section's point as its origin; along a tilted plane through the world's origin a cap can lie 10.6 km from it with every point in the model's bounds, and the slice failed with "a coordinate is beyond 10 km" although the cap is drawable. The slice now moves its sketch's origin along the plane to where the caps fit, and caps more than 20 km apart along the plane, which no sketch can hold, are refused in their own words ("more than 20 km across"). Older than curves (the same sequence fails the same way before this fix pass, with the circle drawn as plain edges too); this run's seeds were the first to reach it.
- Tests: both shapes as triangulator tests and two property tests (thin bands round polygons up to 10 km across and 5 km out; two to four holes round a shared point, with or without a hole on an outer corner); the two fuzz sequences as named repros; the property find in
curves.rs; two section tests (a slice 10.6 km along a tilted plane drawn, one 27 km across refused); and a snapshot test that a saved curve or rim broken thirteen ways (points out of order or missing, radius, centre, start or sweep wrong, an arc marked closed, two curves on one chain, a stale counter, a missing point, id 0, a rim on edges that are not there, two rims with one id) is refused on open.
Fixed (lane 23, found by the curve property tests and the fuzzer, 2026-10-19) #
- Long slivers far out draw again: the triangulator's area check measured triangles with the robust predicate's values, which are only sign-exact, and summed a sliver's area as a fan of huge triangles either way; a 0.14 m2 sliver between a 9 km circle and its copy turned 1e-7 degrees read 1.2e-8 off and its correct triangles were refused, so the view could not be built. Areas are now worked out to their own size (exactly split products, a compensated sum). No golden changed.
- A hair-thin sliver's solid is not called self-intersecting: the edge leaving a tip 1.3e-8 rad wide, 4 km out, was tested from a rounded point that fell on the wrong side of the other side's wall. An edge from a point of a face's plane meets it nowhere else unless it lies in it, and is now tested only then.
- An extruded sliver's faces lie in their own planes: a face's plane was fitted to its points, and a sliver's Newell normal, 9 km out on a tilted plane, was 1e-8 rad off, so its own points read 5.6e-5 m off it. Extruding now gives every face the plane it is built in.
- An erase no longer heals an edge onto a point (found by the fuzzer): healing a vertex left between two near-collinear edges joined their far ends even when the new edge passed within the merge distance of another point, and the sketch was refused as invalid; the two edges now stay in that case.
- A curve bent by a repair becomes a polyline (found by the fuzzer): a tiny circle copied a hair over itself could leave a piece that ran out along the copy's edges and back but kept its circle, and the copy was refused. A piece that no longer fits its circle is now a polyline.
- Tiny solids far from the origin measure their volume (found by the fuzzer, also on lane 22's region moves): a solid's volume was summed about the world origin, so a 0.1 mm cylinder 6.6 km out, turned, measured 244 times its volume; volumes are now summed about the solid's own corner. The same fix for the section check's measure of how closed each half is (a 2.5e-5 m2 cap 9 km out read as open).
Added (lane 22, moving sketch geometry, 2026-10-19) #
- Move, Rotate and Scale move sketch geometry (#2): a circle, rectangle, polygon, arc or line not yet pushed into a solid moves like a solid, with the same inference, arrow-key locks, typed distances and angles, Esc and one undo step. "Can't do that. Sketch edges don't move yet." is gone. Selected (a region, edges, points) or clicked with nothing selected; mixed with solids, groups, components or section planes, everything moves together as one undo step.
- A point or an edge moves within its shape's plane and the edges beside it follow: one corner of a rectangle dragged sideways stretches its two edges and nothing else. A move pointing out of the plane is projected into it; one pointing straight out of it is refused, typed ("select the whole shape to lift it off"). An edge two regions share moves both.
- A whole shape moves anywhere: off its plane it goes into the sketch on the plane it lands on (or a new one), ready to push/pull, and a neighbour it shared an edge with keeps that edge.
- What it lands on joins it the way drawing there does (the same insertion code): coincident edges weld into one, crossings and touches split, an edge shrunk to nothing goes and its ends merge, and a move that would twist a region into a bow-tie splits it into two regions. Regions keep their ids when they only change shape.
- Rotate puts the protractor on the shape's own plane (an arrow key or Shift chooses another; a whole shape then turns onto a new plane). A turn by 0 or 360 degrees moves nothing and makes no undo step.
- Ctrl copies, and
x3//4make arrays, as for solids; a copy is independent geometry and welds onto what it touches. Scale scales sketch geometry too. - What moved stays selected where it went; Push/Pull's next target follows a region lifted onto another plane.
- Kernel:
Op::TransformSketch { sketch, points, edges, regions, xform, copy, count }andcrates/kernel/src/sketch_move.rs, onSketch::with_moved_vertices(redraws every edge touching a moving vertex with the insertion rules, thenrepairand region detection),with_segmentsandwithout_edges; outcomesSketchMoved { sketch, regions }andSketchCopied { regions }; typed refusalsNoSuchSketchPoint,NoSuchSketchEdge,LeavesSketchPlane(withNothingToMove,NothingSelected,BadCount,OutOfBounds,OutsideContext). ADR-0012. The plugin API's batches can hold the op (docs/PLUGINS.md). - Tests:
crates/kernel/tests/sketch_move.rs(27 tests: one per rule, translate, typed circle, corner, projection, shared edge, weld, split, merge, bow-tie, turns by 0 / 45 / 180 / 360 / 1e-4 degrees, lifts and returns, a lifted neighbour, an island, copies and arrays in and off the plane, push volumes, the snapshot and log JSON, refusals, groups, a mixed selection, scales and mirrors, and the property tests' finds replayed and pushed region by region);crates/kernel/tests/sketch_move_props.rs, a hostile property test (landings on vertices and on or within the merge distance of edges, turns by 0, 180, 360, -360, 1e-7 and 179.99999 degrees about the normal, axes in the plane and a skew axis, moves under and over the planarity tolerance off the plane, scales including mirrors and a thousandth, copies and arrays, on the ground and on tilted planes; after each op the model validates, undo and redo land exactly, every region pushes into a solid of its area times the distance, the snapshot opens to the same hash, rigid maps of a whole sketch keep it congruent, a whole sketch lifted leaves nothing behind; then the whole sequence throughcheck_sequence); the op-sequence fuzzer'sSketchMoveintents; a golden (sketch_move.json, WASM equal to native);.shzround trip (moved_sketches_round_trip); vitest for the tools' sketch subjects, ops, previews, selection and push target;e2e/sketch-move.spec.ts(a circle moved by a typed distance and by inference, turned 45 degrees, copied with Ctrl, every step undone; a rectangle's corner moved, the rectangle flat with its two edges following, pushed to exactly 336 cubic inches; a rectangle lifted 6 in and pushed there). On the final code the property test ran 300,000 cases (three fresh seeds at 100,000) and the fuzzer 160,000 sequences (100,000 with plane snapping, 50,000 without, CI's seed), all clean; the earlier rounds' finds are below. The runs are indocs/DEVELOPMENT.md.
Fixed (lane 22, found by the sketch-move property tests, 2026-10-19) #
A sketch region a rounding error from the merge distance pushes into a valid solid. The sketch merged points at 0.01 mm in its own frame and the solid measured them again in world coordinates against the same 0.01 mm: an edge 1.6e-17 m over it in the sketch was zero-length to the solid, and a corner a rounding error clear of another edge was a vertex on a face; the push was refused as a kernel bug (a debug build stopped). The sketch now merges at 0.01 mm plus the 1 nm noise floor (
SKETCH_MERGE), so what it keeps clears the solid's tests; the section slice welds to match. Seeds 2026102201..2026102203, kept incrates/kernel/tests/sketch_move_finds/.Two nearly parallel crossing edges no longer put a vertex at infinity. Their crossing was worked out by dividing by a cross product that rounded to zero; it now comes from the robust orientations of one edge's ends against the other, always finite and on the edge, and the sketch check refuses a vertex that is not finite or is beyond 10 km (before, only opening the saved file noticed). Seed 2026102213.
Regions far from the origin, and long slivers, triangulate. Moved and copied sketch shapes reach places drawing seldom did: a region 6 km out, slivers 10 km long between a 10 km face offset and its copy turned 1e-7 degrees. The triangulator's check summed products of absolute coordinates and lost more to rounding than it allowed (1e-9 of the area), refusing correct triangles, so the view could not be built; a section cap 7 km out measured its area 3e-7 short. The check now sums robust triangle areas, and ring areas are summed about the ring's first point, so rounding follows the shape's size, not its distance from the origin. A polygon is "near zero area" against its own extent now, not against its largest coordinate: a 17 micrometre region 5 km out (3e-10 m2) had been refused as having none. Fuzzer seeds 20268102 to 20268107, 20268201, 20268207, 20268208, 20268405 and CI's 20261011; six kept in
crates/kernel/tests/repro/2026-10-19-*. No golden changed.
Known (lane 22) #
- A circle, arc or polygon is still a chain of separate edges: a click on its rim selects one segment or point, and moving that bends the curve within its plane. Select the shape (click inside it) to move it whole. One curve per circle is #3 (done in lane 23, above).
[0.1.0-alpha.3] - 2026-10-19 #
A pre-release, v0.1.0-alpha.3; every change since alpha.2: v0.1.0-alpha.2...v0.1.0-alpha.3. The release notes: docs/releases/v0.1.0-alpha.3.md.
Release (the alpha.3 hygiene pass, 2026-10-19) #
- Version 0.1.0-alpha.3 in npm, Tauri (MSI version 0.1.0.3), both Cargo workspaces and the site's download links; the release notes in
docs/releases/v0.1.0-alpha.3.md. SHA256SUMS.txton every release:release.ymlgains a job that, after all three platform builds, downloads every file of the draft release, writes the SHA-256 of each (scripts/release-checksums.sh: one<sha256> <name>line per file, checked withsha256sum --strict -c, failing on a missing installer kind or a file not listed exactly once), uploads it to the same draft, and checks the uploaded copy names every other file.docs/SIGNING.md, the code signing policy: Windows installers to be signed by SignPath Foundation once approved, on artifacts GitHub Actions built from a tagged commit; the roles; what the app sends (nothing, unless you set up a render service or grant a plugin the network); uninstalling. Linked from the README and the site.- The Pages workflow passes
--allow-missing-releaseagain, for the window between the version bump reachingmainand the release being published. docs/LIMITS.mdsays in one line that the alpha.2 section-plane caveat is fixed, pointing at the lane-19c property tests, and gains the cut's measured time; the user guide says a face lying exactly on a plane counts as kept;docs/DEVELOPMENT.mdhas a release checklist.
Fixed (the alpha.3 fix pass, 2026-10-19) #
- A value typed right after a tool key goes to that tool. "P" pressed while a rectangle's edit was still with the kernel waits for it (Push/Pull must see the rectangle), so the switch runs later, outside the key's event, and React renders it at default priority. A key's own render ("6", at input priority) could run first, from the old state, and
activeRefwas reassigned from that render's tool id: the 6 and its Enter went to Rect ("Rect takes two sizes separated by a comma"). The keys and the Value Control Box now follow the idselectToolsets synchronously (toolIdRef), never a render's state. It turned the alpha.3 CI run red (move.specandcontainment.spec, flaky on a loaded runner);e2e/tool-switch.spec.tsforces the order (the kernel's reply held, then the switch, "6" and Enter in one task) and failed the same way before the fix. - Clicking a submenu after pointing at it no longer closes it. A submenu entry opened on hover and toggled on click, so point-then-click shut it; whether a fast click did depended on whether React had rendered the hover yet, and
plugins-ui.speclost Plugins > Everything > Ask Me twice on the same CI run. A click now opens it (Esc, a click outside or another entry closes it);src/components/TopBar.test.tsxand the spec point first, then click. - The alpha.3 notes said a default-style scene brings the grid back if you update it while the grid shows. It does not (the update saves the default style again, which a scene does not apply). The notes now say so;
e2e/grid.spec.tschecks every scene-and-grid sentence of the notes and of lane 21 below. The notes link todocs/with absolute URLs, since a GitHub release body resolves relative ones to dead pages (the alpha.2 release has two);src/releaseNotes.test.tsrefuses a relative link in the current version's notes.SHA256SUMS.txtis described as covering every other file on the release, the macOS.app.tar.gzincluded.
Fixed (lane 21, orbit about the point under the cursor, 2026-10-16) #
- Orbit turns about the point under the cursor, and that point stays put (#5). A middle-drag turned the view about the look-at point, which was wherever the last zoom or zoom extents had left it, so once zoomed in the model swung away while orbiting: the point under the cursor climbed or dropped ("moving on both axes"), and near the poles the polar clamp stopped the drag ("locks onto a face"). Now, as in SketchUp, pressing the middle button picks the pivot: a corner within 6 px or a point of an edge within 4 px of the cursor, else the face under it, else the ground under it, else the look-at point. The model turns rigidly about it (across about world +Z, up and down about the level right vector), so the pivot keeps its pixel for the whole drag: in the end-to-end test a corner zoomed in on moves 0.000007 px over 200 px across and 200 px down. A small crosshair marks the pivot while the button is held. The tilt stops 0.5 degrees short of straight down or up and the turn across keeps working there, with no lock; a drag back responds at once. Right-drag and Shift+middle-drag pan with the point under the cursor at the press, at its own depth (Shift pressed or let go mid-drag switches between orbit and pan); the wheel zooms toward the cursor with the same steps as before. After every move the look-at point is put back on the line of sight at the depth of the point the gesture held, so zoom extents, the standard views, the projection switch, the grid density, scenes and the Sheets' "use 3D view" read it as before.
- The view's own camera controller (
src/viewport/controls.ts) replaces three.js OrbitControls, which could not hold a picked pivot on screen; its maths is insrc/viewport/navmath.tswith unit tests (the pivot's projection identical before and after 2,000 random orbits of any angle, to 6e-15 in normalised device coordinates against a 1e-9 bound, in both projections; azimuth about +Z; no flip over the pole; pan and zoom holding the point under the cursor; the projections matching three.js's cameras). Touch keeps one finger to orbit (now about the point under it) and two to pan and pinch. The controller does not take pointer capture: a drag follows the pointer off the canvas and ends when the button is found released or the window loses focus.
Added (lane 21, View > Grid, 2026-10-16) #
- View > Grid and the Styles pane's Ground grid show and hide the ground grid (#4). The switch is the style's new
gridfield (crates/kernel/src/looks.rs,docs/format.md): one undo step, saved with the.shzand with each scene that has a style of its own, written only when off, so a file from before it shows the grid; it counts in the style's hash only when off, so every golden hashes as before. Choosing a style preset keeps the grid as it is. Hiding the grid hides its lines only; points on the ground still snap to grid steps.
Changed (lane 19c, the section cut rebuilt on the solid's own triangles, 2026-10-14) #
- The section cut is built so that the cap closes the half it caps, whatever the geometry (ADR-0010, rewritten). Lanes 12c to 19b each fixed a case where a face lying nearly on a section plane was classified one way and cut another, and each time the hostile property generator found the next one, 1 in 130,000 to 700,000 cases. The lane-19b verifier's: a box top with one corner poked 1.8 micrometres up (beyond twice its 0.65 micrometre bend), two n-gons larger than the top drawn on it, and a plane at the top as it was, facing down; the cut-away half kept 0.0251 m2 of the top with no cap, with plane snapping on and off, and on the lane-19 kernel too. Now:
- One sign per vertex. Every vertex's distance from the plane is worked out once; within 1 nanometre it is exactly zero, and zero counts as kept. Nothing else decides a side: the surfaces, the bend rule, the parallel means and the weak faces of lanes 12d to 19b are gone.
- The solid's own triangles. A face the plane splits is clipped along the triangles the solid's volume is measured by, by the classic table, each crossing worked out once for both triangles that share it. What the kept triangles leave open is then exactly the chords the cap is laid from, one to one; the kernel checks this on hostile solids under the tie rule's distances, with corners forced onto the plane, and under random distances.
- The cap from those chords. The chords are laid on the cap's planar arrangement with every end made a vertex once, and a face of it is material when its winding number is 1 or more; the ray cast into the solid that decided faces whose votes disagreed is gone. A planar face cut through still gives one chord between the crossings on its edges, so every golden hashes as before.
- What you see change: a plane laid on a face whose corners an edit moved more than a nanometre off it cuts the slivers beyond it, as the geometry is, where lanes 12d to 19b laid such a face on the plane. In the lane-19b property finds, a plane through a corner moved 0.06 or 0.22 micrometres into a face now has the whole face as its cap on both sides. The user guide says so.
- No triangle of a face stands off it. The lane's resumed property run (seed 2026102001, after 48,791 cases) found the cut-away half of a plane on a box's end face open by 3.1e-9 m2: a rectangle drawn across the face's edge, one corner pushed 1 micrometre into the box and another moved 74 nanometres and 0.88 micrometres along the face, no autofold. The side face's corners along that edge lay nearly in a line, and the tessellator clipped an ear 0.34 nanometres wide in the face's own frame whose corners lay 74 nanometres apart across the face: a triangle standing across its face that lay folded flat over the end face, so the plane's chords wound round it the wrong way. A face's triangles (
object::face_triangles, which the volume, the exports, the booleans and the cut all use) now have the diagonals of any triangle leaning more than 60 degrees off its face flipped wherever that lays it down; a face flat to rounding keeps its triangles exactly, and every golden hashes as before. Named repro2026-10-14-section-side-face-sliver-folded-over-the-plane. - Cap rings never cross.
check_sectionsnow refuses a cap whose edges cross, and the lane's own runs found three that did, each crossing the same way on the lane-19b kernel: a hole touching its cap's outer ring at a point of the outer ring's straight edge, which tidying dropped from the outer ring only (the rings of a solid's caps are now tidied together, keeping every point two of them share), and two caps clipped by another active plane, a hole the plane's line passes through and a ring the line crosses four times, clipped ring by ring into rings that ran along the line past each other's corners (such a cap is now cut again on a planar arrangement: the hole opens into a notch, the ring comes out in two pieces; a clip that leaves simple rings, as it always does for a convex cap, stands as before). Each is a named repro. - Faster. The cut reads each solid's vertices once and triangulates only the faces the plane splits: on the 13,562-face CC-BY office fit-out (48,612 faces once imported) a cut takes 0.3 to 1.8 ms instead of 54 to 57 ms (release, the development machine, the two kernels timed back to back, twice by the lane and twice again on its final code), with the same caps and hashes; the bookshelf's two planes 0.044 to 0.045 and 0.020 ms (were 0.033 to 0.037 and 0.025).
crates/kernel/tests/section_perf.rsmeasures it, andscripts/skp-op.mjswrites the op it reads from a.skp. - The checks.
check_sectionsholds every cut to two new invariants, its caps' area against the cross-section of the solid's own triangles worked out without the cut (testing::cross_section) and no crossing cap edges, and its closure allowance no longer has the faces' bend in it: 2 nanometres times the seam, plus a part per billion of the area. The property tests' independent cross-section is that function. On the final codeplanes_on_a_nudged_face_drawn_onran five times at 100,000 cases with fresh seeds and the whole property file once at 100,000, and the fuzzer ran 100,000 sequences with plane snapping on, 50,000 with it off and CI's 10,000; all passed. The runs on the lane's earlier commits, and what they found, are indocs/DEVELOPMENT.md. A unit test checks that the half a plane keeps and the half it cuts away share every crossing to the bit.
Fixed (lane 19b, section planes through poked and re-planed faces, 2026-10-14) #
- A section plane on a face whose corner was poked a few micrometres, with autofold, leaves both halves closed (ADR-0010, lane-19b amendment). The lane-19 verifier's first 100,000-case property run found it in about one case in 700,000, failing on the lane-18 and lane-19 kernels: a box with a circle and a rectangle drawn on a face, one corner of that face poked 2.5 micrometres out and another dented 1.4 micrometres in, and a plane on the face. The kept half lost the five facets around the poked corner (0.0235 m2) with no cap. One of those facets had a corner that the tie rule had put on the plane, yet the cut paired and directed its crossings by the face's stored plane, which no longer described where its corners were said to be, and ran that piece backwards.
- Every face is now cut by the distances its corners carry. Each face's pieces are exactly the chords along which the kept half clips it, so the cap closes each half whatever the tie rule decides (not in every case, it turned out: the lane-19b verifier found a box top poked beyond its bend whose cut-away half kept 0.0251 m2 with no cap, and lane 19c rebuilt the cut); a face whose corners' distances are not those of one plane through it, by more than a nanometre at its crossings, is cut along its own triangles. The lane-12 sort along the stored plane's line is gone; cuts that were right before give the same pieces, and every golden hashes as before.
- The parts of one face that an edit re-planed apart are one surface again. Faces that meet along an edge, face the same way and lie within 10 micrometres (the merge distance) of each other's planes are classified together, as the parts of a drawn-on face already were. This covers autofold's facets and a drawn-on face whose corner was moved without autofold. Before this rule, the lane's widened property tests found two such faces cut apart on the lane's own interim build (the lane-19 kernel passes both).
- The property generator for planes on nudged faces now also draws a fourth corner and a fourth stroke, and puts half its planes through a poked corner. Every find is a named repro, an asserted test and a seed in the regressions, and the runs are in
docs/DEVELOPMENT.md. No tolerance was loosened. scripts/cargo.shforwardsPROPTEST_RNG_SEEDinto WSL. Before this, a seed set in Git Bash never reached the property tests.
Fixed (lane 20, tidy, 2026-10-13) #
- A whole piece of furniture drawn as one closed solid is not a board. Corynth's coffee table 6 (one closed 16 x 24 x 48 in block) counted 128 board feet of 4/4, and the gondola's floor (0.39 x 98 x 150 in) 102. Three more kinds of part are now listed with their reason and not counted (no board feet, area or sheet; not nested, the nesting says why): a part thicker than any board and over 12 in both ways, solid or not (a coffee table, a carcass: 24 x 24 x 18 in); a solid thicker than any board with more than 30% of its box empty (a lamp, a stool); and lumber wider than 4 ft (no board is; mark it sheet goods if it is a sheet). A 2 x 12 x 96 board, a 1 x 48 x 96 sheet, a 6 x 6 post and a gusset still count. The Cut list's header says how many pieces are not counted and why. Kernel:
Uncounted::{WholePiece, Hollow, TooWide}and the sameUnplacedReasons; the cut list and nesting hashes of goldens holding such blocks changed (their document hashes did not). - Wording that said more than was true. The alpha.2 notes and this changelog said
1'-1-1/2"reads like1-1/2"; it reads as 13 1/2 in, as feet and inches should (tests now cover1'-1-1/2",1' 1 1/2",1'1.5"and ten more spellings). The SketchUp 2018 refusal's upstream issue is a draft, written and not yet filed (LIMITS and the .skp notes said "reported upstream"). The site's comparison calls OpenCutList free to download, open source (GPLv3) and donor-funded, not just "free", and is dated 13 October 2026. - Nothing points at a release that is not there. After the release, the docs still said 0.1.0-alpha.2 was only prepared and had no tag, gave the rpm a guessed name with a tilde (the published file is
Sawhorse-0.1.0-alpha.2-1.x86_64.rpm), told the reader to check the names "when it is published", described alpha.1's 0.0.1 files as current, and said the Pages workflow allows a missing release (it requires the published one). The changelog now has its released versions as sections, the README links the v0.1.0-alpha.2 release, andcheck-siterefuses a download outside thepackage.jsonversion's release, a file name without the version, a tilde-guessed name, and "not tagged" wording on any page. - Renders appear only for the render service itself. The health check took any 2xx answer, so a catch-all server (a static host, a router's page, a proxy's sign-in page) that answers every path with an HTML page showed the Credits chip and the Render pane for a service that could never render.
GET <url>/healthzmust now return the service's own JSON,{"service": "sawhorse-render", "version": ...}; anything else keeps both hidden, and Settings says the address answered but not as a Sawhorse render service. - No ellipsis in the Cut list table; a wider panel. In the 300 px panel a long part name, a size ("22 13/16" read "22 13/...", at Wide too), a large quantity and the notes under a name ("... · shap...") were cut off with an ellipsis, the reason a part is not counted showed only in a tooltip, and the Part column was about 35 px wide, so names broke inside words four or five lines tall. Now no cell of the table uses an ellipsis or clips. A name or a material wraps between words, and inside a word only before a "#", after a "_" or "-", or at a camelCase joint ("Agrupar" | "#8"); only a single token of 30 characters or more may break anywhere, as the last resort. A size wraps only between its whole number and its fraction, the fraction as one unit ("22" | "13/16"), and its column is never narrower than that unit (Qty is as wide as its largest count). The notes wrap between notes and words, and the reason a part is not counted is a line of its own under the row, wrapped as a sentence. The panel is 360 px wide by default and 300 px at the narrowest. Under 440 px each part takes two lines (its name across the table, then its quantity, sizes and material); from 440 px it takes one, with the Part column at least 120 px, and goes back to two lines wherever the Part column would be narrower or a cell would not fit. The panel widens with a Wide button in the Cut list (600 px when the window has room) or by dragging its left edge (arrow keys too, Home for 300 px, double-click for 360 px); the width is kept on this device, and the model keeps at least 420 px beside it.
Fixed (lane 19, the section tie rule, 2026-10-13) #
- A section plane lying on a face that was nudged and then drawn on leaves both halves closed in the case the lane-18 verifier found (ADR-0010, lane-19 amendment; the alpha.2 known limit; the lane-19 verifier then found a sibling with a poked corner, fixed in lane 19b). The lane-18 verifier's fuzz found it in about one of 130,000 sequences: a plane on a box's bottom face, the face tilted by moving one corner a micrometre, then a rectangle drawn across its edge, left the cut-away half without a cap (a 0.0313 m2 triangle open). The tie rule decided each face on its own, so the drawn part was laid on the plane while the rest of the face was not, and moved its corners off the side face's edge. Now every face with the same stored plane (the parts of a face that Draw, Imprint or Split Face made) is one surface, classified once for both halves; a surface on the plane is exactly on it, belongs to the half whose material is behind it, and the other half's cap is the face itself, closed along its own edges.
- A face within its bend of the plane is cut along its own triangles. A face planar only to within PLANARITY whose crossings could sit more than a nanometre off the line where it meets the plane (it lies within about its bend of the plane, or is bent a micrometre and nearly parallel) does not split along a line; its crossings were paired along their spread or along that line and could join the wrong two. The cut and the kept halves now clip such a face triangle by triangle, the tessellation the solid is measured by, so the cap closes each half edge for edge. Two more members of the family found by the lane's new property generator (a plane on a face nudged by 0.1 to 5 micrometres and drawn on, cut with snapping on and off) are fixed the same way and pinned in the property tests' regressions.
- No tolerance was loosened and every golden hashes as before.
[0.1.0-alpha.2] - 2026-10-13 #
Published as a pre-release, v0.1.0-alpha.2. The site's download links and these notes were corrected after the tag (the rpm's real name; the release named again).
Fixed (lane 16b, from the lane 16 re-attack, 2026-10-13) #
- Selecting all of 100,000 solids no longer holds the window, on any machine.
main's CI was red on it: the window paused 19 to 31 s on GitHub's runners (0.5 s on the development machine). Profiled under a 6x CPU slowdown and with the GPU emulated as on the runners, the time went to the highlight: it built 1,200,000 thick lines for the selected solids' edges and drew them every frame (8.1 s a frame emulated), recoloured every triangle and rebuilt the textured overlays on every selection or hover change, and the menus, the Outliner and the cut list made a key string for each selected entity. The faces' and edges' shaders now read the highlight from two state textures (a byte per face, a byte per solid) and a change writes only the bytes that change; past 20,000 segments the selected edges are drawn as the edges' own thin lines in the selection colour (thick lines as before below that). The view mesh's lookups (each solid's faces and edges) are built once per model change, in idle time. Select all then nothing at the limit: 5.2 s to 0.62 to 0.72 s at 6x slowdown, 8.6 s to 0.63 to 0.73 s emulated, and a frame with everything selected 8.1 s to 0.56 s emulated. - The end-to-end tests' responsiveness bounds hold on any machine. Each spec measures the machine it runs on (a fixed JavaScript workload, and one render of the scene) and states its bound in those units, between a floor of 1.5 s and a ceiling of 20 s that fails a freeze anywhere (
e2e/perf.ts, docs/DEVELOPMENT.md). An absolute 2,000 ms bound runs nightly on a dedicated runner when one is registered (nightly-perf.yml; it says why it skipped otherwise). - Guides, dimensions, tags, materials, scenes and section planes have model limits (50,000; 50,000; 10,000; 4,096; 1,000; 1,000; sheets keep 200 and 2,000 items each). A file of a few megabytes could list millions of them: 2,000,000 guides in a 5 MB
.shzcrashed the tab, 1,000,000 materials took the browser to 6.2 GB. The.shzreader now counts whatscene.jsonlists as it inflates, without building any of it, and refuses the file at the first element past a limit (the rest is never inflated): each of those files is refused in 15 to 45 ms, and the kernel's memory grows by the file and the few megabytes read before the refusal. A.skpis checked by what openskp read before it is mapped; an import, a scene and every edit are checked by the kernel (a typed refusal, nothing changed); a plugin batch is counted before it is sent and refusedtoo_large, as is a batch the kernel refuses for a limit. - A plugin package's file over 8 MB is refused by the size its zip declares, before it is inflated (it was inflated first, then refused).
Fixed (lane 18, section caps and the slice, 2026-10-13) #
- The section cut keeps every cap again, however thin (ADR-0010, lane-18 amendment). Lane 17 dropped a ring of the cut when its points, welded within 0.01 mm, left fewer than three corners, and with it real slivers 0.125 to 0.5 m long and a few micrometres wide (up to 2.4e-6 m2): the cut showed nothing there while the solid was cut, and the halves were open by that much. The cut, the fill, the halves and the exports now read every cap exactly as the plane cuts it.
- Create Group from Slice no longer depends on which way the plane faces, and never refuses a cap it can draw. What the slice can draw is one rule (
section::representable): a cap's rings with points closer than 0.01 mm merged the way the sketch merges them (a point near another point or near an edge), keeping three corners and some area. A 226 cm2 cap whose tip had edges of 10 and 1.5 micrometres was refused as "that shape is too small (under 0.01 mm)" with the plane one way and sliced with it flipped; it now slices both ways, its tip merged. Caps of solids a micrometre apart are merged where they meet, as the sketch merges them, so they slice together (the fuzzer found two boxes 1 micrometre apart whose slice was refused). A plane whose every cap is thinner than that says "the section cut here is thinner than 0.01 mm; nothing to slice" instead of refusing as if it cut nothing. - The property tests and the fuzzer check the rule: the slice covers every representable cap, refuses as too thin only when no cap is representable, and the caps' area is the solid's cross-section for every cap. The three finds of the lane-17 verification are pinned in the property tests' regressions and asserted exactly.
Fixed (lane 16 fixes, from the lane 16 verification, 2026-10-13) #
- The window stays responsive at the model's 100,000-solid limit. A plugin's two ordinary array ops landing exactly at the limit (a box, 999 copies, then 99 copies of all 1,000) left the document intact but froze the window for 46 to 54 seconds, took the browser to about 7 GB, and got the plugin stopped for not answering. The Outliner worked out its rows by filtering every list for every container (quadratic: 20 s) and drew a page node for each of 100,000 rows (20 s more); it now indexes the tree once and draws only the rows in view and a screenful either side (above 300 rows), with the whole list's scroll height. The Cut list draws its first 500 rows and more on request (the totals, exports, labels, Print and picking rows always cover every row), and the print report is built only when printing. Selecting all found each solid's faces and edges with a pass over the whole view mesh per solid (and a spread of a million edges overflowed the call stack); a selection's highlight is now one pass, worked out when the selection or the model changes, with the pointer's hover added on top. The scene graph's lookups (a solid's parent, a group's contents) are indexed once per graph. Measured in the production build: the longest pause is 0.55 s while the copies come in, and under half a second for each pane and for selecting all; the browser holds about 2.2 GB (
e2e/model-cap.spec.tsreplays the attack). - The plugin watchdog does not blame a plugin for the app's own pause: when the app's thread was held for more than three pings, a plugin's silence is counted from when the app runs again; one really stuck is still stopped 15 s later.
- Texture images are held to 128 million pixels in all (eight of 4096 x 4096), counted from their headers before any is drawn, as well as 256 MB: sixteen legal 4096 x 4096 images of one colour (a .shz of a few hundred kilobytes) took the browser from 480 MB to over 1.5 GB, and the 512-image limit allowed tens of gigabytes. Such a file is now refused with the reason; a SketchUp import leaves the images past the limit out, with a note. The viewport decodes images one at a time, each at most 2048 a side and all of them within 32 million pixels (a model of many large images draws each a little coarser; the file keeps them whole), and lets an image's pixels go when the model no longer holds it. The Materials pane's swatches are small copies (96 pixels a side), no longer the images themselves decoded whole.
Security (lane 17, plugin permissions, 2026-10-13) #
A review of every path by which data or effects cross between a plugin and the app, against what the enable dialog says (ADR-0009, lane-17 amendment). Every finding fixed, each with a test that fails on the old code.
- A plugin tool sees the model only with "Read the model". Pointer events used to carry the snap and the pick (solid and face ids, corner positions) to a plugin with only
ui. Withoutmodel.reada tool now gets the pointer and the eye ray,picked: null, andsnap: nullor the point of its own plane or locked line, worked out from the ray and its own values; the marker shows that point. - Saving in a browser without a save dialog asks first. A plugin's
file.savein Firefox, Safari or?io=basicused to download at once; the app now asks in its own dialog, naming the plugin, the file and its size. Names that would run when opened (.exe,.bat,.js,.html...) are refused.file.openwithout the person's click is refused at once (user_activation) instead of waiting forever, and a save, open or dialog nobody answers is given up after 5 minutes (timeout). netis checked by origin. The allowlist compared the host alone, solocalhostreached every local port. Entries are now origins (api.example.comis https on port 443;https://api.example.com:8443,http://localhost:3000; plainlocalhostis any port of it, and the dialog says so), and a wildcard on a public suffix (*.vercel.app,*.github.io,*.co.uk,*.com...) is refused. Breaking for plugins: a bare host no longer reaches other ports of it; listhttps://host:port.- The dialog says what
model.readallows: "and change the selection". A plugin that may write but not read hears only which op of a refused batch failed, not the kernel's reason (which names the model). - A plugin cannot pass for the app: its tool's status line and hint start with its name, and a plugin may not be named "Sawhorse" or "Sawhorse ...".
- No consent bypass in the page:
window.__sawhorse.plugins(which could enable a plugin with no dialog) exists only in development and test builds;npm run buildandnpm run site:checkfail a build that has it. Playwright runs against its own build with the hooks (scripts/e2e-serve.mjs). - A grant never grows by itself: it records the hosts the person saw, and shrinks when a plugin's files ask for less, so a permission dropped and asked for again shows the dialog again.
- Method, event, colour and inference-kind lookups use own keys only (
"constructor"was a colour). - A plugin's batch stops growing at its limit:
b.opthrowstoo_largeat the op past 2,000 or past 4 MB, instead of serializing a runaway loop's million ops for seconds (long enough, on a busy machine, for the watchdog to stop the plugin).
Fixed (lane 17, section slices, 2026-10-13) #
- Create Group from Slice and the section cut agree on what a cap is (ADR-0010, lane-17 amendment). One rule decides both: a ring is a cap's only when some edge is longer than 10 micrometres, it keeps three corners with closer points welded, and its area is over 1e-10 m2 per metre of the solid's size. A speck of a cap the cut used to show (4.8e-12 m2, a corner poking 4 micrometres through the plane) is no longer shown, so the slice's "cuts nothing here" matches what you see; a cap whose tip had three points within ten micrometres is now sliced into a closed face (it was left as an open loop while the app said its faces were ready to push). The slice draws the caps' own rings, so a cap bounded by another active plane closes too. Both finds from the lane-12d verification's long property run are named repros.
Fixed (lane 12d, from the lane 12c verification, 2026-10-13) #
- Section caps are assembled from the plane's arrangement, not chained. Every piece where a section plane crosses a face is now laid in a planar arrangement with the side its material is on (the Sketch tier's planar-graph machinery: the same robust predicates and face walk, at a tolerance that moves no corner); pieces are split where they cross or touch and merged where they coincide; each face of the arrangement is material when the pieces around it agree, and a ray cast against the solid decides when they do not; the cap is the union of the material faces, both halves are closed by it, and every ring comes out simple and closed by construction. Two finds of the lane 12c verification are fixed with it: a box sheared a micrometre and split near the plane lost its whole cap (a face lying within its own bend of the plane gave a piece that pointed the wrong way, and the head-to-tail chain could not close the ring; the kept half was 6.6% short), and a frame cut by a plane along the top edge of its hole lost the notch on the cut-away side (the hole's edge lay along the outline without meeting it at a node, so the cap was a plain rectangle; the halves were 24% short), with plane snapping on and off. A face lying within its own bend of the plane (a face is planar only to 1 micrometre) is now kept or cut whole, like one within a nanometre of it: a box with a top corner moved 0.3 micrometres up and in, cut through its other three top corners, otherwise left a dent no cap could close (found by the new property tests, which cut folded boxes, frames along a hole edge, solids touching at a corner, faces sheared or bent within a micrometre of the plane, planes through one to four vertices, nested holes and planes exactly on a face). Section fills, Create Group from Slice and the slice exports get the right polygons; every golden keeps its hash.
Security (lane 16, resource hardening, 2026-10-13) #
An audit of every way a file you open or a plugin you run could make the app run out of memory, hang, or stop working; every finding fixed, each limit checked where the work it bounds starts, and listed with its reason in docs/LIMITS.md.
- Plugin messages are measured before they are read. Every message between the app and a plugin is serialized once, by its sender, into one buffer handed over without a copy; the receiver checks its size against a budget (4 MB; 34 MB for
file.saveandfile.open, 12 MB fornet.fetch) before reading anything in it, then reads the values with every limit applied before anything is allocated (ADR-0009, amended). A plugin can no longer make the app hold 400 MB with onestorage.set, copy a 1.5 GB buffer behind a 1-byte view, loop the app over a sparse list of length 2^32, or pass the sandbox's own checks and change its data afterwards. A request or an answer that does not fit is a typed refusal ("too_large") that settles the plugin's call, never a dropped message and a plugin waiting forever. - A plugin cannot keep the app busy. At most 300 messages a second (ten seconds' worth in one second stops it), 10 batches a second, 64 requests, 4 batches, 4 downloads, one file dialog and one prompt waiting at once, and a quarter of every second of the app's time; a plugin over these is slowed with
"busy"or stopped and reported. Stopping a plugin now drops its queued batches, closes its dialog and cancels its downloads. Stop is in the Plugins pane whenever a plugin runs. - Plugin storage, panels, dialogs and the network have totals, not just per-value caps: 1 MB of stored data for all plugins in a browser and 1 MB in a document (measured without building the text), a panel budget (5,000 table cells, 256 K characters, 4 images of 512 KB, images read from their headers and at most 2048 x 2048 pixels, no SVG), prompt and confirm text refused when over length instead of cut,
net.fetchanswers refused on their declared size or cut off at 10 MB, 50 MB a minute. Log lines and the error the Plugins pane shows are cut. - Plugin packages: file names that are a drive, a device, an alternate stream or end in a dot or space are refused, so are names that differ only in case and any file whose bytes are not the size and checksum its zip declares; a desktop install is written to a staging folder and swapped in (a failed install keeps the old version); a folder is measured before it is read; a module over 4 MB (16 MB in all) is refused unparsed, and at most 20 problems are listed (a module of 100,000 forbidden names was 100,000 scans of itself); a package over 256 KB is parsed and digested in a worker, so installing one, and starting with it installed, no longer freezes the window for seconds.
.shzfiles are read within caps. At most 2,048 entries, no name twice, no shared compressed bytes; each entry refused by its declared size and ratio before it is inflated, inflated at most one byte past its declaration, and required to be exactly that size (a 2 MB file declaring 2 GB is refused in milliseconds; one lying smaller stops one byte past the lie);scene.jsonparsed straight into the model's types; texture rows counted and checked for repeats before any image is read; names, coordinates and cameras checked; components counted along their definitions before anything is derived (thirty definitions each holding two copies of the next, a billion solids from a few kilobytes, are refused at once).plugin-data.jsonis written and read by the kernel with the rest of the file; the app never unzips a user's file.- Imports are read within budgets. 1,500,000 faces, 3,000,000 points and 50,000 objects per file, 5,000 lines and curves; glTF accessors checked against their buffers before allocating (a count of 2^31 no longer traps the kernel) and a short face-label list no longer reads past its end; glTF node trees and 3MF component trees counted, not walked again per path; 3MF read through the same archive checks, each model part inflated once; DXF read without copying its text; SVG paths capped; a sketch takes all of an import's lines and curves in one pass, its regions found once (5,000 lines took 35 s in a test build, half a second now); a SketchUp zip's directory checked before openskp inflates anything, groups counted as they are expanded, and texture images too large for the kernel left out with a note instead of refusing the whole import; a file is measured before it is read.
- The model has limits (100,000 solids and meshes, 100,000 groups and instances, 20,000 definitions, 5,000,000 faces, 10,000,000 points, 20,000 edges per sketch, 256 MB of textures and 4096 x 4096 pixels per image), checked before every edit commits, and before an array or copy makes its copies; a plugin batch is held to 2,000 ops and a work budget; an op sent to the kernel is refused unread over 256 MB (a batch 32 MB).
- Undo history costs what changed. Solids, meshes and sketches are shared between the model and its undo steps until they change (each edit used to copy the whole model twice), the history is held to 512 MB, the log hash is kept as ops are logged (every answer used to serialize the whole log), and a solid's self-intersection check and a sketch's edge checks run once per change, through a grid instead of every pair (a 20,000-triangle shell used to be a billion comparisons per edit; classifying the shells of an import was quadratic in the shells).
- A kernel failure no longer loses the session. A kernel bug or running out of memory in the middle of an edit (a WebAssembly trap) used to leave every later request refused and Save broken until reload; the app keeps the document's history, starts a fresh kernel, rebuilds the document (undo included) and says so. A request that runs too long (an import or open over 3 minutes) is handled the same way, and Cancel stops a long import or open. A fresh kernel that fails while rebuilding is replaced in turn; a history that fails twice gives way to a new model, with the reason; past three restarts in half a minute the kernel is given up on and every request is refused at once, never left waiting.
- Autosave never blocks the start. It keeps at most 64 MB of history (and says when a model is too large for it); what it finds at start is set aside before this session saves, so the first edit no longer overwrites an unanswered offer; a record it cannot read, or one too large, is offered for discarding and never loaded. Save, New and Open clear it, and a model still as it was saved or opened keeps none.
- Saving on the desktop never leaves a half-written file: written beside it, synced, read back and compared, then put in place, the previous file kept as
<name>.bak(src-tauri/safe-save); everywhere, the kernel reads every.shzit writes back through its own reader before handing it out, so a file that would not open is never written over a good one.
Fixed (lane 12c, from the lane 12 re-verification, 2026-10-13) #
- Section cuts through a folded solid are exact. Where a section plane passes a vertex at which the surface crosses it twice (a box with part of it moved and folded, a face lying on the plane touching a fold at a corner), the cut's pieces meet four at a time and the cap chain could run one backwards: the cap folded over itself or vanished and the kept halves did not make the whole (three finds of the long fuzz with plane snapping off, seeds 20261803, 20261904, 20261907). The cap is now traced head to tail, taking the leftmost way on at such a vertex and splitting rings where they touch, so every cap ring is simple; the section fill, Create Group from Slice and the exports get the right polygons. The fuzzer now also checks that no cap ring passes a point twice and that each half is watertight (its clipped faces and its cap close,
Model::kept_part). - A pending fuzzer find no longer breaks everyone's tests: the fuzzer writes it to the gitignored
crates/kernel/tests/repro/pending/, which the replay test never reads (apending-*.jsonleft intests/repro/is skipped with a warning);tests/repro/README.mdsays how to promote one. A find made with plane snapping off records"plane_snap": falseand replays that way. - No render-service request when none is set: a development build no longer falls back to the local service's default address, so with no service configured the app asks nothing and logs no refused connection; with one configured it asks once per start (React's development double mount shares the request).
- Sheet items are picked by what they draw: a dimension, a label, a line or a rectangle's outline takes a click only on its lines, text and arrowheads, a viewport, a table or an image anywhere in its frame, the topmost first, and a selected rectangle or label anywhere in its box. A dimension's bounding box no longer steals clicks inside a viewport.
- A viewport keeps its scale through Isometric: sending it to Isometric (or a perspective camera, or a scene made perspective) remembers the scale it had (
ortho_scalein.shz, optional), and going back to Top or Front gives it back. - Dimensions in an isometric or perspective viewport read the model: an aligned dimension the true length, an angle the true angle, a radius or diameter the true circle; horizontal and vertical ones read "NTS". Never a foreshortened length.
- Two quick column ticks on a cut-list table keep each other: the second built its column list from the sheet as shown and dropped the first; it now builds on the edit still on its way, as the pane's other fields do.
Added (lane 15, alpha.2 readiness, 2026-10-12) #
- Cut list and nesting from parts that are not solids. A group or component instance whose faces are not a watertight solid (most hand-made SketchUp furniture) is now a part: the cut list first tries a heal (gaps under 0.1 mm welded, inconsistent faces turned, isolated slivers dropped), and if the faces still do not close it sizes the part from the minimal box around them (T x W x L, grain along the length unless set) and flags it not solid (sizes from bounds) in the pane, the CSV, the report and its PDF, the labels and the nesting booklet. Board feet, the sheet reading and the nesting use that size. Faces outside any group are still never parts; the pane counts them ("312 faces outside parts") and Make parts from loose faces (kernel op
group_loose, one undo step) puts each edge-connected piece into a group of its own. - Include per part (
set_include): untick a row to keep it listed but out of the totals, the labels and the nesting; saved with the model, hashed only when set. - Stock math: nominal versus actual. Every stock in the library has a nominal thickness (what the yard calls it) and an actual one (what it measures). The built-in library now carries the thicknesses a yard sells: "3/4" plywood 23/32 in, "1/2" 15/32, "1/4" 7/32; Baltic birch 18 and 12 mm; 4/4 boards 3/4 in S4S (was 13/16), 5/4 1 1/16, 6/4 1 5/16, 8/4 1 3/4, 12/4 2 3/4. The Stock dialog has Nominal for sheets and boards and Actual thickness, filled in from the nominal until you type over it (your supplier's 3/4 ply at 0.709 in); editing a stock without touching a size keeps it exact (18 mm stays 18 mm). A model saved with its own edited library keeps it as saved.
- Board feet on the rough thickness. A lumber part's board feet are counted on the nominal thickness of the board it comes from (a 3/4 in part from 4/4: 1 in), times its finished width and length; the table still shows finished sizes. The pane (hover T), the CSV (new last column Board feet on), the report and the PDF say so. The user guide's bookshelf is now 25.33 board feet (was 18.99, the finished volume).
- Fractions typed every way. Every length field reads
1-1/2",1 1/2,1.5",1½,1 1/2''and1.5 inchesalike (1 1/2 in), and feet with a fraction of an inch,1'-1-1/2",1' 1 1/2"and1'1.5", alike (13 1/2 in) (parser edge-case tests). - Soft, smooth and hidden edges (ADR-0011). The Eraser now does what its hint says: Ctrl softens and smooths the edges it is clicked or dragged over, Shift hides them, Ctrl+Shift unsoftens them (one undo step; nothing erased; hovering an edge says what it is). Soften edges in the Styles pane softens and / or smooths every edge of the selected solids whose faces turn by at most an angle (20° rounds a 24-sided cylinder, its rims stay sharp), one undo step; Soft and hidden edges in the Edges list draws them dashed. A soft edge is not drawn as a line except where it is a silhouette; across smooth edges the shading is continuous (unlit and with shadows). Flags follow their edges through moves, copies, pushes and every copy of a component; saved in
.shz(optionaledge_flags); hashed only when present, so every older document keeps its hash; carried into GLB (smoothed normals), OBJ (smoothing groups) and left out of SVG drawings. Kernel opsset_edge_flagsandsoften_edges; the fuzzer drives both and checks that every flag sits on an edge that exists. .skpimport: soft, smooth and hidden edges come across per edge (the private round slab's 24 side edges arrive soft and smooth); a definition placed once comes in as a component when someone named it (a "Leg"), as a group when its name is SketchUp's own (Group#3,Component#7); an empty file (a blank template) opens as an empty model in the file's units and style instead of being refused.- Renders only when they can work. The Credits chip and the Render pane are hidden unless a render service is set in the new Edit > Settings… (saved on this device; a development build also takes
VITE_RENDER_SERVICE_URL) and answers its health check (GET /healthz) at startup or when the address changes; otherwise one Settings line says why ("Renders are off: no render service is set."). A first run shows nothing about credits. Render images are fetched into memory so a service set at run time works under the page's security policy. - A truthful public surface. The README describes what is built today and lists what is not yet (
.skpexport, fillet and chamfer, copy and paste in place, Back and Bottom views, text and radius dimensions in the model, signed installers, render credits). Newdocs/LIMITS.md(measured import times on real SketchUp files, the hard limits, the.skpversions openskp 1.3.0 refuses) anddocs/upstream/openskp-2018-parse.md(a drafted upstream issue). The site's landing page opens with a one-minute silent demo (a bookshelf, the cut list, nesting, the PDF; WebM under 4 MB, recorded byscripts/record-demo.mjs), a dated comparison with SketchUp Free and SketchUp with OpenCutList, and a paragraph on other free options (IngeTrazo, Hew, FreeCAD, OpenCutList);check-siteholds the video, its poster and the comparison to their caps and words. - Public CI fixtures: five real SketchUp 2023 furniture models by Corynth (CC BY 4.0, unmodified,
tests/fixtures/skp-ccby/withATTRIBUTION.md) run in CI throughe2e/skp-ccby.spec.ts: each opens with no error and lists its parts in the Cut list (benches 3 after Make parts from loose faces, coffee tables 10, cupboard 4, desk 1, side table 1; the open ones flagged). They are test inputs only, never in the app, the installers or the site.
Changed (lane 15, version 0.1.0-alpha.2) #
- The site's comparison on a phone is a card per row with each answer under its product's name, instead of a table that scrolled sideways and hid the third column.
- Version 0.1.0-alpha.2 in
package.json(and its lock),src-tauri/tauri.conf.json(MSI version 0.1.0.2), thecrates/workspace and the desktop crates (with their lock files, checked--locked). The site names the v0.1.0-alpha.2 installers;check-site --online --allow-missing-release(used by the Pages workflow until the tag landed; it checks with plain--onlinesince the release) lets links into an unpublished release through and still checks a published one. Release notes:docs/releases/v0.1.0-alpha.2.md(what is new since alpha.1, what is not yet, known limits, the click path past the unsigned-installer warnings on Windows and macOS). Taggedv0.1.0-alpha.2and published as a pre-release on 2026-10-13.
Fixed (lane 15 fixes, from the lane 15 verification) #
- A plugin's console no longer opens with a false warning. In Edge and Chrome a worker's global object carries the constants
TEMPORARY(0) andPERSISTENT(1), which no script can delete; the sandbox reported them as globals it "could not remove", so every plugin's Developer console began withsandbox: could not remove TEMPORARY, PERSISTENT. A plain number, string or boolean held as data reaches nothing and is no longer reported; anything callable or an object that survives still is. The sandbox spec now checks the real worker's console is clean. - The fuzzer's section check measures both sides the same way. A section's kept volume integrates each face over its stored plane, while a solid's volume sums its tessellated triangles; a face may sit up to the 1 µm planarity tolerance off its plane, so the two differ by up to that times its area. A component copy squashed to a quarter and stretched to 12 m (fuzz seed 20261802, plane snapping on) had faces 0.5 µm off their planes, and the halves, which made the plane-measured whole exactly, missed the tessellated one by 3.4 ppm. The check now holds the halves to the whole measured their way (1 ppm, as before) and that whole to the tessellated volume within planarity times area. Repro kept.
- The site's comparison is right about SketchUp Pro billing: billed monthly or yearly (Trimble's plans page on 12 October 2026 offers both), not "paid yearly";
site:checkholds the row to it. - The Stock dialog lists actual thicknesses as they are: 23/32, 15/32 and 7/32 in plywood read "23/32 in actual" and so on (they read 3/4, 1/2 and 1/4 in, rounded to the cut list's 1/16 in, so the nominal-versus-actual difference showed only in the Edit form). A stock's size everywhere (the list, the nesting booklet) gives its thickness at the saw's precision: 1/64 in, 0.001 in or 0.01 mm.
- Real furniture gets an honest cut list, not absurd totals. On the verifier's real files a bench drawn as one piece of open faces counted 126 board feet (three benches 553, the desk 661, a gondola 8,142), and a flat face ("Rodeo#2", no thickness) was listed as sheet goods and added a 4 x 8 sheet. Two kinds of part are now listed and flagged but not counted (no board feet, area or sheet, greyed, the reason in the row, the CSV, the report and the labels) and reported by the nesting with that reason instead of "no board in the stock library is this thick": a flat face (thickness at most 0.01 mm), and open faces thicker than any board (16/4, 4 in, and every board in the library), almost always a whole piece drawn as one group. A closed solid always counts as drawn. Kernel:
CutRow::uncounted(flat,not_a_board),totals.uncounted,UnplacedReason::FlatandNotABoard; hashed only when set. On the CC BY fixtures: 3 of 3 benches, the desk, the side table, 9 of 10 coffee tables and the cupboard's carcass are not counted, and no file adds a sheet. - Faces outside parts say where they are. Make parts from loose faces acts on the open context, but the cupboard's 171 and the gondola's 40 loose faces sat inside assemblies, so the link refused. The cut list now splits the count (
totals.loose_here,totals.loose_places): the link shows only for faces here; otherwise the line says where ("171 faces outside parts (in …)") and offers to Open that group, after which the link takes them. When every face in the file is loose (benches.skp, 500 faces), the empty list says so and what to do instead of only "No parts yet". - Tooling, from the verifier's friction:
FUZZ_REPRO_DIRsends a failing fuzz sequence somewhere other thancrates/kernel/tests/repro/(forwarded into WSL byscripts/cargo.sh;fuzz-shards.shpasses it on), so a long local run leaves the checkout alone;SAWHORSE_PRIVATE_CAPTURES=offmakes the private-fixtures spec take no screenshots;scripts/serve-site.mjsserves.webmasvideo/webm(and.mp4,.pdfby their types) as GitHub Pages does.
Fixed (lane 15, from the lane 10 and 11 verifications) #
- The grid follows the style's background: a dark Background in a light theme (or the other way round) no longer hides the grid; its lines are drawn a little towards black on a light background and towards white on a dark one.
- A face lying on a section plane is never split however slightly it is tilted: a face with every corner within a nanometre of the plane goes wholly to one side, like a parallel one. A Follow Me sweep along an edge a hair off square left a face tilted 5e-11 with three corners exactly on the plane, and the reversed plane kept the notch between them as a sliver with no cap (found by the CI fuzzer once the new edge ops shifted its sequences; repro kept).
- A stretched copy of a component is checked where it is: whether a component's open meshes heal closed was decided once, on the definition; a copy scaled up has wider gaps (0.05 mm in the definition, 0.11 mm in a copy stretched 2.25 times), so a copy that is not moved, turned or mirrored but scaled is now healed on its own and flagged "not solid" when it stays open (found by the fuzzer; two repros kept).
- A SketchUp file with a section plane says what came in: the planes go in after the import, in the same step, and the report described the last plane added ("Imported x.skp.", nothing counted); it describes the import again.
- Edges follow the style's background too: Shop drawing (white paper) on the dark theme drew the theme's light edges on white, so the model all but vanished; edges that would not read on the style's background are drawn in a near-black ink on a light one and a near-white one on a dark one.
- Painting what already shows the material is not an edit (no undo step; the status line says so). Painting a group over parts with paint of their own says how many faces kept theirs and points at the new Edit > Clear Paint (kernel op
clear_paint: paint off what the selection holds, so what holds it shows; one undo step; component parts are cleared from inside the component). - Slider arrow keys are one undo step: a run of steps on a Styles slider commits once the keys stop (0.7 s) or the slider is left; a click that does not move it is not an edit.
- The material editor stays in step: Enter commits once (it used to commit, then commit again on the blur), an unchanged field commits nothing, and every field follows the material when it changes elsewhere (undo, a rename). Position texture's tooltip says why it is off, or what it does.
- Texture handles are at least 14 px across on screen however far out the view is, and a click anywhere on a drawn handle takes it.
.shzthumbnails are WebP (JPEG where the browser cannot write WebP), at most 100 KB; the writer leaves out anything larger. Older files' PNG thumbnails still open.- No shadow-map warning: three 0.186 removed PCFSoftShadowMap and warned each time shadows were first drawn; the renderer asks for PCF directly (the same picture).
- Plugins: the sandbox never reads a global it removed (no TEMPORARY / PERSISTENT deprecation warnings); storage keys such as
constructor,toStringand__proto__work like any other; every refused call rejects with a typedPluginApiError(code: "permission", "invalid", "send_failed" ...), including a request that could not be sent and invalid parameters, which used to throw at the caller;events.on(...)returns an unsubscribe function whosereadypromise rejects for an event the plugin may not have or that does not exist.plugin:checkprints paths relative to where it ran (absolute for a folder elsewhere, never../../..), rewrites tsc's file names the same way, and type-checks a plugin project with its owntsconfig.jsonwhen it has one. - Tool keys after a pane's select: a select picked with the mouse gives the keyboard back to the model, so the next R or P picks the tool (a select worked from the keyboard keeps its arrows).
Added (lane 12, section planes and drawing sheets, 2026-10-12) #
- Section planes (ADR-0010): the Section tool (rail and Tools menu, no key) lays a plane on any face with a live preview, square to an axis with the arrow keys, reversed with Alt, placed with a click or Enter, active, in the open group or component. One active plane per context; a plane in a group cuts only what the group holds, and a solid is cut by every active plane around it. The view clips exactly and fills the cut from the kernel's own polygons (holes stay holes), outlined in the style's section colour. The Outliner lists planes (Activate / Deactivate Cut, Reverse, Create Group from Slice, Export Slice SVG / DXF, Hide, Rename, Delete); Move, Rotate, Scale and copies carry them. Create Group from Slice draws the cut's outline as faces in a new group. File > Export > Section slice (SVG filled, DXF closed polylines, 1:1 mm).
- Styles: the Sections switches are live (Section cuts, Section planes, Section fill), with the fill colour, the cut line colour and width; also in the View menu. Scenes remember which planes are active and hidden.
- Drawing sheets: a Model / Sheets switch, sheet tabs, a sheet canvas (zoom, pan, fit, grid snap) and the Sheet pane. Paper Letter, Legal, Tabloid, A4, A3, A2 or custom, portrait or landscape, margins, inches or millimetres, a grid, how lengths are written (fractions, decimals, feet and inches, millimetres) and a title block (title, project, sheet n of N, date, scale, drawn by, revision). Tools: viewports (a scene, a standard view or the 3D view's camera, at 1:1 to 1:48 or an architect scale from 3" to 1/4" = 1'-0"; isometric and perspective marked NTS; captions that follow the scale; Fit scale, Recentre, Alt+drag to slide the drawing), dimensions (horizontal, vertical, aligned, angle, radius, diameter; snapped to the drawing's corners, ends and middles; the model's true length at any scale; attached to model points, so they follow a new scale or scene), labels with leaders that follow the drawing, the cut list as a table (live, columns of your choice), images, lines and rectangles. Every edit is one undo step.
- Exact drawings: viewports draw the kernel's vector hidden-line drawing of the model (no raster: a box face-on is four lines), cuts honoured and their faces filled; profiles heavier; hidden lines dashed on request.
- Sheet exports: PDF (vector, the real paper size; all sheets as one PDF), SVG (paper units), DXF (paper size in the sheet's units; lines, outlines and text on a layer per kind; dimension values as text), PNG at 150 and 300 dpi, and Print through the system dialog at 100% (File > Print Sheets... for every sheet). Canvas and files draw the same laid-out picture, so what you see is what prints.
- Files:
.shzkeeps section planes, scenes' section state, the style's section settings and sheets (docs/format.md; optional fields, version 1)..skpimport brings SketchUp's section planes in where they were drawn, switched off with a note (openskp does not say which was active;docs/skp-compat.md). - Kernel:
crates/kernel/src/section.rs(planes, the exact cut with caps and outline, slices),paper.rs(scales, what a dimension measures, lengths on paper),sheets.rs(sheets and items as ops);crates/export/src/drawing.rs(hidden-line removal),sheet.rs(one layout for every output),table.rs,sheet_dxf.rs,section.rs(slice exports);crates/inference/src/flat.rs(snapping on a drawing). Opsadd_section,place_section,flip_section,set_section_active,rename_section,set_section_hidden,delete_section,move_sections,copy_sections,slice_to_group,add_sheet,set_sheet,delete_sheet,move_sheet,add_sheet_item,set_sheet_item,move_sheet_items,delete_sheet_items,order_sheet_item. Everything hashed only when used, so every older golden keeps its hash. - Tests:
crates/kernel/tests/sections.rsandsheets.rs,crates/export/tests/drawings.rs(hidden lines, scales: 30 in at 1:8 is 3.75 in, at 1/4" = 1'-0" 0.625 in; dimensions, tables, every export, 40 random sheets),crates/inference/tests/sections.rs; goldenssection.jsonandsheet.json(WASM == native); Vitest for the section maths and tool, the sheet geometry, the pane, the PDF (dimension strings in the file), SVG and PNG;e2e/sections.spec.tsande2e/sheets.spec.ts; the fuzzer drives every section and sheet op (20,000 sequences clean; three section repros kept).scripts/capture-lane12.mjsis the lane-end walk-through.
Fixed (lane 12) #
- The title block's Today's date wrote the UTC date, a day ahead on a Pacific evening; it now writes the local date.
- Two fields of the Sheet pane committed in quick succession (Enter in Title, then Project) no longer undo each other: an edit still on its way to the kernel is the base for the next one.
- A viewport's caption follows its view and scale when Sawhorse wrote it; a caption you typed stays.
Fixed (lane 12, after its independent verification, 2026-10-12) #
- Dimensions went stale when the model changed: widening a 30 in cabinet to 36 in left its sheet dimension saying 30", its line 3 3/4 in beside a 4 1/2 in outline. A dimension placed on a solid's corners, edge midpoints or edges now follows the solid through push/pull, Move, Rotate and Scale (ADR-0010, amended): each end keeps an anchor naming the solid and the faces that meet at the corner, found again on every layout. Leaders on a solid follow it too. An end on a sketch, a mesh or a section cut, or whose corner an edit took away, stays where it was placed, and the Sheet pane says which. Saved as optional
anchors(docs/format.md); older sheets keep their hashes. - A stale kernel from a shared cargo target dir: two checkouts sharing one could hand one the other's wasm kernel ("Finished" in two seconds, then
golden:wasmfailing with "unknown variantadd_section", and a build that would have shipped the older kernel). Every checkout now gets its own target dir (scripts/env.sh, thejustfile), and the kernel carries a stamp of the checkout that built it:npm run wasmrebuilds once by itself on a mismatch,npm run golden:wasmandnpm run buildrefuse another checkout's kernel (scripts/wasm-checkout.mjs,npm run check:wasm). - A click on a dimension with the Select tool (no drag) changed its stand-off when the click was off its line; it now only selects it.
- A dimension that measures nothing in its view said
?in a standard view but0"in a scene with the same camera (float noise); lengths under the kernel's merge distance (10 µm) now read?everywhere. - Exporting the slice of a plane that cuts nothing (laid on a face, keeping the side the whole solid is on) now says why and what to do, instead of only "Export refused: nothing to export".
- A section plane a hair off a solid's face (1e-13, after a copy with a squashing scale) cut it inconsistently: the cap skipped the face as parallel while the kept volume split it. A face the cut treats as parallel is now wholly on the plane or on one side (found by the long fuzz run; repro committed).
- The slice's DXF is documented and tested as what it is: one closed LWPOLYLINE per outline and per hole, never loose LINE entities, so a CAM program sees closed parts.
Security (lane 11, after its independent verification, 2026-10-12) #
- A plugin without
netcould reach the network:FontFace(...).load()inside its worker fetched any URL (the verifier sent the model's labels, volumes and bounds to a local listener), andwebkitRequestFileSystemSyncgave every plugin an origin-wide file system to write to. The sandbox now cuts the worker's global object to an allowlist (the language's built-ins and web APIs that reach nothing) instead of removing a list of known names, so these and any API a later browser adds are gone;navigatorkeeps only facts, andURL.createObjectURLis removed. - The browser build had no content security policy. It now has one (
index.html: scripts from the app andblob:only, fonts from the app anddata:only, no objects), and each plugin's worker is started from ablob:URL so the page's policy governs it, in the browser and on the desktop: a plugin that got past the other locks still could not load an outside script or font. - The source check could be fooled: it guessed regex versus division, so a regex holding a quote after
if (...),throw,deleteorexport defaulthid animport("data:...")orimport("http://...")fromplugin:check, the app and the sandbox. Plugin sources are now parsed with acorn as ES modules and checked on the syntax tree; a module the parser cannot read is refused. - A grant was keyed by id alone: a zip with the id and permissions of an enabled plugin, even one replacing a bundled sample, started at once with the old grant. A grant now belongs to the files enabled (their SHA-256): other files under that id are off until enabled again, and the dialog names the sample a plugin replaces. Bundled samples keep their grant across app updates, unpacked folders across Reload.
Fixed (lane 11, after its verification) #
- After Enter in a plugin panel's field, or ticking a box in any pane, tool keys ("r", "p") went to the control. Enter that commits a panel field now hands the keyboard back to the model, and a checkbox, radio, range or colour picker keeps only the keys it uses.
npm run plugin:check -- <folder>type-checks a plugin anywhere, not only underplugins/.docs/PLUGINS.md: the first plugin's$schemaworks outside this repository; whatplugin:checkdoes outsideplugins/; whereplugin:packwrites; Remove (session and unpacked plugins) beside Uninstall; the three locks and the list of what a plugin's global object has; grants and updates.docs/DEVELOPMENT.md: driving the file pickers in Playwright with?io=basic.acorn8.19.0 (MIT) is a runtime dependency (plugin sources).
Added (lane 11, plugins, 2026-10-12) #
- Plugins (ADR-0009, the authoring guide
docs/PLUGINS.md): a plugin is a folder (or a .zip of it) withplugin.jsonand an ES-module entry, and runs in its own Web Worker, locked down before its code loads (no DOM, no network unless granted and then only to its listed hosts through the app, no IndexedDB or other storage of its own, noimportScripts, noevalornew Function), talking to the app only by messages. The app enforces the permissions it asked for (model.read,model.write,ui,storage,file,net) on every call; a plugin that stops answering is reported after 5 s (with Stop) and stopped after 15 s; a crash ends only its worker. The same in the browser and on the desktop. - The Plugins pane (the puzzle-piece tab at the end of the side panel): each plugin with its state, permissions, last error, Enable (after a dialog listing what it asks for), Disable, Reload, Open folder (desktop), Uninstall and a developer console; plugin panels as collapsible sections under each plugin's name; Install from .zip, Load unpacked folder (desktop) and Load from .zip for this session (browser). A Plugins menu (each plugin's commands and tools, Manage Plugins, the install entries), plugin shortcuts (Ctrl, Alt or Meta plus a key), plugin tools in their own group at the end of the rail, prompts and confirms titled with the plugin's name.
- The plugin API, version 1 (
packages/plugin-api:index.d.ts, the"sawhorse"runtime shim,manifest.schema.json, the manifest validator, the RPC codec): model reads (solids, groups and components, faces, the tree, the selection, materials, the cut list), transactional named batches with placeholders (one undo step, "Undone: Generate cabinet", checked by the kernel; helpers for boxes and components of named parts), declarative panels (text, number with units, select, checkbox, button, table, note, image), tools receiving pointer events, inference and Value Control Box input like the built-in tools, units, geometry helpers, events (selection, document changed and opened, tool, units), app and document storage (the document's saved in the.shzasplugin-data.json), files through the save and open dialogs,fetchto listed hosts. - Three samples, bundled and off until enabled, each MIT with a README: Cabinet generator (a frameless cabinet from its sizes as a component of named parts, Left side mirrored from Right side, read straight into the Cut list; Update replaces the selected one in place), Shelf pin holes (a tool: hover a face for a column preview, click to drill N holes of diameter D at pitch P, 8, 32 mm, 5 mm to start, one undo step per column), Model report (live counts, size, volume, board feet by material, warnings; Markdown and CSV export).
- Kernel:
sawhorse_kernel::refbatchresolves a plugin's batch op by op on a scratch copy, checks the resolved batch does the same as one op, and applies it as one plainbatchop;Doc.apply_named_batch; the worker'snamedBatchandfacesrequests. - Scripts:
npm run plugin:check(manifests, sources and a type check of every plugin against the API) andnpm run plugin:pack <dir>(a deterministic zip);scripts/capture-lane11.mjs, the lane-end walk-through. - Desktop: installed plugins under
$APPDATA/plugins, unpacked folders read from the dialog's pick, Open folder through a Rust command that opens only a plugin folder;blob:scripts allowed by the window's policy (the sandbox links a plugin's modules as blob URLs). - Tests: Vitest for the codec, the manifest and its schema, the source rules, the runtime, geometry, zips, panels, the host's permissions, watchdog, crashes, grants, storage and files (fake worker), the samples and the scripts, and batches through the WASM kernel;
crates/kernel/tests/refbatch.rsagainst the goldens (a batch drawing and pulling a box hashes as the built-in box; every plain golden as one batch lands on its hash); Playwright: the sandbox in a real browser (no DOM, no fetch, no importScripts, no eval, no change without model.write, outside code refused, a plugin spinning forever reported and stopped while the app keeps drawing), the model API (a named batch undone and redone in one step), the UI end to end, and the three samples (a 30 x 72 x 12 in cabinet with 3 shelves named in the Outliner and listed in the Cut list; a drilled column undone in one step; the report's counts against the model); the fuzzer sends plugin batches (10,000 sequences clean).
Changed (lane 11) #
fflateis a runtime dependency (plugin zips; it was already used by tests and scripts).- The right panel has a Plugins tab at the end, drawn as a glyph so the named tabs keep their widths; the top bar has a Plugins menu after Tools.
- Typing in a plugin panel's number field and pressing Esc also clears its error line.
Added (lane 10, materials, styles and shadows, 2026-10-12) #
- Materials (ADR-0008): a name, a colour, a texture (an image the model holds, with its real-world size, rotation and offset) and a stock link (lumber or sheet goods, and the species). Ops
define_material(extended; old ops read the same),rename_material,delete_material,add_texture(PNG or JPEG underassets/<name>, checked against its bytes). - Paint (B): a face in the open context; a closed group or component as a whole (its default: faces with their own material keep it; each copy of a component can differ); Ctrl+click a whole solid; a click on a selected item paints the selection; hover previews; Alt+click samples. Ops
paint(faces or items) andset_face_uv. A face shows its own material, else its solid's, else the nearest group or component's. Paint follows splits and shapes drawn on a face, goes with faces that disappear, and reaches every copy of a component. - Texture positioning: double-click a textured face (or Position texture): handles move, turn and scale the texture, live, one undo step on release. Textures come from each face's own frame, so they stay on the wood through moves, copies and component placements, with the grain along each face's longer side by default.
- Materials pane: the active material, the model's materials with face counts, the library (twelve woods and eight sheet goods with textures drawn by our own code, sixteen colours, glass and metal; search and categories), Import image..., and an editor (name, colour, texture size in your units, rotation, stock and species, delete).
- Styles pane: six presets (Sawhorse, Shop drawing, Shaded, X-ray, Clay, Outdoors); faces shaded with textures, shaded, monochrome, hidden line, wireframe or X-ray; edges on/off, profiles, extensions, endpoints; background, sky and ground colours; section cuts kept for later. Shadows: a sun by date, time and latitude, light and dark, on the ground and on faces, drawn with a soft GPU shadow map. Op
set_style,set_shadows; scenes save and restore both. - Cut list reads the species: a part's material is the one on most of its first solid's faces; a stock link names the species and decides lumber or sheet goods unless the part says otherwise.
- Renders:
material_hints(each material in view, its species, colour and share of the picture, from an exact material-id pass) go with every render request, and a short "Materials: white oak (most of it), ..." sentence after the prompt. - Files:
.shzkeeps materials, face paint, texture images (asassets/entries), styles and shadows (all optional fields, version 1)..skpimport keeps each face's material, brings PNG and JPEG texture images in with their size, and fits each face's texture position (skew and projection dropped, noted). GLB export: one primitive per material, images embedded,TEXCOORD_0. OBJ:usemtlper face where materials differ,vton textured faces, the images saved beside the MTL. SVG view drawings follow the edge style (profiles heavier, X-ray and wireframe show hidden edges, extensions, endpoints). - Under the hood:
crates/kernel/src/looks.rs(types, ops, sampling, texture coordinates, hashing only when used, so every older golden keeps its hash);crates/export/src/library.rsandpng.rs; the worker sends each texture image to the UI once, by digest, transferred; the view mesh carries texture coordinates and edge normals. The renderer is unchanged for unpainted models (the corpus images and pixel tests hold); textured faces are overlay meshes per image (sRGB, mipmaps, anisotropy). - Tests:
crates/kernel/tests/looks.rs(paint and what faces show, splits, imprints, pushes, components and per-copy paint, the cut list's species, textures and positions, refusals, rename / delete, locked items, styles and shadows in scenes, hashes); the new goldenpainted.json(WASM == native); shz, wasm-api, GLB / OBJ / SVG and library tests; the fuzzer drives every lane-10 op and samples every face after each op (testing::check_looks); Vitest for the Paint tool and the handles' maths, the panes and the materials sentence;e2e/materials.spec.ts(paint, sample, position, styles, shadows at 3 pm, a scene, the cut list) and the golden image of a painted cabinet (tests/corpus/golden/painted-cabinet.png).scripts/capture-lane10.mjsis the lane-end walk-through.
Changed (lane 10, with lane 9's nesting) #
- Renaming a material carries its nesting stock (Stock dialog) to the new name when the cut list reads the material by its own name; a material linked to a species keeps the default on the species. Materials linked to stock name the species the Nesting section groups by.
Added (lane 14, the public site, 2026-10-12) #
- https://sawhorse3d.com: a landing page (
site/, static HTML and CSS in the mock's tokens and fonts, light and dark, no scripts, no analytics, no cookies): the pitch, Try it in your browser, Download for Windows, macOS (Apple Silicon) and Linux from the v0.1.0-alpha.1 pre-release (from v0.1.0-alpha.2 since its release) with a note that the builds are unsigned, three features, how it is built, two screenshots from the running app, links to GitHub, the guide and the changelog, "maintained by @boardfoot", the licence and the Trimble notice. - The browser demo at /app/:
VITE_BASEsets the build's base path (default./); withVITE_WEB_DEMO=1the app shows a dismissible "Alpha. Runs in your browser, nothing is uploaded." banner with a link to the latest release, and a Help menu (User Guide, What's New, Download the Desktop App, Source on GitHub). The kernel worker and its WASM load under the base; Open and Save use the browser's pickers as before. - /guide/ and /changelog/:
docs/USER-GUIDE.mdand this file rendered to HTML, with anchored headings and a table of contents. scripts/build-site.mjs,check-site.mjs,serve-site.mjs,site-smoke.mjs(npm run site,site:check,site:serve,site:smoke) and.github/workflows/pages.yml: assemble, check (links, anchors, outside resources, image sizes, identity, the download links answer), smoke-test in a browser (the demo's kernel loads, a box extrudes, Ctrl+S saves and File > Open reads it back, the banner dismisses) and deploy withactions/deploy-pageson every push tomain.docs/DEVELOPMENT.mddescribes the whole loop.scripts/capture-lane09.mjs --theme dark.
Changed (lane 14, version 0.1.0-alpha.1, 2026-10-12) #
- Version 0.1.0-alpha.1 everywhere it is declared:
package.json,src-tauri/tauri.conf.json, thecrates/workspace and the desktop crates (with their lock files). Thev0.1.0-alpha.1pre-release was tagged before this bump (its files said 0.0.1); 0.1.0-alpha.2 is the first release whose files carry the version in their names. Windows Installer accepts only numeric versions, so the MSI is versioned0.1.0.1(bundle.windows.wix.version). Saved.shzfiles now record"generator": "Sawhorse 0.1.0-alpha.1".
[0.1.0-alpha.1] - 2026-10-12 #
The first pre-release, tagged v0.1.0-alpha.1 (installer files named 0.0.1). Its download page is no longer offered: get v0.1.0-alpha.2.
Added (lane 9, nesting and cutting diagrams, 2026-10-12) #
- Nesting section in the Cut list pane (the mock's "Nesting ›" button, now live): the cut list's pieces laid out on real sheets and boards, worked out again 200 ms after every edit. Saw (Table saw = guillotine, the default; Tightest (CNC) = maxrects), Kerf (1/8 in to start; typed lengths such as 3/32) and Trim per edge; tiles for sheets (by stock), boards (by nominal size, with board feet bought) and the overall yield; parts on no stock with the reason; a to-scale diagram per sheet or board with every part tagged by its cut-list row ("4c"), hover to light it up in the model (and the model's hovered part lights up in its diagram), click to select it; the cut sequence in shop words ("Rip to 11 1/4 in") and the parts under each diagram. ADR-0007.
- Stock dialog (Stock... in the section): each material's stock (or Automatic), the library of sheets and boards (add, edit, delete, back to the built-in set). The built-in library: 4 x 8 sheets at 3/4, 1/2, 1/4 in; 5 x 5 Baltic birch at 3/4, 1/2 in; 4 x 8 MDF without grain; 4/4 (13/16 in) boards 4, 6, 8, 12 in wide; 5/4, 6/4, 8/4, 12/4 boards 6 in wide; all 8 ft. Every edit is an op and an undo step, saved in
.shzas an optionalstockobject (only when it differs from the built-in library). - Kernel (
crates/kernel/src/stock.rs,nesting.rs): stock choice (a part naming a stock, a material's default, then automatic: sheets by thickness within 1/16 in; lumber of one material and thickness on one board size, the narrowest as wide as its widest part); guillotine sheet layouts (four variants, fewest sheets wins), maxrects (parts and bin grown by the kerf), boards by first-fit-decreasing and a bounded lookahead; the kerf on every cut; grain never turned across (only with no grain on the part or the stock); trim per sheet edge and board end; cut sequences found from the layout (trim cuts first; a guillotine layout always comes apart; a maxrects one that does not is flagged); efficiency and waste from exact areas; parts that fit no stock reported (no stock of that kind and thickness, wrong thickness, too large, grain-bound), never dropped; deterministic, hashed. Opsdefine_stock,delete_stock,set_material_stock,set_nest_settings,reset_stock_library. - Files, through the save pickers: SVG per sheet or board (1:1 in mm: parts with tags, names and sizes, overall dimensions, numbered cuts, the cut sequence); DXF for CNC and laser (mm; a closed polyline per part on a layer per sheet or board, outlines on STOCK, tags on LABELS; LWPOLYLINE, or strict R12 POLYLINE); a PDF booklet (what to buy, the settings, parts on no stock, an index; then a page per sheet or board with its diagram, parts and cuts).
- WASM:
Doc.nest(options),replay_nesting; the worker'snestrequest;window.__sawhorse.nest()for tests. - Tests:
crates/kernel/tests/nesting.rs(the bookshelf: oak on five 4/4 x 12 x 96 boards and the back on one 1/4 in sheet, 6,105 of 10,368 sq in, 58.9%; as 3/4 ply, three sheets; kerf, trim, maxrects, grain, named and default stock, unplaced reasons, the library's ops, undo, refusals,.shz, hashes) with property tests on random cut lists and settings; every golden records a nesting hash and the newnesting.jsongolden (WASM == native); Vitest for the words, the section, the Stock dialog, and every file read back (DOM XML parser,dxf-parser, our PDF reader) on a fixture and on real kernel output, the DXF also re-imported by our own DXF importer;e2e/nesting.spec.tsnests the UI-built bookshelf and checks sheet and board counts, overlaps and kerf gaps, and that the SVGs, DXF and PDF contain every part; the fuzzer nests after every op with both algorithms and checks every invariant.scripts/capture-lane09.mjsis the lane-end walk-through.
Changed (lane 9) #
- The cut list's note no longer says nesting and kerf are missing: its sheet count is a rough estimate and Nesting lays out the real ones.
e2e/cutlist.spec.ts's bookshelf builder moved toe2e/bookshelf-build.ts, shared with the nesting spec.
Fixed (lane 7b, the lane-7 verifier's findings, 2026-10-12) #
- Rounding no longer changes totals. Sheet goods were decided by comparing the rounded thickness with 1/4 in, so a 0.26 in panel was sheet goods at 1/16 in and lumber at 0.5 mm. The kernel now classifies on the exact thickness (1/4 in + 1 um), and board feet, areas, the sheet grouping (by exact thickness) and the sheet count all come from the exact sizes (snapped to a 24 nm grid only to drop float noise). Every golden keeps its cut-list hash;
every_rounding_classifies_and_totals_the_same(the bookshelf: 18.994140625 board feet and one sheet at 1/16 in, 1/32 in and 0.5 mm) andthe_quarter_inch_line_uses_the_exact_thicknesspin it, and the cut-list e2e checks it through the WASM kernel. - CSV: decimal T, W, L columns (inches or mm) beside the shown ones; shown fractions written as
="3/4"so spreadsheets keep them as text (not a date); empty cells instead of a dash; the Total row's sheet count in its own Summary column (not under Stock). Round-trip tests read every cell back. - Report consistency: the PDF and the print view are built from one
reportCells(): Part, Qty, T, W, L, Material, Grain ("along L" / "across W" / "none"), Bd ft / area (board feet for lumber rows, area for sheet rows), Notes (grain set on the part, shaped, handed, hidden, scaled, in short words). The PDF wraps Part, Material and Notes rather than cutting words off. - The pane fits 300 px: fixed column widths (sizes as wide as their longest value, capped, the grain mark reserved only where used), tabular figures, Part and Material ending in an ellipsis with the full text as a tooltip; a Playwright test walks every rounding, grain and display unit at the pane's width and asserts nothing scrolls sideways. The right-click menu is titled with the row's name and the row stays marked while it is open.
- Ctrl+Z / Ctrl+Y (and the file shortcuts) work while focus is on a pane's select, checkbox or button; only an editable text field keeps them (
src/lib/focus.ts). - Render-service noise: while the service is unreachable the balance poll backs off (10 s, 30 s, 60 s, then every 5 min, was every 10 s), a window focus right after a failure does not ask again, and each attempt is a
console.debugline, never a console error.
Added (lane 7b) #
- Round to: Follow units (the default): 1/16 in for fractional, decimal and ft-in units, 0.5 mm for metric, saying which in the menu. Decimal-inch and ft-in units write the cut list in decimal inches (pane, CSV, report, PDF, labels). A picked rounding lasts for the session; Pin keeps it for next time (
src/cutlist/rounding-store.ts). - Bulk stock and grain: rows pick like a list (click, Shift+click a range, Ctrl+click one more); right-click a picked row to set the grain, the stock, or sheet / lumber for every picked row as one batch (one undo step).
Added (lane 7, the cut list, 2026-10-12) #
- Cut list pane (replaces the placeholder), as the approved mock: Part, Qty, T, W, L, Material; a board feet tile (with the species) and a 4 x 8 sheets tile (with the stock and thickness); CSV, PDF, Print, Labels; Nesting shown disabled; a note that kerf, edge banding and nesting are not included. Added around it: Round to (1/16 in, 1/32 in, 0.5 mm; metric units start at 0.5 mm), Visible only, a grain mark beside L (or W), notes under a part's name (sheet, shaped, handed, hidden, scaled copy).
- What a part is (ADR-0006): a component definition holding solids (quantity = its instances, multiplied through every component it is nested in), a solid-only group, or a plain solid; assemblies (components holding components or groups) list their pieces. Mirrored copies count in the same row as handed.
- Sizes: the minimal oriented bounding box as T <= W <= L, exact for parts made of rectangles, the blank it comes out of for shaped parts (tapered legs, mouldings); finished sizes in whole rounding steps, so every output writes the same fractions.
- Grain and stock: right-click a row for grain along the length, across (along the width) or none; Stock / material... (species or sheet stock, lumber / sheet / decide); Mark as sheet goods / solid lumber; Use the material's name. Ops
set_grainandset_stock; attributes on definitions, groups and solids, saved in.shz(docs/format.md), reaching every copy of a component. - Grain arrows in the viewport while the pane is open, on both broad faces of every drawn piece (walnut along L, copper across; new
--graintokens). - A row click selects its pieces in the model (opening the group or component that holds them, as the Outliner does); Shift adds, Ctrl toggles.
- Exports, through lane 6's save pickers: CSV (RFC 4180, UTF-8 with BOM, a Total row); the printable report (Print shows only the report through a print stylesheet, in the browser and in Tauri); the report as a PDF from our own small PDF 1.4 writer; labels, one per part, on Avery 5160-size sheets (name, quantity, size, stock, grain in words and an arrow).
- Kernel:
crates/kernel/src/cutlist.rs(Model::cut_list,Model::part_counts,PartAttrs, deterministic and hashed);wasm-apiDoc.cut_listandreplay_cut_list; the worker'scutListrequest. - Tests:
crates/kernel/tests/cutlist.rs(the bookshelf as components: Side x2 3/4 x 11 1/4 x 71 1/4, Shelf x4 3/4 x 11 x 34 1/2, Top 3/4 x 11 1/4 x 36, Toe kick 3/4 x 3 1/2 x 34 1/2, Back panel 1/4 x 34 1/2 x 71 1/4 sheet; 2,735.15625 in^3 = 18.994140625 board feet exactly; grain, stock, hidden, handed, rotated, scaled, nested, groups, a tapered leg, rounding, the snapshot); every golden records its cut list hash and the newcutlist.jsongolden replays the bookshelf (WASM == native for models and cut lists); the fuzzer checks the cut list against a brute-force count after every op (20,000 sequences clean); Vitest for the pane, the report, the arrows, CSV / PDF / labels round trips;e2e/cutlist.spec.tsbuilds the bookshelf through the UI and checks every row, the totals and the CSV.scripts/capture-lane07.mjsis the lane-end walk-through.
Fixed (lane 7) #
- Outliner rename starts with the old name selected.
- Hiding what is selected (Edit > Hide, the Outliner's eye, a tag or a scene) drops it from the selection, so Delete cannot erase what nobody can see.
- Status lines quote names after their noun, so default names never double it ("Saved scene 'Front'", "Tag 'Shelves' created", "component 'Side' (2 of 2)").
- Move with Ctrl says "Copying ..." for the whole gesture, along a locked axis too.
- Make Component on a single group turns the group itself into the instance (Model > Side > Solid, not Model > Side > Group > Solid), keeping its id, tag and flags; the definition takes the group's axes.
- The fuzzer found a board feet overflow on a solid kilometres across (now in f64;
tests/repro/2026-10-12-cut-list-board-feet-overflow.json).
Added (lane 5, groups, components, tags and scenes, 2026-10-11) #
- Groups: Ctrl+G (Edit > Make Group) groups the selection. A click on anything in a closed group selects the whole group; Move, Rotate and Scale move it as a unit (face ids inside unchanged, the group's axes follow); double-click opens it for editing, with the rest of the model faded, a dashed box round it and the trail in the HUD ("Edit: Model › Carcass"); Esc closes it; a click outside closes it and selects what was clicked. Strokes drawn inside a group stick only to that group's strokes. Ctrl+Shift+G (Edit > Explode) takes it apart.
- Components: Edit > Make Component (asks for a name) turns the selection into a definition with one instance. Ctrl+Move copies and Move arrays of an instance are instances; an edit inside any instance (push/pull, draw, erase, offset, Follow Me, moves, grouping, adding or deleting parts) changes every instance. Make Unique gives one instance its own definition ("Shelf (2)"); a cut that severs a solid inside a shared instance makes that instance unique first. Copies of plain solids stay plain.
- Outliner (replaces the mock's example rows): the tree of groups, instances ("component · 2 of 4") and solids, folded except around the open context; eye (hide / show) and lock per row; click to select (Shift adds, Ctrl toggles), selection shown both ways; double-click to rename (a component renames its definition); right-click for Edit inside, Make Group, Make Component, Make Unique, Explode, Hide, Lock, Rename, Delete.
- Tags pane (replaces the example tags): Untagged first, then each tag with its colour (a colour picker), item count, show / hide, put the selection on it, rename, delete; New tag. Tags hide and show only; hiding a tag on a group hides everything in it.
- Scenes: tabs in their own row above the viewport. + saves the camera, the hidden tags and the open group; a click goes to it; right-click updates, renames or deletes; double-click renames. View > Add Scene and the scene list.
- Kernel (
crates/kernel/src/nodes.rs, ADR-0005): the model is a tree of groups and instances over world-space solids. Definitions are templates by slot in their own coordinates; instance solids are derived from them bit for bit (validated). After every op the changed instance is captured into its definition and every instance re-derived (ids and display numbers kept). The editing context is model state: SetContext / LeaveContext are logged but never undo steps, and undo returns to where the edit was made. New ops: MakeGroup, MakeComponent, MakeUnique, Explode, DeleteNode, Rename, RenameDefinition, SetHidden, SetLocked, TagItems, CreateTag, RenameTag, SetTagColor, DeleteTag, AddScene, UpdateScene, DeleteScene, ActivateScene; Transform, Copy and Array take nodes. Typed refusals:StructureError. - Scene graph across the worker:
DocState.graphandDoc.scene_graph()(nodes with labels and kinds, where every solid is, definitions with instance counts and their own-axes bounds for the cut list, the context and its path, tag colours). - .shz (
docs/format.md):nodes,definitions(each component's geometry once), memberships, sketch parents,context,tag_colors, scene contexts; instance solids derived on open. Lane-6 files still open; files stay version 1 (optional fields). - .skp import (
docs/skp-compat.md): definitions placed more than once become components with one instance per placement, placed once become groups; nesting kept; hidden placements come in hidden; layers become tags of their groups and instances. - Tests:
crates/kernel/tests/structure.rs(a bookshelf of components, groups, scoped stickiness, severance, nesting, tags, scenes, hidden / locked, mirrored and rotated instances, the snapshot),structure_props.rs(instance edits propagate, Make Unique forks, Make Component / Make Group then Explode are the identity on hashes), goldencomponents.json(WASM == native), shz and wasm-api round trips,src/lib/scope.test.ts,src/components/structure.test.tsx,e2e/groups.spec.ts; the fuzzer drives every lane-5 op (50,000 sequences clean,docs/DEVELOPMENT.md).scripts/capture-lane05.mjsbuilds the bookshelf from components in the running app.
Fixed (lane 5) #
- The first
.skpimport no longer reloads the dev page (openskp is pre-bundled by Vite). - A dev server run from inside a lane worktree (
<repo>/.worktrees/<lane>) now sees edits: Vite's watch exclusions are anchored at the checkout, where the bare**/.worktrees/**had excluded every file of such a server. - The Outliner keeps names readable when a row's hint is long (the hint shortens first); the Tags pane counts what is inside a component once (in its definition), not once per copy.
- The measurements box clears after undo and redo (a tape reading of geometry that is gone no longer lingers); the active tool's gesture ends.
- No raw ids in the status line: every error is reworded (group, component, definition and mesh refusals too, and any bare public id); the tape's guide message no longer shows a guide id.
- Face edits (draw, imprint, split, erase) that bring a corner within 0.01 mm of another face of the solid (a loop drawn on a sliver a few micrometres thick) are refused, typed, instead of reaching the validator as a kernel bug. Found by the fuzzer; kept as
tests/repro/2026-10-11-imprint-on-a-five-micron-sliver.jsonand-imprint-near-a-folded-face.json.
Changed (lane 5) #
- What is directly in the open context is what tools edit: solids inside a closed group are selected, moved and deleted as the group, and push/pull, drawing and erasing inside it need it open. Lane-2 groups behave like this too (the
import_mixedgolden now opens its group before its push/pull; its hash is unchanged). - Hidden SketchUp placements come in hidden (the Outliner's eye) instead of on a hidden "Hidden in SketchUp" tag.
- The Cut list pane says plainly that it is not built yet (and which components will be its parts) instead of showing example rows.
- The corpus render harness hides the scene-tab row so the canvas keeps the size its references were rendered at.
Integration (lanes 4, 6 and 8 merged, 2026-10-11) #
- Lanes 4 (transforms), 6 (file import/export) and 8 (render service and credit store) are merged into
main; every gate passes on the merged tree (cargo test, clippy, fmt, wasm32 check, Vitest, build, golden:wasm, boolean:diff, the 200-file.skpcorpus, all Playwright specs withREQUIRE_KERNEL=1 REQUIRE_CORPUS=1, and the render service's tests). - Display numbers ("Solid 3") now survive a save and reopen:
.shzstores each solid'snumberand the model'slast_number(both optional; a file without them is numbered in saved order, seedocs/format.md). Imported and restored solids get numbers like drawn ones. - The desktop shell registers lane 6's dialog and fs plugins (with the drag-and-drop scope) and lane 8's opener plugin and device-key commands together.
Fixed (integration) #
- An imprint on a face with a notch and collinear vertices was rejected as a kernel bug ("non-positive volume 0"). The triangulator mis-bridged the new hole; it now falls back to its own ear clipper when earcut's area check fails, so the face triangulates. A face that still cannot be triangulated is reported as such (
Untessellatable), not as a zero volume. An imprint loop whose corner lies within the merge tolerance of one of its own sides is refused as self-intersecting. Found by CI's fuzzer; kept ascrates/kernel/tests/repro/imprint-near-tolerance-non-positive-volume.json, withcrates/kernel/tests/imprint_tolerance.rscovering loops near an edge and near-coincident points.
Changed (integration) #
- CI: the long fuzz step on
mainruns a fixed seed (FUZZ_SEED=20261011, 10,000 sequences), so a redmainis always a reproducible regression. Random seeds run nightly in.github/workflows/nightly-fuzz.yml(eight shards, 50,000 sequences, continue-on-error, repro artifacts). The.skpcorpus now runs inside thewebjob (one wasm and one Vite build, one Playwright run withREQUIRE_CORPUS=1);tauri-checkruns fmt, clippy (which compiles the shell, replacing the separatecargo check) and the device-key tests.
Added (lane 8, render service and credit store, 2026-10-11) #
- Render credits per ADR-0004, with no accounts:
- The app holds an Ed25519 device key. On the desktop it lives in the OS secure store (
src-tauri/device-key,keyring); in the browser demo it is a non-extractable WebCrypto key in IndexedDB. install_id = base32(sha256(public key))[:20], and every request to the render service is signed.
- The app holds an Ed25519 device key. On the desktop it lives in the OS secure store (
- The Credits chip shows this device's balance (a dash when the service is not connected) and opens the Render pane.
- The Render pane is live:
- Presets, the prompt, and Render · 1 credit.
- The depth pass shows faintly while the render runs, then the result.
- A history gallery.
- The $10 / $25 / $50 packs open Stripe Checkout in the system browser and the chip follows the payment.
- Move credits: an emailed claim code moves a balance to a new device, two devices at most.
- "Render service not connected" when the service cannot be reached; nothing is charged or simulated.
- Render passes from the current three.js view (
src/render/passes.ts), each with our own PNG writer:- a 16-bit linear depth map normalised over the model;
- an edge line render with hidden lines removed;
- a clay render.
- The render service, in its own repository (
../render-service, not deployed):- Hono on Node 24, Postgres (PGlite locally, node-postgres in production).
- Stripe Checkout and an idempotent webhook.
- Atomic credit decrement; fal first, Replicate as the fallback, re-credit on failure.
- Claim codes over Resend; limits of 2 concurrent, 6 a minute and 200 a day.
- 56 tests, also run on real Postgres; a Dockerfile, a systemd unit for the production host and a deploy guide.
- Tauri: the
device_public_key,device_signandopen_externalcommands (the last opens only Stripe Checkout and the local dev checkout), plus the opener plugin. The CSP allows the local service. - Tests:
- The shared signing vector, checked in TypeScript, Rust and the service.
- Client, PNG and Render pane unit tests.
e2e/render.spec.ts, with a fake service inside Playwright that verifies every signature and decodes the real passes.scripts/capture-credits.mjs, the full session against the real service, with screenshots.
- Docs:
docs/RENDER.md, anddocs/LAUNCH-CREDITS.md(what the maintainer provides before credits go live).
Changed (lane 8) #
- CI
tauri-checkinstallslibdbus-1-dev, whichkeyring's Secret Service backend needs, and runs the device-key tests, clippy and fmt forsrc-tauri. The release workflow installslibdbus-1-devtoo. PW_PORTsets the Playwright preview port (default 4173), so parallel worktrees can run e2e side by side.
Added (lane 6, file import/export, 2026-10-11) #
- File menu: New, Open, Save, Save As, Import, Import units, and an Export submenu; Ctrl+O, Ctrl+S, Ctrl+Shift+S and Ctrl+I.
- Drag and drop a file onto the window: a
.shzopens, anything else is imported. - Browsers with the File System Access API use native pickers, and Save writes back to the same file. Other browsers (or
?io=basic) use a file input and downloads. The desktop app uses Tauri's dialog and fs plugins, limited to the paths the user picked or dropped. - An import report lists what became solids, what stayed a mesh and why, and what was healed or skipped.
- Drag and drop a file onto the window: a
- Exports, over everything visible or the selected solids:
- STL (binary, mm, Z up) and 3MF (one named object per solid, mm, colours). Both refuse anything that is not a watertight solid, naming it.
- glTF binary (Y up, metres, a node per object, face ids as
_FACE_ID), OBJ (an object and group per part, with a material library), DXF (3D faces and edges, a layer per object). - SVG: a hidden-line drawing of the current view (to scale in mm for parallel views), and the outline of a selected face for laser cutting and CNC, also as DXF.
- Imports, each one undo step:
- STL, OBJ, glTF/GLB, 3MF, DXF (3D faces, lines, polylines with arcs, circles) and SVG (paths and shapes as sketch strokes on the ground).
- Closed shells become solids, including parts that touch each other. Open, non-manifold or self-intersecting geometry comes in as a visible, amber-tinted mesh with a note; it is never silently repaired.
- Units for STL, OBJ and unitless DXF: millimetres by default, chosen under File > Import units.
- SketchUp
.skpimport through the npmopenskppackage (MIT), parsed in the kernel worker: groups, each component placement, nested and mirrored placements, materials as colours, layers as tags (hidden ones hidden), hidden objects on a hidden tag, scenes. What is and is not supported:docs/skp-compat.md. - The native
.shzdocument, an open format (docs/format.md):scene.jsonwith exact geometry and persistent face ids,geometry.glbfor any glTF viewer, and a thumbnail. Opening a saved file gives the same model, hash for hash. - Materials (colour, texture file name), object names, saved scenes and imported meshes in the kernel; faces drawn in their material colour; the View menu lists saved scenes; Edit > Delete Imported Meshes.
- Tests: a writer and reader test for every format, including round trips through our own readers; every export read by an independent reader (
dxf-parser, three.js GLTFLoader, fflate);.shzround trips of every golden document; a 200-file.skpcorpus with a golden-image harness and a CI job;e2e/files.spec.tsfor the menus, export, save, open and drag and drop.
Changed (lane 6) #
- The same per-worktree cargo target directory and
PW_PORTchange as lane 4 (merged once). serde_jsonparses floats exactly (float_roundtrip), so saved files read back bit for bit.
Added (lane 4, transforms, 2026-10-11) #
- Move (M):
- Click a solid (or select first), move, click again; or press, drag and let go.
- The cursor snaps from the start point; arrow keys lock red, green or blue, and Shift holds the line showing.
- Type a distance mid-move (it goes the way the cursor went) or after it (the move changes).
- Ctrl copies. After a copy,
x3(or3x,*3) makes three copies at one, two and three times the move, and/4divides it into quarters. One undo takes the whole array back. - With faces, edges or points of one solid selected, Move moves that part. Faces that stay flat follow; one that would bend is refused unless Alt turns autofold on.
- Rotate (Q):
- The protractor sits on the face under the cursor, or level. Arrow keys lock it upright facing red or green, or level, and Shift keeps its plane.
- Click the centre, the start of the angle and the end, or type the angle (
90,-22.5,30deg). - Cursor angles snap to the protractor's 15 degree ticks; typed angles are exact and can be retyped after the turn.
- Ctrl copies.
x3and/4make arrays the same way Move does.
- Scale (S):
- Grips sit on the bounding box of the selection: corners, edge middles and face centres. A selected face gets its 8.
- Each grip scales about the opposite grip; Shift makes the scale uniform and Ctrl scales about the centre.
- Type a factor (
2,0.5,-1mirrors, or2,1,0.5for red, green and blue), or an absolute size with a unit (30in,1200mm). - The kernel checks every non-uniform scale for volume sign, flat faces and a closed shell.
- Scaling a selected face tapers a leg.
- Offset (F):
- Click a face or a sketch region (or near selected edges), then move inward or outward, or type a distance.
- Offsets come from
cavalier_contourswith sharp corners. A face with holes is offset as one shape. - The result imprints on the solid when it stays on the face, and becomes a new sketch on that plane when it reaches off it (the same way Draw decides). The kernel's own preview shows while the cursor moves.
- Follow Me (W):
- Select the path (edges end to end, or one face to go round its edge), then click the profile.
- The profile is swept along straight segments with mitered corners; open and closed paths both work.
- A sketch region becomes a new solid. A face adds to its solid when the path leaves it, and cuts the solid when the path runs in, so a moulding drawn on a box's end routes round its top.
- Kernel:
Transform,Copy,ArrayandTransformGeometryops: affine, object-level, face ids kept, validated, with typed refusals.- A
dividedhelper gives the/nstep of a move, turn, screw or scale. OffsetwithDoc.offset_preview, andFollowMewith mitered sweeps.- Severance: a push or a sweep that cuts through a board leaves one solid per piece, each keeping its face ids.
- Plane snapping before and after every boolean: nearly coplanar faces share one plane, drifted vertices are re-solved onto it, and coincident vertices are welded. The engine's output is welded at the merge distance.
- Lane-3 verifier conditions:
- A dev autosave to IndexedDB, with "Restore unsaved work?" (Restore / Discard, also on the Edit menu) after a reload.
- Status text names solids by display number ("solid 3"), never by raw id.
- The Rect preview labels each side's length and direction, and its message states them.
- Per-solid bounding boxes in the bookshelf test.
- Vite ignores
.worktrees/, and CI usesactions/upload-artifact@v5.
- Tests:
- Kernel suites for transforms (with the proptest "transform then inverse restores the hash"), offsets, Follow Me (exact volumes), severance and snapping.
- Goldens
transforms,offsetandfollow_me, where the WASM hash equals the native one. - Vitest suites for each new tool, and seven new Playwright specs (
session,move,rotate,scale,offset,follow;vcbupdated). - The fuzzer drives every new op. 50,000 sequences are clean, and the boolean refusal rate is measured with plane snapping off and on.
- A lane-end walk-through,
scripts/capture-lane04.mjs.
Changed (lane 4) #
- Typing straight after a tool key goes to that tool and is not wiped when the switch lands. Arrow keys and Ctrl / Alt taps wait for clicks still on their way. A render that skipped pending edit updates no longer restores a stale Push target. Fast keyboard use found all three.
scripts/env.shgives each worktree its own cargo target directory, andPW_PORTlets parallel worktrees run Playwright side by side.- A push that cuts a solid in two now reports
severed(two solids) instead of leaving a two-shell solid.
Added (lane 1, foundations, 2026-10-11) #
- Browser app shell built from the approved mock: top bar with menus, Iso/Top/Front/Right/Persp views and Credits chip; tool rail with the SketchUp-2017 default keys and our own glyphs; three.js WebGL2 viewport (Z-up, grid, axes, coarse hover inference in our four colours); Outliner / Tags / Cut list / Render panel; Value Control Box with fractional in, decimal in, ft-in, mm, cm and m. Light and dark themes.
- Tauri 2.x desktop scaffold wrapping the same front end (not yet built locally; CI builds installers).
- Rust workspace:
kernel,tessellate,inference,export,wasm-api. Every crate builds forwasm32-unknown-unknown. - Kernel: half-edge B-rep with hole loops and stored planes; named tolerances; topology validator (integrity, loop closure, twins, planarity, winding, self-intersection, hole containment, Euler-Poincare per shell, watertight); sketches with automatic region detection; extrude to a watertight solid; push/pull for faces whose neighbours run parallel to the push; transactional ops with typed errors; deterministic hashing.
- Booleans behind a
BooleanEnginetrait with a manifold-rust adapter that keeps per-face provenance. - Watertight-only binary STL and 3MF exporters.
- Kernel running as WebAssembly in a Web Worker; Push/Pull and Rect typed values drive it end to end.
- Tests: property invariants, an op-sequence fuzzer with repro files, golden-hash replays checked natively and in WASM, a cargo-fuzz harness, Vitest and Playwright suites.
- CI on GitHub Actions and a tag-triggered, unsigned-by-default release workflow for Windows, macOS and Linux.
- Docs: ADRs 0001-0004, development guide, clean-room log, dual MIT / Apache-2.0 licence.
Added (lane 2, kernel core, 2026-10-11) #
- Sketch tier: strokes insert with the sticky rules (endpoint merge, T-junction splits, crossings split both, collinear overlaps normalised); regions are minimal circuits with holes and keep stable ids across edits; erase heals what a stroke split. Extruding consumes the region.
- Object tier:
split_faceandimprinton any face (validated, transactional, user-drawn edges). - General push/pull on any planar face of a watertight solid: side walls, sliding prism walls, coplanar merge that keeps user-drawn edges, flush welds, collapse, and a boolean path (manifold-rust, re-polygonised into n-gons with holes) for pushing through or into the solid. A global self-intersection check guards every commit.
- Persistent document in the kernel worker: op log, undo/redo (200 steps), groups, tags, delete; Ctrl+Z / Ctrl+Y in the app; Rect draws on the ground or imprints on a face; Push/Pull acts on the clicked face or region. OBJ export.
- Tests: sketch / face / push property tests, 26-case boolean differential (kernel vs npm manifold-3d vs hand-computed,
npm run boolean:diff), 13 golden logs (WASM == native), an op-sequence fuzzer over every op with undo/redo interleaved (50,000 sequences clean in WSL), lane-end captures in../_captures/2026-10-11-lane02-*.png. - Renamed identifiers that sat close to a copyleft project's names (see
docs/CLEANROOM.md).
Added (lane 3, feel, 2026-10-11) #
- Persistent face ids. They survive push/pull, split, merge and booleans, and ops, view-mesh parts and the model hash (format v3) use them. Golden and repro logs were migrated.
- Navigation:
- Middle-drag orbits, Shift+middle or right drag pans, and the wheel zooms to the cursor.
- The Iso / Top / Front / Right / Persp views and a parallel / perspective toggle.
- Shift+Z zooms to the extents. Auto-fit only ever zooms out.
- The grid follows the units (1 in and 1 ft, or 10 mm and 100 mm). The negative axes are dashed.
- Selection and erasing:
- Select: hover highlight; click, Shift adds, Ctrl toggles; window and crossing boxes; double-click selects the solid; Ctrl+A.
- Delete and the Erase tool go through the kernel. Edges drawn on a face, imprinted faces, sketch regions, guides and dimensions erase. Structural edges are refused with the reason. A multi-erase is one undo step.
- The inference engine, in Rust (
crates/inference):- Our own BVH for picking.
- Pixel tolerance at depth, and occlusion.
- Ranked inference kinds: endpoint, midpoint, intersection, centre, on edge, on face, the three axes, parallel and perpendicular, from point, on guide, guide point, and grid.
- Locks with the arrow keys and Shift. Length snapping to grid steps.
- Our colours (lime, teal, amber, violet, plus magenta, blue, indigo, grey, tan and sage).
- The Value Control Box has one grammar for every tool:
- Fractions, ft-in and metric.
w, dfor sizes,24sfor segments and12rfor radii.- Angles and the array forms are reserved for lane 4.
- Focus rules, Esc, and Ctrl+Z mid-entry.
- Draw tools, all on sketch planes and on solids' faces:
- Line, Rectangle, Rotated Rectangle, Circle, Polygon, Arc and 3-Point Arc.
- A closed shape inside a face imprints.
- A stroke crossing a face's edges becomes
split_facecuts, so a dado strip across a board is one step. - A shape reaching off a solid starts a new sketch on that plane.
- A Rectangle started on a corner, an edge or the grid takes its plane from the cursor.
- Push/Pull:
- Press-drag-release with a live preview, or click-move-click.
- Typed distances mid-gesture or after the gesture.
- Double-click repeats the last distance.
- Ctrl pulls out a new face and leaves a seam.
- Snaps to other geometry's points along the face normal.
- Refusals show typed in the status line.
- Tape and Dimension:
- Tape measures between points, places guide lines parallel to an edge at a typed or clicked offset, and drops guide points.
- Guides snap, including where they cross edges. Edit > Delete Guides clears them.
- The Dimension tool adds linear dimensions.
- Guides and dimensions are kernel annotations, so undo covers them.
- Tests:
- Rust inference tests.
- Kernel tests for face ids, erase, draw and annotations.
- Vitest suites for each tool against a fake host.
- Eight new Playwright specs.
- The Phase-2 exit test,
e2e/bookshelf.spec.ts: a 36 x 72 x 11 1/4 in bookshelf with dados, 8 watertight solids, 2,761.03125 in^3, 0 refusals, about 10 s. It runs alone withnpm run e2e:bookshelf. - The op-sequence fuzzer covers every new op: 50,000 sequences clean, with boolean-path refusals now counted in the report.
- Docs:
docs/USER-GUIDE.md, a first-ten-minutes tour with every key and the inference colours.
Changed (lane 3) #
- CI:
actions/checkout@v5andactions/setup-node@v5. Therustandwebjobs are pinned toubuntu-24.04;tauri-checkstays on 22.04. - The coarse lane-1 hover inference was removed; the viewport asks the kernel.
Fixed (lane 3) #
- An edge of the face under the cursor was hidden by that same face at oblique view angles, so a corner could not be snapped there. Found during the bookshelf built by hand.