* fix(plugins): show missing-plugin notices on preset switch; printer plugin manifest
Missing-plugin notices were rebuilt only when a plate was validated, so
switching to a preset that needs an absent plugin showed nothing on an
empty plate, and new_project() removed the notices for good (their
shown-signature stayed set). They are now refreshed on every preset
change, when a plugin loads, unloads, is disabled, deleted or
unsubscribed, and after a new project, and pushed again whenever they
are no longer on screen.
Printer presets get their own manifest key, printer_plugins: the full
print config applies the printer preset after the process preset, so a
shared "plugins" key would replace the process manifest, and printer
presets dropped "plugins" on load. Plugins referenced by the printer
preset (e.g. a Python printer agent) are reported but never block
slicing, since they do not change the sliced result. Saving a preset on
a machine that lacks one of its plugins keeps that plugin's manifest
entry, so other machines are still offered it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* feat(plugins): resource printer asset plugins for portable bed models and textures
A printer preset's bed_custom_model / bed_custom_texture hold the
author's absolute local paths, so the custom bed is lost on every other
machine and for every bundle subscriber (#15217). A resource printer
asset plugin is a pack of bed models (.stl) and textures (.png/.svg)
installed like a resource texture pack; the preset then stores a
portable reference, orcacloud-asset/<plugin id>/<file>, that each
machine resolves to its own installed copy.
- New capability type ResourcePrinterAsset ("resource-printer-asset",
orca.resource_printer_asset) with get_asset_dir(), validated at load
like ResourceTexture: inside the plugin folder, regular files only,
.stl/.png/.svg, at most 16, sorted so every file system keeps the same.
- PluginPrinterAssets tracks loaded packs and resolves references;
Plater::set_bed_shape draws the vendor bed while a pack is missing.
- Bed Shape dialog: "From asset pack..." next to each Load button.
- The hidden plugin-backed option printer_asset_plugins names the packs
the bed files come from, so the printer manifest lists them and the
missing-plugin notices offer to install or activate a missing pack
(non-blocking). A before-save hook re-derives it on every printer
preset save, and transfers between presets carry the manifest along.
- References are OS-neutral: no colon or backslash, and Windows device
names are rejected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Remove the missing-plugin notice changes from this PR
They moved to a separate PR (#16897) so this branch only carries the
printer preset plugin manifest and the slicing block rule.
Removed here: the notice refresh hooks in GUI_App and PluginsDialog,
Plater::refresh_missing_plugin_notifications, the preset-switch and
new-project refresh calls, and NotificationManager::has_notification_of_type.
The has_blocking_plugins() changes in Plater.cpp stay.
* Close the unresolved_plugin_capabilities test case
The merge with main dropped the closing brace of the new test.
* Use one manifest-key rule and cover printer plugins in tests
ConfigBase::plugin_manifest_key() is now the only definition of which key
holds a config's plugin manifest; PluginResolver used its own copy keyed by
preset type. The resolver calls the config's method instead.
Tests: a printer config keeps its printer_plugins entry for a capability not
loaded here, and a missing printer-preset plugin is reported without blocking
slicing. Comments that named the "plugins" option for every preset now say
plugin manifest.
* fix(plugins): build the missing-plugin search link without a running app
A missing local plugin gets a "Find on OrcaCloud" link, whose base URL
came from GUI::wxGetApp().getAgent(). With no app (unit tests, headless
callers) that dereferenced null and crashed refresh_missing_plugins.
Keep the default cloud URL when there is no app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test: check the printer manifest key through ConfigBase::plugin_manifest_key
PluginResolver no longer has its own preset-type helper; the config's
method is the single rule.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Include wx/app.h for wxTheApp in PluginResolver
clang-tidy's misc-include-cleaner wants the header that declares
wxTheApp included directly.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Replace the Resource Printer Asset Plugin Type With a Generic Resource Pack
A resource pack ships one folder of files, and each file declares the kinds
it serves (bed_model, bed_texture, displacement_texture) in Python through
get_resource_kinds(). Consumers list only the files of their kind, so one
PNG can be both a bed texture and a displacement texture.
PluginResourcePacks replaces PluginPrinterAssets and also serves the
existing resource-texture type as displacement_texture files, which retires
PluginResourceTextures. The resource-texture capability, its Python API,
type id, 64-file cap and extension list are unchanged.
Printer asset references stay kind-less; resolve() takes the kind of the
field being resolved, and only resource-pack entries resolve references.
The texture picker groups pack sections by pack_key so a ResourceTexture
and a ResourcePack with the same name stay separate.
Not built or run locally.
* Include the headers clang-tidy asks for in the resource pack code
misc-include-cleaner wants PythonPluginInterface.hpp (PluginCapabilityType)
in TextureLibrary.cpp, <string_view> in PluginResourcePacks.cpp,
ResourcePackKinds.hpp (ResourceKindMap) in the resource pack trampoline,
and <cstdint> in the resource pack test.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Keep the Resource Printer Asset Capability and Infer File Kinds From the Extension
Orca Cloud builds resource pack wheels from uploaded files, stores no
per-file metadata, and names its types resource-textures and
resource-printer-assets. Authors write no Python, so a pack cannot declare
the kinds of its files.
Restore the resource-printer-asset capability (get_asset_dir) and keep
resource-texture (get_texture_dir) as it is. PluginResourcePacks still
serves both from one registry, indexed by kind: bed_model (.stl) and
bed_texture (.png, .svg) for a printer asset pack, displacement_texture
for a texture pack. Each kind is capped at 16 (64 for textures) after
sorting. Only printer asset packs resolve printer asset references.
Drop get_resource_kinds, the resource-pack capability and its type id.
Rewrite docs/HLSD/resource-packs.md for the two types.
Not built or run locally.
* Keep the Texture and Printer Asset Plugin Types Separate
Orca Cloud treats resource-textures and resource-printer-assets as
independent types with no per-file kinds, so the slicer keeps them
independent too. Each has its own capability, registry, loader branch and
tests.
Restore PluginPrinterAssets as a registry of its own with a plain file
list and the extension helpers the Bed Shape dialog uses, and put the
resource texture code (PluginResourceTextures, the texture picker, its
callbacks and tests) back as it was on main. Remove the shared
PluginResourcePacks registry, the kind index and pack_key.
Replace docs/HLSD/resource-packs.md with docs/HLSD/resource-printer-assets.md.
Not built or run locally.
* Keep the Printer Plugin Keys Out of the G-code Config Dump
printer_asset_plugins and printer_plugins are newly-registered printer keys
with empty defaults, so append_full_config() would write
"; printer_asset_plugins = " and "; printer_plugins = " into every printer's
config block, machines that never install a pack included. Both are read
from the preset and never parsed back out of the dump, so ban them like
farthest_point_timelapse and the IMEX keys.
Not built or run locally.
* Move a Printer Preset's Legacy Plugins Manifest Into printer_plugins
A printer preset written before printer_plugins existed stores its plugin
references under the process preset's key, plugins. That key is not a
printer option, so remove_invalid_keys() reported it as an incorrect key and
dropped it on every start, taking with it the reference the missing-plugin
notice needs for a plugin this machine lacks.
Rename it before the validation, and merge rather than replace: a child
preset's file holds only the references it added, while the parent's
manifest already sits in the config it was built from. A config holding both
keys is a printer preset's, so the migration needs no type argument.
Cover the merge and the untouched process preset in test_config, and the
file path in test_preset_bundle_loading. Document the migration in the HLSD.
Not built or run locally.
* Say Which Presets Block Slicing in the Plugin Gate Comments
has_blocking_plugins() replaced has_missing_plugins() as the slicing gate:
only a plugin referenced by the process or filament preset blocks, while a
printer preset's plugins (printer agents, printer assets) only notify. Three
comments still described the old, type-agnostic rule: the cached
missing-plugin signature block in Plater::priv, refresh_missing_plugin_block's
return value, and plugins_block_slicing.
Not built or run locally.
* Test That a Missing Process Preset Plugin Blocks Slicing
Every existing assertion on has_blocking_plugins() is a negative one, so a
body that returned false would keep the suite green while slicing stopped
being blocked for a missing slicing-pipeline plugin -- the behavior this
change kept. Load an unresolved reference from a process preset: the gate
reports it missing and blocks, and clearing the missing-plugin sets unblocks.
Not built or run locally.
* Keep Inherited Plugin References in a Child Preset's Manifest
Preset::save wrote a diff against the parent, and save_to_json derived the
plugin manifest from that diff. A child that changed only printer_agent lost
the parent's bed pack reference, and the shortened manifest replaced the
parent's on reload. save_to_json now takes a manifest_source, and Preset::save
passes the whole resolved config.
A legacy "plugins" key in the file of a printer preset that inherits a parent
was dropped by the parent merge. The user, project-embedded and cloud load
paths and Preset::reload now move it into printer_plugins, merged with the
parent's manifest.
* Write the Printer Plugin Keys to the G-code Config Dump When Set
The config block is read back by config_from_gcode, so a printer imported from
a G-code that used a printer asset pack kept the bed reference but lost the
pack names and the manifest. The two keys are now written when they are not
empty, so a printer without packs keeps an unchanged block.
* Copy the Printer Plugin Keys When Creating a Nozzle Preset
The nozzle flow copied bed_custom_model and bed_custom_texture from the source
printer without printer_asset_plugins and printer_plugins, so a reference to a
pack that is not installed here was saved with an empty manifest.
* Describe the Manifest Derivation and the Pack Constraints in the HLD
* Redraw the Bed After a Printer Asset Pack Loads or Unloads
A texture-only change goes through update_logo_texture_filename, which does
not mark the canvas dirty, so the old texture stayed until the next paint.
The pack callback now requests an extra frame, as Plater::on_config_change does.
* Match a Printer Asset Pack by File and Keep Unusable Names Out of the Cap
capability_name() returned the first capability of the plugin whatever file
the reference named, so with two capabilities in one plugin the manifest could
name the wrong one. It now matches the file against the pack's listing, as
resolve() does, through one shared helper.
update_printer_asset_plugins rebuilt the manifest through a resolver that finds
a capability by name alone, so a loaded plugin with a capability of the same
name replaced the entry of a pack that is not loaded here. The pack's own entry
is put back.
The 16-file cap counted files a reference cannot name (spaces, device names),
which the Bed Shape dialog skips, so a pack could list nothing usable. The
listing now drops those names before the cap.
* Document the Printer Asset Capability's Python Bindings
The capability's pybind11 class and its two methods had no docstrings, so
script_list_api and script_describe_api listed them bare and "every public
member of the orca package has documentation and named parameters" failed
in slic3rutils_tests on every platform.
Say what a pack holds and how a preset refers to its files, and what
get_asset_dir must return: the checks its folder goes through once at load,
and that a rejected folder or a raised exception costs the pack its files.
Worded as resource_texture's bindings are.
* Harden the Printer Asset Pack Code Against Locale, Preset Type and a Failing Sweep
The reference charset used <cctype>, whose predicates follow LC_CTYPE. The
app pins LC_NUMERIC only and GUI_App constructs a default wxLocale, so
LC_CTYPE is the user's: on a single-byte Windows codepage a pack file named
bed_é.stl passes validation, is stored as raw UTF-8, and then parses as a
plain path on a machine with a UTF-8 or C locale, drawing the vendor bed
with no diagnostic. The HLD promises A-Z a-z 0-9 . _ -. Check those ranges
explicitly instead, in is_segment, is_windows_device_name and iends_with.
The legacy migration ran for every preset type and asked only that both
keys be present. A print or filament file carrying both had its "plugins"
moved into "printer_plugins" and erased, and the validation loop then
stripped "printer_plugins" as a non-print option: both manifests gone,
where main kept "plugins". Only a printer config has "printer_plugins" in
its defaults, so gate on that, and say so where the comment claimed a
config holding both keys must be a printer preset's.
initial_sweep() was called straight from GUI_App::on_init, outside the
loader's and the manager's guards, and it lists files. A pack file whose
name cannot be converted to the Windows ANSI code page throws
filesystem_error out of OnInit and terminates the app. Catch per
capability and log, so a fault costs the pack its files, as it does on the
loader's path.
on_cap_register() also reported a change unconditionally, so a disable and
re-enable redrew the bed for an entry nothing had altered. Compare the
rebuilt entry against the stored one: pack id, name, folder and file list.
Cover the three with tests: non-ASCII and out-of-set characters refused,
the 128-character boundary, an escaping and a dangling symlink skipped,
and the change flag staying false across a rebuild and turning true when a
file is added or removed.
* clang tidy missing header
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Lam Wei Lun <weilun.lam@gmail.com>
* Add co-extruded colors to the color picker
The color picker could make solid colors and gradients, but co-extruded
filaments (colors side by side along the strand, like dual color silk)
could only be kept, not created or edited.
Solid mode now works like Gradient where multi-color is allowed: its
colors show as blocks with the same - and + buttons. Two or more blocks
are a co-extruded color, one block is a plain solid. The Solid/Gradient
switch is unchanged. Co-extruded colors are saved as the existing
multicolor type (filament_colour_type 1, AMS ctype 1), which the
swatches already draw as segments.
Made with help from Claude
* Start a new solid from the selected gradient color
Made with help from Claude
* Carry colors over when switching between Solid and Gradient
Made with help from Claude
* Convert colors only on the first Solid/Gradient switch
Switching between Solid and Gradient used to copy colors across on every
switch, so edits made in one mode overwrote the other. Now the first
switch to a mode converts the other mode's colors, and after that each
mode keeps its own.
Gradient support now also allows co-extruded colors, so the separate
allow_coextruded option is removed.
Made with help from Claude
* Skip invalid favorites when loading instead of dropping all of them
Made with help from Claude
* Fix ColorPickerOptions initializer after removing allow_coextruded
Made with help from Claude
* Restore the original picker options at the project color call sites
With allow_coextruded gone, {true, true} already allows gradients and
co-extruded colors, so these two call sites no longer need to change.
Made with help from Claude
* Update the color picker design doc for the Solid/Gradient behavior
Made with help from Claude
* Merge gradient and co-extruded picker types into ColorMulti
Replace ColorGradient and ColorCoextruded with one ColorMulti
{colors, gradient} in ColorSelection = variant<ColorRGBA, ColorMulti>,
as suggested in review. This also collapses the duplicated gradient and
co-extruded branches in normalize, JSON load/save and the AMS conversion.
Made with help from Claude
---------
Co-authored-by: yw4z <ywsyildiz@gmail.com>
* Run the MCP sweep on GNOME Shell and fix its Linux failures
On a GNOME machine without KWin, orca_mcp.py launch --headless and the sweep now start a private GNOME Shell, so the tests run on the GPU instead of falling back to Xvfb. Picking an item far down a long ImGui list, such as a font near the end of the Text tool's list, no longer fails as out of view, and an item only half shown is scrolled into view before it is clicked. window_set restores a minimized window under GNOME Shell on X11, and the sweep's checks no longer depend on a desktop's top bar or on the fonts installed.
* Fix the window_set note unit test failing on every platform
# 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)
Any plugin could call OrcaSlicer's tools through orca.host.tools without a permission, so it could change your project, run post-processing scripts and answer permission prompts. It now needs the OrcaSlicer tools permission or full access, which it can declare as it loads or is asked for the first time it calls, like its other permissions. The Plugins dialog's Permissions tab has a switch for it, and turning it off ends what the plugin's calls left in force.
Calls into the plater, object list and tabs now say in words whether they ask a
person or run without prompts, instead of passing bare true/false flags. An
agent's project_new now does what New Project does: it shows the Prepare tab and
tells plugins about the new project.
The server doc walked through every command, repeating what the tool reference and each command's own description already say. It now covers the components, how they fit together and the design rules every command follows, and points to the tool reference for what each command does. Caller-facing facts that only the server doc held are now in the tool reference.
widget_list cut a widget's label at 120 bytes, so a long path or tooltip came back truncated, and a test that
read it back failed on a machine with a longer folder; labels now come back whole. Adding or renaming a command
or a sweep test no longer means updating hand-kept lists, copied test helpers or the same text in several docs,
and the runner's own test now fails when a sweep test has no entry in the index.
Thirty-four Design commands were bare verbs (extrude, fillet, measure), so an
agent could not tell from a name where a command acts or find a place's
commands together. Every Design command now starts with its place: design_,
sketch_, solid_, surface_, construct_, body_ or feature_. Replacing objects when
committing a design to the plate deletes them as Prepare's Delete does, and the
guide to making a feature reachable covers Design commands.
Each place an agent finds commands under (Objects, Plates, View and windows and so on) now has one source file
under Mcp/Tools/, and the Design tab's commands have one file per Design heading, so a developer finds a command
where tool_list lists it and adds a new one beside its neighbours. A unit test fails when a command is added in
another place's file. No change to what agents or people see: the command catalog is byte-identical.
On a busy machine, dialog_answer could reply without closed: true for a dialog its answer ended, such as a web
dialog cancelled while its page was still busy, although the dialog closed a moment later. An agent was then told
the dialog was still open. The reply now says closed for every dialog an answer ends, message boxes included,
however busy the app is.
When the test that launched a job's app passed, the sweep deleted that test's folder while the app was still
running in it. Later tests in that app then failed on the first preset reload with "boost::filesystem::current_path:
No such file or directory", as test_printers, test_settings and test_speed_dial_open did. The job's app now runs in
a folder of the job's own.
The settings reads now place a printer's extruder settings on its Extruder page on every printer. After a printer
with several extruders, they could put a setting on a page such as "Extruder 3" that the selected printer does not
have, and leave it out of the page it is on, which made test_presets fail when it ran after test_printers.
The sweep can also run every app on a private Xvfb display with --xvfb, for a machine without a desktop, and with
--headless or --xvfb the tests that start their own apps stay off the desktop too. Where Openbox is installed, Xvfb
runs it as the window manager, so drop-down lists and popups stay open as on a desktop and the whole sweep passes
there. Apps launched side by side each get a display of their own, and test_slice_preview no longer fails where the
3D view draws slowly, as on Xvfb.
A test that fails beside the others and then passes alone no longer runs alone in every later sweep: each sweep
runs it among the others again, so a failure that returns is seen, and --forget, which undid that, is gone. Only
the tests sweep.json marks exclusive run alone from the start.
A new pane, opened from View > Agent Activity or the Speed Dial, lists live what an AI agent and other
automation (Action Replay, Run Script, the command line, plugins) do in OrcaSlicer while it is open: each
call with its source, what it changed, failures with their reason, the steps of a run and the dialogs a
rule answered. Opening a call shows its request and response with passwords, keys and typed text masked,
so a person can watch and check what an agent is doing to their project.
A replay someone sends you can hold a Python script or set a post-processing
script, and either runs a program on your computer when the replay plays. The
window listed those steps with no warning. They carry a "Can run a program"
tag, as a step that writes a file or sends to a printer carries its own, and a
step that makes its call through tool_call shows the tags of that call.
A square drawn on the axes through sketch_draw was locked level on x64 but could be
left free to rotate on arm64, so its constraints and degrees of freedom depended on
the CPU, and the test of them failed on macOS arm64 and Windows arm64. A polygon's
side that lies on an axis is now pinned Horizontal or Vertical on every platform, as
the Polygon tool pins it, so such a square has all four sides pinned.
* Precise Seam: intersect modifiers with the model surface, not the perimeter centerline
A modifier acted where it crossed the centerline of the printed perimeter, which
lies about half a line width inside the model surface and deeper at corners. It
now acts where it crosses the model surface.
- The surface is reconstructed from the centerline by a shift of half the
external perimeter width less the XY compensation and a 5 um margin, clipped
against the modifier and carried back onto the centerline.
- On elephant foot layers and with Arachne the shift is measured against the
layer's islands.
- With fuzzy skin the perimeter generator keeps the centerline before texturing
(ExtrusionLoop::untextured); modifiers are evaluated on it and the points are
carried onto the noisy loop.
- Open extrusions are left out of Precise Seam.
- The "had no effect" warning no longer names the centerline.
See docs/HLSD/precise-seam.md.
* Precise Seam: fuzzy skin window per loop kind; no negative search reach
The transfer window of a fuzzy skin loop counted every region with fuzzy
skin on the layer, including those that do not texture its kind (a Hole
region for contours, an External one for holes). FuzzySkin.cpp skips such
regions, so mixed settings widened the transfer search and the weak zone
order check. The window is now computed for contours and holes separately
from the regions should_fuzzify() selects, as a function in
PreciseSeamInternal.hpp with a unit test.
The modifier prefilter of the measured shift no longer takes a negative
reach: a compensation beyond the whole wall depth leaves no shift.
* Precise Seam: shift narrow classic loops by their own line; keep the warning translations
Without thin wall detection the classic generator prints an island too narrow for
two lines with a thinner line and insets the loop by half of that width, while the
surface shift used the region's external perimeter width. The reconstructed
surface lay 0.055 x spacing - 5 um outside the model, more than the margin, so a
modifier flush against the face acted on such loops. The shift of a classic loop
now comes from the width of its own external perimeter path; Arachne loops are
measured as before.
The two "had no effect on the seam" messages lost their bracketed part, and the
catalogs dropped the old entries without getting the new ones. The entries are
back under the new msgids with the existing translations, trimmed of the
bracketed part.
* Precise Seam: keep the aligned seam inside an Enforced modifier zone
A loop with an Enforced zone in effect now has exact ends: alignment no longer
moves the seam up to 0.2 mm past a zone boundary, and Random does not sample
the edge leaving the zone.
* Precise Seam: test both ends of an Enforced zone in alignment
The regression test for the aligned seam leaving an Enforced modifier zone
ran on the right face only, where the stepping end of the zone is the last
candidate of the Enforced run. It now also runs on the left face, where the
same end is the first candidate, so both directions of the allowed arc are
checked.
The HLSD notes that a zone reduced to a single candidate holds the aligned
seam on it, so alignment cannot smooth its shift between layers.
With "No sparse layers" on, Arrange and Fill bed keep objects as far from the compacted prime tower as the slicer's clearance check needs. Objects stay the toolhead radius away, or 4 mm when none of the objects being placed is taller than nozzle_height. Objects taller than the rod clearance are also kept out of the tower's Y span, and the final alignment of the pile is skipped in that case. Placing a newly added object keeps the full toolhead radius.
With the option off, arranging is unchanged.
Fixes#17566
An agent that read an object's id in object_list could only pass it as a guard beside the index, and the index moves
whenever objects are deleted, split or reordered; an id passed as an index was refused without saying what it was.
Every command that names an object, a part or an instance now takes its index or its id, both together still a
guard, and object_list gives each instance's id too. An id given as an index is refused with what that id names, and
recorded replays keep naming targets by index, so they still run in a new session.
The ten largest definitions in the tool list repeated much of what their parameters already say. They now
say it once, taking about 4.9 KB off the tool list an agent reads at the start of every session, with
nothing they described left out.
Agents can tell an argument or a reply field from an English word in every tool description. The
server instructions say what the Speed Dial is, a call held by a dialog says how to run it without
asking next time, and object_add_text and object_add_svg say what they reply.
Agents load less text before their first call: the object and part id guards are explained once
in the server instructions instead of in every schema that takes one, and each tool's title is
sent once.
Agents now read an object's position as 60.001 rather than 60.001007080078125, and a Design
command's zero as 0 rather than 4.4e-16, without the wrapper and ok flag that said nothing; a
client that computes with the numbers can still ask for them whole. object_list gives a short row
per object unless asked for detail, so a plate of a hundred objects fits a client's reply limit,
and app_log returns 50 lines by default.
An agent connecting to the MCP server now reads, right after the workflow, how each catalog is found
by listing: commands place by place and the rest through tool_list, a command's manual before calling
it through tool_call, settings by page, Speed Dial actions by section and the Python API by module.
A plugin schema can close an object through a keyword the manual keeps raw, such as allOf. The manual
then no longer says the object, or the call, takes other keys, and leaves the attached schema to say
what it accepts.
Every object in a manual now says whether it takes keys besides its properties, at any depth, as the top
level already did. A plugin schema whose properties can't be read now comes with the raw schema instead of
looking like one that takes no arguments.
An agent reading a manual now learns where a filament's purge mode, a calibration's shaper type, a
hole's point, printer_install's models and dialog_answer's dialog come from, and sees that a plugin
operation can reach outside the app. What a plugin's schema says that the manual can't show, such as a
required argument with no property, now comes with the raw schema, and a schema that takes any argument
says so instead of looking like one that takes none.
settings_get and preferences_get matched an agent's words, so a goal such as "add a brim" found the wrong
settings. Agents now list a settings tab's pages and groups with settings_list_pages, read a page's settings
and what each does with settings_list, and read named settings with settings_get and preferences by tab
with preferences_get.
script_search_api ranked the API by an agent's words, so a goal phrased in other words found the wrong entries.
Agents now list what a module or class holds with script_list_api and read one entry's whole documentation
with script_describe_api.
action_search ranked actions by matching an agent's words, so an action named differently from the request
was missed. action_list lists them by section and title for the agent to choose from, as tool_list does
for commands.
Agents listing the Design tab's commands, or any other group, got bare names and had to look each one up to
choose. tool_search {group} now gives each command's first sentence and, in Design, its heading, in the order
the description's index uses. action_search names the Speed Dial's sections section rather than group, so they
are no longer mistaken for tool_search's groups, and a wrong section is refused with the sections there are
instead of returning nothing.
Design commands were refused with numbers such as -32002 or with no code at all; they now say design_busy,
precondition, invalid_argument, rebuild_failed and the like, so an agent can tell a wrong argument from a design
that is not ready, on every route that takes arguments. Refusals worded for a person, such as an open gizmo or a
selected object, carry a hint naming the call that gets past them, and an index too large for the app or written
as 2.0 is no longer misread as another object, plate or instance.
A misspelt argument to most Design commands was ignored, so the command ran with
its default, such as a helix built with the default pitch. Every Design command now
refuses it and names the arguments it takes. Refusals of a missing object or part,
an unknown setting key, an invalid setting value or a preset that is not installed
now say the valid range, the similar keys, what the setting takes or the command
to use, and plate_add and object_add_handy_model say what they added.
A --run launch that ended with a dialog open, such as the prompt to restore an unsaved project left by an
earlier session, crashed while closing and returned a crash code instead of the replay's result. It now
closes the dialog first and exits with the replay's code, and it no longer asks about or discards a
person's unsaved project, which their next normal launch still offers to restore.
Replays that name no output folder, whether run from Action Replay, by an agent or with --run, left a
<name>.out folder beside the replay file or filled the data folder. They now write to a new
orca_action_replay/replay-<time> folder in the temp folder, or inside --outputdir when a --run launch names one.
calibration_generate_test always printed with filament slot 1, so an agent could not calibrate another filament of
the project or, on a multi-extruder printer, the nozzle that prints it. It now takes filament_slot, as the
Calibration dialogs' filament list offers, prints on the extruder the filament map gives that filament, and says in
its reply which extruder that is.
A dialog_auto_answer rule with a path still cancelled every open and save file picker on Linux, so a script
couldn't save or open a project through the File menu or insert an SVG in the Design tab there, and the sweep
skipped those steps. File pickers now take the path as on Windows and macOS. This needs the updated
wxWidgets, so rebuild the deps.
A dialog_auto_answer rule with a path cancelled every folder picker on Linux, such as the Preferences
download folder's Browse and the recording dialog's Change..., so a script couldn't pick a folder there and
the sweep's Preferences and Speed Dial tests failed. Folder pickers now take the path as on Windows and
macOS; file pickers still cancel on Linux.