orcaslicer/docs/HLSD
SoftFever d42123d2f1
Some checks are pending
Build all / Linux x86_64 (push) Blocked by required conditions
Build all / build_macos_arch (push) Waiting to run
Build all / Look for build script changes (push) Waiting to run
Build all / Windows build script tests (push) Blocked by required conditions
Build all / build_linux (push) Waiting to run
Build all / Build Windows (push) Blocked by required conditions
Build all / Build macOS Universal (push) Blocked by required conditions
Build all / Linux aarch64 (push) Blocked by required conditions
Build all / Windows x64 (push) Blocked by required conditions
Build all / Windows arm64 (push) Blocked by required conditions
Build all / macOS arm64 (push) Blocked by required conditions
Build all / Slice check (Linux aarch64) (push) Blocked by required conditions
Build all / Publish Test Results (push) Blocked by required conditions
Build all / Flatpak (push) Waiting to run
Fix hang when MCP clicks an open printer selector (#17913)
# Description

When an MCP client clicked the printer selector on the Device or
Calibration tab while its printer list was already open, OrcaSlicer
froze at full CPU on macOS and Linux and had to be force-quit. A
person's mouse can't trigger it, because the open list takes the click
and closes before the selector sees it, but an MCP click goes straight
to the selector. That click now closes the list, as a person's click
does, and Orca's popups no longer hang on macOS and Linux when they are
asked to open while already open. The hung call's reply was misleading
as well: it said the call had not run and was safe to retry, although
its click had run. A call that has already acted now says it may have
done some or all of what was asked, and to check with `app_state` before
calling it again.

**Included:**
- **GUI:** the Device and Calibration printer selectors close their open
list on a click; `PopupWindow` ignores a second open on macOS and Linux.
- **MCP:** "not run, safe to retry" is reported only while no step of
the call has run.
- **Tests:** an automation test for the MCP reply and a slic3rutils test
for the popup.
- **Docs:** the MCP server design doc and the orca-wxwidgets skill's
popup pages.

A person's clicks behave as before on every platform, and Windows popup
behaviour is unchanged.

# Screenshots/Recordings/Graphs

<!--
> UI changes need before and after screenshots, on each platform you
tested.
> See what each kind of PR needs:
https://github.com/OrcaSlicer/OrcaSlicer/blob/main/CONTRIBUTING.md#what-each-kind-of-pr-needs
> For other changes, please attach images that can help explain them.
-->

## Tests

- Reproduced the hang on macOS over MCP with two `widget_click
{target:{class:"SideToolsPanel"}}` calls on the Device tab. With the
fix, repeated clicks open and close the list, each reply comes back in
under 100 ms, and the app stays idle and answers `app_state` afterwards.
- New tests: "a call says it was not run only until a step of it has
run" (automation) and "a popup never links its event handlers to
themselves and a second click on its control closes it" (slic3rutils).
With the popup guard disabled, the popup test fails and still runs to
the end instead of hanging.
- On this branch, macOS arm64 Release: the build passes, the automation
suite passes (186 test cases) and the slic3rutils `[Mcp]` tests pass
(508 test cases).
- Windows and Linux were not built or run; their code paths were checked
against wxWidgets' source.

<!--
> A guide for users on how to download the artifacts from this PR.
-->

[How to Download Pull Requests Artifacts for
Testing](https://www.orcaslicer.com/wiki/how_to_download_pr_artifacts)
2026-11-26 20:51:59 +08:00
..
adaptive-infill.md Fix adaptive and TPMS infill paths that start mid-line and end on themselves (#17334) 2026-11-06 15:11:58 -03:00
center-of-mass.md Fix panning and rotating from the center of mass details box (#17137) 2026-11-10 20:22:43 -06:00
color-picker.md Remove filament swatch rendering fallbacks 2026-10-15 23:35:35 +08:00
deferred-page-construction.md Stop search and Speed Dial from refusing settings that are visible 2026-10-26 13:43:32 +08:00
design-tab.md Make the MCP server doc an architecture overview 2026-11-25 22:23:41 +08:00
exclusion-volumes.md Avoid text-editing chord for collision-volume preview shortcut 2026-10-20 11:17:46 +01:00
filament-for-features.md Brim filament for features (#17655) 2026-11-17 21:58:49 -03:00
filament_id.md Resolve Moonraker lane filament_id through the shared AMS matcher 2026-10-26 17:30:42 +08:00
focus-mode.md Ignore Modifiers When Focus Mode Decides Which Plate an Object Is On (#17474) 2026-11-12 14:31:12 +08:00
gcode-preview-dragging.md Give the Section View's Cut Face the Infill Colour in the Solid Model (#17701) 2026-11-20 13:50:36 +08:00
infill-corner-smoothing.md Split smoothed infill corners no finer than 5 microns (#17630) 2026-11-17 09:54:18 -03:00
keyboard-shortcuts.md Open the Speed Dial with Space right after a tab switch, without a KWin title bar on Wayland 2026-11-14 16:02:39 +08:00
layer-cooling-time.md Time Layer Cooling With Acceleration, as the Preview Does (#17540) 2026-11-15 10:47:57 -03:00
mcp-server.md Fix hang when MCP clicks an open printer selector (#17913) 2026-11-26 20:51:59 +08:00
mcp-tools.md Ask before a plugin calls OrcaSlicer's tools 2026-11-26 02:56:29 +08:00
mesh-repair.md Rewrite Fix Model on CGAL 6.2, fix Split to parts, remove Win10 SDK leftovers (#16366) 2026-10-12 21:59:17 -03:00
multiline-infill.md Sparse infill strategy selector (#17645) 2026-11-17 21:16:40 -03:00
only-one-wall-top.md Fix top surface printing over inner walls with only one wall on top (#17597) 2026-11-17 14:39:16 -03:00
overhang-seam-preview.md Fix missing seam markers in the preview on overhanging outer walls (#16296) 2026-11-13 02:55:16 +08:00
painted-modifiers.md Painted modifiers (#16213) 2026-11-12 10:38:03 -03:00
per-nozzle-settings.md Copy per-nozzle settings to every tool of a toolchanger, and choose which unsaved changes to keep (#17461) 2026-11-11 19:18:28 -03:00
plugin-permissions.md Ask before a plugin calls OrcaSlicer's tools 2026-11-26 02:56:29 +08:00
polygon-clipping.md Speed up slicing without changing the G-code of a fresh slice (#17335) 2026-11-21 10:59:12 -03:00
precise-seam.md Precise Seam: intersect modifiers with the model surface, not the perimeter centerline (#17557) 2026-11-23 18:32:08 +08:00
preset-cache.md Merge branch 'main' into feature/mcp 2026-11-21 18:57:39 +08:00
preset-plugin-api.md Regroup the slicer's MCP commands and let each run from its arguments 2026-11-18 16:50:32 +08:00
prime-tower-sparse-layers.md Keep arranged objects clear of a compacted prime tower (#17304) 2026-11-22 16:43:49 -06:00
printer-agent.md fix: revert native device tab flag (#17162) 2026-11-02 22:09:49 +08:00
prusa-indx-profiles.md Extend Prusa's tip forming to the MK4 MMU3 and CORE One INDX 2026-10-06 18:25:06 +08:00
python-plugin-async-bridge.md feat: serialize permission grant for create and delete files (#17478) 2026-11-18 17:50:29 +08:00
python-plugin-wheel-installation.md feat: Install Python plugin wheels with uv (#17281) 2026-11-20 14:51:42 +08:00
resonance-avoidance.md Keep Outer Walls Out of the Resonance Avoidance Range in the Layer Cooling Slowdown (#17534) 2026-11-15 11:29:03 -03:00
scene-benchmark.md Say action and Speed Dial, not tile and palette, in the MCP commands and docs 2026-11-19 01:39:50 +08:00
seam-alignment.md Precise Seam: intersect modifiers with the model surface, not the perimeter centerline (#17557) 2026-11-23 18:32:08 +08:00
section-view.md Section view: percent depth, wheel on the panel, start at 50% and Follow camera (#17338) 2026-11-09 13:37:37 -03:00
selection-outline.md Outline options (#17319) 2026-11-07 11:32:51 -03:00
separated-infills.md Add center of mass markers to Prepare and Preview (#16291) 2026-10-09 16:48:48 -03:00
tooltip-illustrations.md Texture displacement: keep a tooltip on screen long enough to be seen 2026-10-13 14:30:53 +02:00
translucent-filaments.md Draw translucent filaments translucent in Preview (#16776) 2026-10-23 17:14:09 -03:00
travel-optimization.md Print gap fill after the lines next to it in fills that keep their order 2026-11-04 08:56:28 -03:00
volumetric-speeds.md Set feature speeds in mm³/s or % of max volumetric speed (#16299) 2026-11-16 17:55:09 -03:00
wipe-inward.md Fix Wipe Inward retraction splitting and sandwich wall offsets (#17160) 2026-11-03 21:41:16 -03:00