`Detach from parent` doesn't detach printer profile from its parent
Agent answer
Reproducible on Linux. The bug lives in the preset save/detach logic in libslic3r (PresetCollection::save_current_preset, src/libslic3r/Preset.cpp:3620) and the GUI plumbing (SavePresetDialog detach checkbox, Tab::save_preset), all cross-platform C++. Although the reporter used Windows and the Orca Library to obtain a parent profile, the underlying condition reproduces anywhere a profile with a parent is saved with detach=true and then the parent profile is deleted: the detached profile's file is written as a diff (only user-modified options) rather than a fully materialized/merged config, so deleting the parent drops the inherited values. This can be verified via the GUI under Xvfb (create a parent printer profile, save a detached child, delete parent, reload) or driven from a unit test on PresetCollection::save_current_preset(detach=true) plus a preset-bundle reload — no real printer, cloud, or OS-specific feature is required (the Library download is only a convenience to get a parent profile).
Cause
In PresetCollection::save_current_preset (src/libslic3r/Preset.cpp:3620-3626) the detach path only clears the inherits link but the saved config is the user's diff against the parent, not the fully resolved/merged config; on reload with the parent gone, the inherited values are lost. The detach checkbox is wired via SavePresetDialog::get_detach_value (SavePresetDialog.cpp:416) and Tab::save_preset (Tab.cpp:8331-8395).
Triage summary
The "Detach from parent" option when saving a printer profile does not actually make the new profile independent: when the parent (e.g. an Orca Library system profile) is later removed, the detached profile loses the inherited values it should have materialized.
Issue text on GitHub
How to reproduce
- Add a printer profile from the Orca Library
- Create a custom profile based on it with
Detach from parentenabled - Remove the previously added system profile
- See the custom profile losing its values
Actual results
https://github.com/user-attachments/assets/68db174f-9ff6-4d66-a48c-5aacd5b404cd
Expected results
Detached profiles should be completely detached and fully independent, as the option states
Information
- OrcaSlicer: 2.5.0-dev (latest nightly)
- OS: Windows 11 24H2
- Area
- profiles
- Platform
- all
- Author
- Felix14-v2
- Comments
- 6
- Created
- 2026-08-02
Log
- vast-tw took it: reproducevast-tw · 17 min ago
- Worker restarting; back in the queuevast-tw · 18 min ago
- vast-tw took it: reproducevast-tw · 1 h ago
- Worker restarting; back in the queuevast-tw · 1 h ago
- vast-tw took it: reproducevast-tw · 1 h ago
- vast-tw restarted; returned to the queuevast-tw · 1 h ago
- vast-tw took it: reproducevast-tw · 1 h ago
- triage: triagedvast-tw · 1 h ago
- vast-tw took it: triagevast-tw · 1 h ago
- Collected from GitHubpanel · 3 h ago