Commit Graph
294 Commits
Author SHA1 Message Date
SoftFever 7db95f5c1e Say in a word why an MCP call was refused, and how to get past it
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.
2026-11-22 13:36:38 +08:00
SoftFever 15bb082ce2 Refuse misspelt Design arguments and tell agents how to fix refused calls
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.
2026-11-22 01:28:26 +08:00
SoftFever fdf335472c Fix --run crashing at exit when a dialog is still open
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.
2026-11-21 23:41:23 +08:00
SoftFever 3ba8743720 Write replay results to the temp folder unless an output folder is given
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.
2026-11-21 23:41:14 +08:00
SoftFever 7e4b791589 Let MCP calibration tests print with any physical filament
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.
2026-11-21 20:45:39 +08:00
SoftFever 867ba9b005 Merge branch 'main' into feature/mcp 2026-11-21 18:57:39 +08:00
SoftFever b30dfcd51b Let MCP path rules answer file pickers on Linux
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.
2026-11-21 17:24:41 +08:00
SoftFever 97809fe274 Let MCP path rules answer folder pickers on Linux
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.
2026-11-21 17:24:34 +08:00
SoftFever af80804f24 Make MCP sweep tests pass in any order, one app per job
A test's verdict depended on which test had run before it on the shared data folder, and fixed pauses failed tests
on a busy machine. Each job now runs its tests in one app, every test starts from the same baseline whatever ran
before, and tests wait for the state they expect rather than for a set time; --shuffle runs the sweep in a random
order to show any test that still leans on another. The command-line test is gone, as it checked options outside
the MCP server.
2026-11-21 02:24:06 +08:00
SoftFever 3f314bad3f Stop testing that the early MCP command-line options are refused
The command-line test checked that four MCP options from before their rename are refused. They never shipped in a release, so the check guarded nothing a user could rely on, and on Windows it printed the app's full usage text into the sweep's console four times.
2026-11-21 02:23:39 +08:00
SoftFever 9d7778ec86 Make the full MCP sweep finish in about 11 minutes
A full sweep on six jobs took 17 to 19 minutes, too long to run often. Its 66 tests are
now 40 that cover the same areas with each scenario run once, and the sweep finishes in
about 11 minutes. The Speed Dial test checks a handful of commands no other test reaches,
and the sweep runs only test_*.py files; smoke_test.json and the Design replays are
played by the tests that use them.
2026-11-20 21:38:12 +08:00
SoftFever 190d6848b0 Edit mixed filaments and their gradients over MCP as the sidebar does
Agents can now read the whole filament list with filament_list, change a mixed filament with filament_edit_mixed,
and set a gradient by driving the Add or Edit Mixed Filament dialog. The slot colours and the flushing settings move
from the project tools to filament_set_colour and filament_set_flushing, beside the rest of the filament list.
Deleting or merging a filament that a mix uses now behaves as it does in the sidebar, and the settings tools no
longer edit a physical filament's preset through a mixed slot.
2026-11-20 17:15:05 +08:00
SoftFever 28203ae06d Keep MCP calls reliable on a busy machine
When the computer was busy, agents saw calls fail that work on a quiet one. A right click's context menu could open
on screen instead of reaching the call, a click could find a button still disabled, a call could report it was
blocked by a dialog an auto-answer rule had already answered, the first call through the stdio bridge could be
refused while the app it started was still loading, and a replay could fail waiting on a step that had finished.
Each of these now waits for the app to catch up instead.
2026-11-20 15:04:12 +08:00
SoftFever f81887ca13 Delete mixed filament slots and export sliced files of unsliced plates over MCP
An agent could not remove a mixed filament slot, so a project that had one never got back to a single slot, and
deleting a physical slot a mix used left the mix broken. filament_delete now removes a mixed slot as the sidebar's
list does and refuses to delete a slot a mix needs. Exporting a sliced file to a given path no longer fails on the
file name template when the plate is not sliced, as it did on the Generic Klipper Printer.
2026-11-20 15:04:05 +08:00
Ian Chua 0c62aa085e feat: Install Python plugin wheels with uv (#17281)
* feat: initial migration to let UV install plugins for .whls

* fix: clang-tidy

* Simplify plugin wheel loading through uv

* fix: use legacy loader for plugins loaded with legacy method

* fix: use same unzip name as old one

* fix: keep legacy plugins on the same path

* fix: unit tests

* fix: allow epoch versions in wheel filenames

* fix: clang-tidy

* fix: pass Unicode paths to uv on Windows

* fix: cleanup

* fix: support Windows long paths when installing wheel plugins

* fix: recognize uppercase .whl extensions in plugin discovery and dependencies

* fix: keep plain import paths for short namespace and compiled packages

* refactor: fold duplicate wheel import and cache migration branches

* fix: treat an absent package directory as a single-module import

* fix: windows long path deletion (#17703)

* fix: handle long Windows plugin cleanup paths

* fix: warn when plugin deletion removes no files
2026-11-20 14:51:42 +08:00
HanifKoh 3efe401d8e Give the Section View's Cut Face the Infill Colour in the Solid Model (#17701)
The solid model capped the section view's cut with the body's wall colour, while the two layer caps already took the infill's. The section cap now takes the infill colour sampled over every layer the solid stands for, as the body takes the wall colour, falling back to the body's colour where a body has no infill. Views that colour by filament are unchanged.
2026-11-20 13:50:36 +08:00
Ian Chua 5cf5ef881e fix: audit process by executable (#17671)
* fix: audit process execution by name, ignore args

* test: fix stale test expectations

* fix: resolve Windows subprocess audit targets from command line

* fix: preserve quoted Windows paths in process audit grants

* fix: grant shell permissions for os.system commands

* fix: require grants for all possible os.system shells

* fix: clarify process permission scope in prompts

* refactor: simplify audit target handling

* fix: handle ambiguous Windows process commands

* test: fix for ambigous calls on windows
2026-11-20 05:24:22 +08:00
SoftFever fd6f2934eb Document the gizmo and printing commands for MCP clients and developers
The command reference now describes the 13 gizmo and printing commands: which gizmo or dialog each opens, the
arguments that do the job without it, the Print button's routes for each kind of printer, and what is left to the
dialog. The server design says how the commands reach the gizmos, the print dialogs and the printer, and the test
notes name what no test reaches: the Bambu print dialogs and a physical printer.
2026-11-19 23:54:56 +08:00
SoftFever 04b533f493 Let MCP clients see and close the Action Replay window
The Action Replay window was hidden from every GUI tool, so an agent or a test that opened it could not close it,
and it stayed on screen for the rest of the run. It is now listed with a ref, its page can be read, and Escape sent
to it closes it. Its file pickers and confirmation prompts stay the person's alone.
2026-11-19 23:29:31 +08:00
SoftFever 6cd2ce1a2e Check every area of the MCP sweep with Python tests that read each step back
The sweep's objects, presets, filaments, settings, project files, slicing, gizmos and GUI tools are tested by Python
tests that compare the app's state after every step with the values their entries write out, in place of the
replays, and the existing tests' checks that could not fail now can. The calls these tests found wrong now behave
as described: moving one instance no longer sinks the others, a toolpath export writes the layers shown, an
auto-answered dialog no longer reports its call blocked, and a web dialog that has just opened takes requests.
2026-11-19 13:49:20 +08:00
SoftFever f80433cff0 Check the plates in the MCP sweep with a Python test that reads every step back
test_plates.py takes the place of the plate replays: after each add, duplicate, rename, lock, select or delete it
reads the plate list back and compares it with the state its entry writes out, and it checks what a lock keeps
Arrange and Auto-Orient from doing, a plate's own settings, the filament slots and the plate icons. Arranging a
locked plate is refused with advice that names plate_lock with the plate, instead of a needless plate_select.
2026-11-19 06:15:39 +08:00
SoftFever 1d63e52dec Say action and Speed Dial, not tile and palette, in the MCP commands and docs
The MCP commands, their catalog and the docs called a command's Speed Dial entry a "tile" and the Speed
Dial itself "the palette", words the app already uses for an entry's icon and for sets of colours. They now
say "action" and "Speed Dial", as action_search and action_run do, and the catalog's tiles, tile_group and
in_palette fields are now actions, action_group and has_own_action. Speed Dial ids, and the pins people
stored under them, are unchanged.
2026-11-19 01:39:50 +08:00
SoftFever bbda030f4d Say menu item, not menu row, in the MCP commands and docs
The MCP command descriptions, docs and code called an entry of the app's
menus a "row", the word they also use for the rows of the object list and
the app's other lists. They now say "menu item", so a row is only ever a row
of a list or table. Command names, arguments and Speed Dial tile ids are
unchanged.
2026-11-19 00:35:28 +08:00
SoftFever ba02e96c27 Document every MCP command in one reference, the Design tab's in a section of its own
The commands outside the Design tab now have a reference like the Design tab's: what each does and
takes, which menu rows call it, which calls ask in a dialog and the call that does not. Both live in
docs/HLSD/mcp-tools.md, OrcaSlicer's commands first and the Design tab's at the end.
2026-11-18 19:17:04 +08:00
Ian Chua 3838002bc8 feat: serialize permission grant for create and delete files (#17478)
* feat: serialize permission grant for create and delete files

* test: expect saved copytree permissions in hardlink audit test

* refactor: simplify plugin filesystem and permission handling

* fix: show triggering paths in plugin permission prompts

* fix: require subtree consent for recursive plugin deletes

* fix: tests

* fix: Windows short-path aliases in plugin audit checks

* fix: correct plugin folder permission display and consent text
2026-11-18 17:50:29 +08:00
SoftFever d64e10f4dd Regroup the slicer's MCP commands and let each run from its arguments
Outside the Design tab an agent had 175 commands, 50 of them in the tool
list. There are now 118, named by what they act on (`object_`, `plate_`,
`preset_`, `filament_`, `plugin_` and so on), and 115 are listed. Each takes
its target and values in the call, acts on the selection when it names no
target and says what it acted on; an old name is refused. Printers and
system filaments install and uninstall, preferences read and write, plugins
enable, reload, uninstall and refresh, and objects reorder, with no dialog
to drive.

The Speed Dial keeps its 129 tiles under the same ids. Eight defects in the
rows these commands share with the menus are fixed. For a person: an object
row that cannot run says why instead of "Select an object first.", rows
that failed no longer claim success, Duplicate Plate can be undone, and
Refresh Plugins picked while a refresh runs now runs after it instead of
beside it.
2026-11-18 16:50:32 +08:00
Ian Bassi 12c9ee813b Brim filament for features (#17655) 2026-11-17 21:58:49 -03:00
Ian BassiandRodrigo Faselli 8b3de0be86 Sparse infill strategy selector (#17645)
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
2026-11-17 21:16:40 -03:00
Lam Wei LunandIan Bassi 07f38df2a4 Fix top surface printing over inner walls with only one wall on top (#17597)
Co-authored-by: Ian Bassi <ian.bassi@outlook.com>
2026-11-17 14:39:16 -03:00
Ian Bassi e76b4d676c Split smoothed infill corners no finer than 5 microns (#17630) 2026-11-17 09:54:18 -03:00
Ian Chua 0aa479f27c fix: overlapping permission dialogs (#17318)
* fix: queue permissions dialogs

* fix: serialize plugin permission dialogs across prompt types

* fix: unit tests

* fix: move audit prompt stuff to PluginAuditManager

* fix: discard pending permission requests when plugin load is cancelled

* fix: simplify audit prompt cancellation and align denial tests with prod

* fix: queued permission prompts lost after plugin load failure
2026-11-17 14:33:17 +08:00
Ian Bassi c49e32c1e7 Set feature speeds in mm³/s or % of max volumetric speed (#16299) 2026-11-16 17:55:09 -03:00
SoftFever 74c98e197c Document the Design tab's command set 2026-11-16 21:40:27 +08:00
SoftFever 152168ee8a Give replay files a semver format version 2026-11-16 21:13:10 +08:00
SoftFever 81b93dd687 Rename and regroup the Design tab's MCP commands, and add the missing ones
The Design commands follow Fusion 360's names and grouping: one command per
job, with a `type` argument for its variants, so 133 commands become 88. An
old name or argument is refused. What the tab could do and no command
reached now has one: re-opening a committed sketch, selecting geometry,
confirming or cancelling an open tool, placing a body, sketch patterns and
dimensions, and text, SVG art and projected edges from arguments.

Ten defects in the Design tab's cards and sketch tools found on the way are
fixed. For a person: the Mirror tool binds a mirrored line or arc to its
source, Commit to Plate and Export STEP stop when the open card's Confirm
fails, and the Speed Dial keeps a query typed before its list arrives.
2026-11-16 19:50:08 +08:00
HanifKoh 191760b5cb Ship the Linux Preset Caches Before Packing the AppImage (#17485) 2026-11-16 13:49:03 +08:00
SoftFever 0604f25fd9 Make the MCP tool descriptions say what the tools do, and rename four misleading names 2026-11-16 05:14:35 +08:00
SoftFever 053d409abb Name the Design tab's commands in the search_tools description 2026-11-16 05:14:16 +08:00
SoftFever 8cccdf82d0 Make the MCP test sweep pass on Windows
Windows now keeps one window per data folder, as macOS and Linux do.
2026-11-16 04:00:22 +08:00
SoftFever d2ab05eebf Run the MCP sweep on the desktop, and answer the certificate prompt 2026-11-16 02:02:48 +08:00
SoftFever ae6aba41f3 Rename the completion and result enums clear of Xlib's macros 2026-11-16 02:02:46 +08:00
Ian Bassi 8b8d573a85 Keep Outer Walls Out of the Resonance Avoidance Range in the Layer Cooling Slowdown (#17534) 2026-11-15 11:29:03 -03:00
Ian Bassi 8a1cef365e Time Layer Cooling With Acceleration, as the Preview Does (#17540) 2026-11-15 10:47:57 -03:00
SoftFever bf85189501 Cut the MCP test sweep's run time without losing coverage 2026-11-15 14:33:01 +08:00
SoftFever 72f9c4b28c Turn the automation's GUI instruments off when nothing drives the GUI 2026-11-15 03:26:55 +08:00
SoftFever ab5f665e0a Keep the Speed Dial's Undo and Redo to where the Edit menu allows them 2026-11-15 03:26:46 +08:00
SoftFever ccfd16c51e Leave a Speed Dial command's unexpected exception to the app's handler 2026-11-15 03:26:46 +08:00
SoftFever 4eb5952232 Let a plugin file be named script.py or mcp.py 2026-11-15 03:26:38 +08:00
SoftFever e40a8a7ed5 Merge branch 'main' into feature/mcp 2026-11-15 01:01:57 +08:00
SoftFever 528d1d78f8 Keep only the MP4 of an encoded recording unless asked to keep the raw video file 2026-11-15 00:22:11 +08:00