Skip to content

Insert Design: preserve source part properties (#6624) - #6691

Merged
bherbruck merged 2 commits into
tangency-labs:mainfrom
cfaulkingham:codex/insert-design-properties-6624
Oct 26, 2026
Merged

bherbruck merged 2 commits into
tangency-labs:mainfrom
cfaulkingham:codex/insert-design-properties-6624

Conversation

@cfaulkingham

@cfaulkingham cfaulkingham commented Oct 25, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #6624.

Insert Design discarded the source design's metadata, leaving the component's part number, description and revision blank in the Bill of Materials. A newly inserted component now receives a copy of the source metadata, including other tools' namespaced values. The assembly retains its own properties, and reusing a linked component preserves its locally edited properties. Update Links, Relink and Extract retain their existing property behavior.

Changes a default: no

The change carries metadata alongside the existing linked-body result and initializes the new component inside the insertion's existing undo transaction. It uses the existing component metadata format and changes no kernel code.

Reproduction

  1. Create a 40 × 20 × 3 mm box and set Design Properties to part number PL-6624, description Mounting plate, revision B. Save the part.
  2. In a new design, use Insert Design to insert that file as Plate.
  3. Open Bill of Materials and select its row. Before the fix all three fields are empty; afterwards they contain the source values.

Before — the selected row's property fields are empty:

Before: the inserted plate has empty part number, description and revision fields

After — the same insertion preserves PL-6624, Mounting plate, and B:

After: the inserted plate retains its source part number, description and revision

Validation

  • The new regression failed on unchanged main with actual metadata {} instead of the saved source properties, then passed with the fix.
  • All 10 BOM tests and all 17 linked-component tests pass.
  • Regression coverage includes initial insertion with and without reuse, BOM values, namespaced metadata, the assembly's own properties, a single undo/redo step, JSON and container save/reopen, and reuse after local edits.
  • The desktop and CLI builds pass. The CLI reproduction and the desktop screenshots above confirm the result.
  • cargo xtask ci: formatting, Clippy with warnings denied, assets, licenses, sorted lists, layers, UI containers, WASM and doc tests pass. The full run completed all 81 test binaries; the gate is not green because six tests fail across three binaries (GPU depth, UI scenarios and the engine library). The engine library reports 2,394 passed, 3 failed and 6 ignored.
  • cargo xtask web-offline-test passes (run separately because the full gate stops before it after test failures).
Full-suite failures and unchanged-main comparison (macOS, Apple M4 Pro)

The full run reports these failures outside the changed insertion code:

  • GPU a_washer_behind_a_plate_stays_hidden_on_a_large_design: 103 exposed pixels, own depth, FOV 0. The complete GPU depth suite also fails this test on pristine 52e5bc11 (263 exposed pixels at FOV 0.6).
  • GPU an_edge_on_a_face_draws_whole_at_any_angle: 192 of 612 pixels drawn, own depth, tilt 60, radius 30, FOV 0. This failure was not independently reproduced on the baseline. Both GPU cases pass when isolated on the baseline with SOLIDCRAFT_REQUIRE_GPU=1.
  • Engine a_ring_cut_round_a_counterbored_hole_in_a_chamfered_disc: removed volume 148.27973047857813 rather than 148.44025288211773 for the chamfered case. The identical failure reproduces on pristine 52e5bc11.
  • Engine robustness seeds 36 and 71: geometry differs from the stored shared goldens on macOS. Both failures reproduce identically on pristine 52e5bc11; seed 71 is also tracked in Robustness seed 71 builds 19 faces instead of 20 on macOS arm64 #2669.
  • UI agent_chat_home_page: step 8 times out waiting for Add agent. The same failure reproduces on pristine 52e5bc11.

Integration

Based on upstream main at 52e5bc11. Related PRs #5674 and #5449 touch link loading, and #4786 refactors property keys; none implement this insertion fix.

@cfaulkingham
cfaulkingham marked this pull request as ready for review October 25, 2026 16:16
@bherbruck bherbruck added ready to merge reviewed, every ask addressed; merge once CI is green approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) and removed approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) labels Oct 26, 2026
@bherbruck
bherbruck enabled auto-merge October 26, 2026 10:40
@bherbruck
bherbruck added this pull request to the merge queue Oct 26, 2026
Merged via the queue into tangency-labs:main with commit 7d7016b Oct 26, 2026
95 of 106 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved-for-ci Reviewed: run the full PR CI (build, tests, goldens, Clippy) ready to merge reviewed, every ask addressed; merge once CI is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assembly: Insert Design should carry the part file's Design Properties (part number, description, revision) into the component's part properties

2 participants