mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-11-26 23:29:14 +00:00
33537 commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
5c30e3ee97
|
fix #17904: hide long gpg signature text from git_commit_hash.h (#17905)
Some checks are pending
Build all / Linux x86_64 (push) Blocked by required conditions
Build all / macOS arm64 (push) Blocked by required conditions
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_arch (push) Waiting to run
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 / 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
GitCommitHash.cmake: obtain hash via git rev-parse instead of git log for git_commit_hash.h (OrcaSlicer#17904) when git config log.showSignature=true, the default format for git log contains the gpg signature. this breaks the git_commit_hash.h file generated by GitCommitHash.cmake. fix: obtain hash via rev-parse instead which does not have formatting and intended for picking out paramteters such as this case. |
||
|
|
d528c0ea9a
|
Retry the macOS admission check after a truncated API response (#17859)
json.load in Api.get raises http.client.IncompleteRead when GitHub drops a response partway. That is an http.client.HTTPException, which wait() did not catch, so one dropped response failed the "Wait for a macOS runner" job and skipped the macOS unit tests. wait() now catches HTTPException and counts it as a failed read like the other API errors, then polls again. URLError comes out of the tuple because OSError already covers it. |
||
|
|
d42123d2f1
|
Fix hang when MCP clicks an open printer selector (#17913)
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
# 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) |
||
|
|
04603d6ccd
|
Official OrcaSlicer MCP support (#17819)
Some checks are pending
Build all / Linux x86_64 (push) Blocked by required conditions
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_arch (push) Waiting to run
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
Check CAD offer table / Check CAD offer table (push) Waiting to run
Post-merge profiles / Publish profile caches (push) Waiting to run
Shellcheck / Shellcheck (push) Waiting to run
* Give the MCP server its own AI features group in Preferences
The group shows whether agents can connect and at which address, and copies a
ready-made setup for Claude Code, Codex, opencode, DeepSeek Harness or other
apps. A second OrcaSlicer window on the same configuration folder says another
window is serving agents and takes the server over when that window closes.
* Let users choose HTTP or stdio when adding OrcaSlicer to an agent
* Refuse Design tab reads while a rebuild owns the document
* Let MCP clients drive every gizmo
Also fixes a crash when a script answers the primitive size dialog, the Simplify ratio box being
ignored, a Measure crash after a reload, and Mesh Boolean showing a bare "tool" label.
* Let MCP clients do the OrcaSlicer tasks the agent benchmark found missing
* Point agents at the MCP harness instead of an in-repo skill
* Add explain_settings so agents can look up what settings do
It returns each setting's full tooltip, its page and group, and its wiki link, maps every setting
by page and group, and finds settings by the words of their help text. get_settings no longer
includes tooltips in its metadata.
* set window size to 1920x1200 for MCP scripts
* Add a Run Script dialog for running MCP scripts in the app
* update git ignore
* Add app recording and screenshots for MCP agents and the Help menu
Agents can record OrcaSlicer to video, captioned with the current tool call, and encode it to MP4.
People get Take Screenshot and Start/Stop Recording in the Speed Dial and the Help menu, with a
dialog for the recording and encoding settings.
* Stop the app flickering while a recording runs on Windows
* Make recording overlays opt-in, with pointer and caption switches in Start Recording
* Let agents ask for an MP4 when starting a recording
* Show a REC pill in the tab bar while a recording runs
* Make the MCP tools easier for agents to use
get_settings now gives each setting's description and settings page and finds settings by what
they do, replacing explain_settings. set_view orbits the camera by degrees, the same on every
install, and a painting stroke that would miss the object is refused with the pixel to start it
at instead of turning the camera. Tools accept the argument names and forms agents commonly use,
save_project refuses a .gcode.3mf path, and select range-checks part and instance indices.
* Keep the Run Script dialog in front after its file picker closes on macOS
* Add a script editor with suggestions and saving to the Run Script dialog
* Show the recording and screenshot icons in the Speed Dial at full size
* Keep the Run Script dialog in sight while a script runs on macOS
* Let MCP agents read and drive web dialogs and plugin pages
Agents can also answer a native message box that is already open (Windows and Linux), and URLs in
replies hide credential values.
* Fix MCP canvas captures failing right after a tab switch on Wayland
* Add missing includes in the MCP sources and the recording dialog
* Make the MCP harness and its test scripts executable
* Stop the MCP stdio bridge leaving a quit OrcaSlicer as a zombie process
* Report frames that failed to encode in stop_recording's result
* Tell MCP agents when a call fails because the display is off
* Name the open dialog when a script step times out waiting for its job
* Make canvas screenshots taken right after a layer or view type change show the change
* Add Python scripts and plugin tools to the MCP server
The MCP tools are listed in core, API and UI lanes. With Python scripts turned on in Preferences, agents
and people can run Python against the open app; plugins holding the tools permission can call the tools,
and plugins can offer operations of their own to agents. Calls can pin object and volume ids so a stale
index is refused, and run_script takes a script as JSON text as well as an object.
* Run Python scripts like python file.py, with the whole plugin API
* Document the whole orca Python API and search every catalog from api_describe
* Tell agents which scope a setting belongs to when they name the wrong one or none
* Ask for approval only on MCP calls that delete without undo, and mark the tools that reach outside the app
* Let agents select hidden filaments and printers by name
* Show agents the selection, the Python setting and the Design tab in get_state
* Tell agents what list_objects ids are for and how paged replies continue
* Make the MCP tool descriptions shorter and consistent, with the UI locators described once
* Explain in the MCP design doc why tools have no output schema
* Let the MCP harness call api_call, whose argument is named tool
* Read a modal dialog's controls and values into its MCP message
* Let install_local_plugin take a plugin file's path
* Report why a local plugin install failed
* Show Speed Dial plugin refreshes and installs in an open Plugins dialog
* Show a reloaded local plugin's new version in the Plugins dialog
* Give python_api's static methods their own documentation
* Give register_operation a signature Python can declare
* Correct the MCP web fixture's comments on its thread command
* Start OrcaSlicer from the stdio bridge only when a tool is called
* Show dialogs in Wayland recordings and stop blank Wayland window captures
* Show popups, context menus and tooltips in Wayland recordings and screenshots
* Show popups in Windows and macOS recordings and screenshots
* Keep MCP canvas clicks working when OrcaSlicer is in the background
* Show context menus, dialogs and web views in macOS screenshots and recordings
Recording frames are also spaced as documented when capture is slow, and a drop-down that has left the screen is no longer drawn into macOS frames.
* Fix Windows popup capture and MCP stalls in native menus and dialogs
* Move the MCP server only when its port is edited in Preferences
* Vendor Ace 1.45.2 for the script editors
* Split Run Script into Action Replay and a docked Python Run Script panel
* Add an MCP tool that lists open windows with refs for screenshots and input
* Give MCP tools plain names and call recorded tool lists replays
* Keep the call_cad_tool registration with the Design tab's MCP code
* Move the Design tab's MCP code next to the MCP server
* Reach the Design tab only through the MCP server
* Give every CAD tool a one-line summary and details
* Add list_cad_tools and describe_cad_tool and call CAD tools by tool and args
* Attach orca_mcp.py to a running app and call CAD tools from Python
* Give the CAD read and sketch tools runnable examples
* Give the CAD solid, dress-up and datum tools runnable examples
* Give every CAD tool runnable examples
* Bound the MCP journal by the size of its calls' arguments
* Run the CAD sketch checks against the app's MCP server
* Remove the Design tab's Docker test setup and check its offer table in CI
* Correct CAD docs and comments that disagree with the code
* Pin the journal's byte accounting and the CAD table's id notes in tests
* Find a portable OrcaSlicer through a symlinked binary in orca_mcp.py
* Correct when the Design tab is created and why sketch_set_value exists
* Describe orca_mcp.py's macOS datadir lookup as the stdio bridge's
* Keep the MCP journal's trim linear and its lock short
* End the journal entry of a job that never runs
* Clarify the CAD tool descriptions and examples
* Tidy orca_mcp.py's CAD helper and its tests
* Describe CAD checks and sketch code as they are, not as they were
* Finish describing the CAD sources and checks as they are
* Describe thicken_surface's capped and simple paths as they are
* Say which sheets thicken_surface refuses
* Report sketch loop areas as positive whichever way the loop runs
* Report degrees of freedom instead of -1 for sketches with no constraints
* Keep constraints among entities a sketch transform moves together
* Build revolve's default rectangle beside the axis instead of across it
* Report every bad example reference and describe the sketch code as it is
* Move the Design-tab GUI checks into the MCP tests
* Fix four Design-tab sketch bugs the GUI tests found
A sketch with thousands of constraints no longer freezes the app, the first value field after launch
takes typed digits, an array's spacing and copy count can both be typed, and cancelling a new Text
removes it.
* Let auto-answer rules answer file and folder pickers with a path
* Run the Design-tab GUI tests through MCP on every platform
* Refuse MCP clicks on main menu items the app would show greyed
* Report the selected sketch constraint over MCP and test badge selection in the Design GUI tests
* Add set_window and set_view camera target and zoom over MCP
* Mention set_window in the MCP server instructions and keep them under 4096 characters
* Load the flow ratio calibration models without the 3MF import dialog
* Make set_window work on Wayland and on an X server without a window manager
Also keeps a polygon drawn near an axis regular in the Design tab, and lets the Design GUI tests run on Linux.
* Launch MCP harness instances on a private headless desktop on Linux, falling back to Xvfb
* Point MCP name misses at the right catalog and give each argument one name
A tool, Speed Dial action or CAD tool called through the wrong tool is told
where it runs, search_actions ranks a query's words as search_tools does, and
every list replies with items.
Renamed arguments: set_view's target and view are look_at and canvas,
list_widgets' root is target, mouse_gesture's path is waypoints, the presets'
changes is preset_changes, set_height_ranges' layer_config_ranges is ranges,
and the main window is "main" for screenshot and start_recording.
The harness's launch takes --python-scripts to allow Python scripts in the
instance it starts.
* List objects by plate over MCP and call a part "part" in every tool
list_objects replies as the Objects panel is laid out: each plate with the
objects on it, then the objects on no plate. list_plates gives how many
objects a plate has, and every tool refuses a plate the project lacks in the
same words.
* Drop the old MCP names the server still read and the text that still used them
set_view's view, the print scope and window for the main window are refused
like any unknown name.
* Reduce script permissions to a single "run unrestricted" switch
Python scripts always run and follow the plugin permission checks; the switch in Preferences lets
them bypass the checks. Plugins call the tools and offer operations without a separate permission.
* Fix macOS issues found driving the app over MCP
set_window brings a window minimized while zoomed back to normal, and its documentation covers
raising windows and native dialogs. A right-click in the Design tab picks what it points at on
Retina displays, where the Design tab GUI tests now run too, and the Text dialog opens in a plain
font. The app no longer hangs when dialogs open and close with the display asleep, and no longer
crashes when a new project or a delete removes an object that has parts.
* Run commands, tools and the plugin API through one operations layer
A Speed Dial command, the MCP tool that does the same thing and the plugin
API's preset calls now run one shared operation, so every route accepts and
refuses the same states, with one wording and a code for each refusal. An
import by a command or a tool is one undo step, and import_file adds geometry
only.
The cases where two routes behaved differently now behave the same: a project
is not saved under a .gcode.3mf name, an empty project exports as .3mf but not
as STL, arrange runs from any view and with a gizmo open, a mixed-colour
filament slot is refused as one, a hidden preset is shown before it is
selected, and a layer is refused while the Preview has none.
* Hold Speed Dial commands, MCP tools and Design tools in one command catalog
Every command takes JSON arguments and has one function for a person and for
automation: with no arguments it does what a person's pick does, and with
arguments it runs silently. The Design tab's CAD tools are commands that
call_tool runs, and they show as Speed Dial tiles on the Design tab.
* Correct what command descriptions and the skill reference tell agents
A Design tile's command says it follows its right-click menu row and may
decline, export_config says how its rows are named, and the generated skill
reference says which commands are the person's own and how the Design tab is
turned on.
* Fix the sketching test's undo check and a missing include found on Linux
* Open the Speed Dial with Space right after a tab switch, without a KWin title bar on Wayland
* Fix MCP menu paths, CAD-off replies, test-instance sign-in, Preview focus and clang-tidy on macOS
* Make the MCP harness and page tests pass reliably on a loaded machine and on macOS
* Make the automation runtime its own subsystem, with MCP as one front end
Everything that drives OrcaSlicer by command (the dispatch of the command
catalog, jobs, the journal, replays, Python scripts, recordings) lived
inside the MCP server's service class. So Action Replay, the Run Script
panel, a plugin's tool call, a person's recording and a run from the
command line each had to start "the MCP service", with all of its GUI
hooks, although none of them needs a server or an agent.
The automation runtime is now a subsystem of its own. It starts the first
time a front end asks for it and knows none of them. The MCP endpoint
(HTTP, the protocol, the token, the discovery file, the takeover of a port
another window holds) is one front end beside the others, opened and
closed without stopping what the others run. The widget inspector, menu
capture and ImGui item recording are turned on only by a front end that
drives the GUI, so a person's recording or long command does not carry
them.
The part of the runtime that needs no GUI is the library
libslic3r_automation, built without wxWidgets and tested by its own suite,
automation_tests. A wx dependency in it fails to build, and its tests no
longer link the GUI library or the embedded Python.
The command line has one option set for this: --run FILE runs a replay or
a Python script once the GUI is ready, with --outputdir for its files, and
--unrestricted-scripts and --cad turn their settings on for one run
without saving them. --mcp-run, --mcp-run-out and --mcp-token are gone;
the scripts setting is python_scripts_unrestricted and a session's output
folder is <datadir>/automation/out. get_app_state reports ready and
version at the top level, and its mcp block describes the endpoint only.
No change to slicing output.
* Keep only the MP4 of an encoded recording unless asked to keep the raw video file
* Expect keep_raw_video_file among the start_recording command's arguments
* revert localization/i18n/OrcaSlicer.pot
* Let a plugin file be named script.py or mcp.py
* Leave a Speed Dial command's unexpected exception to the app's handler
* Keep the Speed Dial's Undo and Redo to where the Edit menu allows them
* Keep menu update handlers away from a freed context menu's items
* Turn the automation's GUI instruments off when nothing drives the GUI
* Cut the MCP test sweep's run time without losing coverage
* Keep the Design toolbar at its own height when the Design tab first opens
* Open every MCP test instance at 1600x900 in the top left of the screen
* Rename the completion and result enums clear of Xlib's macros
* Run the MCP sweep on the desktop, and answer the certificate prompt
* Click a partly shown list row, and let a refusal keep its result.json
* Make the MCP test sweep pass on Windows
Windows now keeps one window per data folder, as macOS and Linux do.
* Name the Design tab's commands in the search_tools description
* Keep layer G-code when New Project's prompt is cancelled or saves the project
* Report a project save that wrote nothing as not saved
* Make the MCP tool descriptions say what the tools do, and rename four misleading names
* 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.
* Give replay files a semver format version
* Document the Design tab's command set
* 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.
* 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.
* 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.
* 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.
* Catalog the MCP sweep tests and design their Python replacements
Every sweep test now has an entry, by area under tools/mcp/test-entries/, saying what it checks, how it decides pass
or fail and what it leaves unchecked, and TESTS.md holds the rules a new test is designed by before it is written.
The entries also design the Python tests that take the place of the replays, which leave the sweep as those land;
the fifteen operation replays that could not fail are removed now.
* 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.
* 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.
* Design the sweep tests for the gizmo and printing commands
The sweep's entries now describe the tests for the commands that open a gizmo or a print dialog on a target and,
where they can, do its job from arguments: what each step must leave behind and how every refusal is told apart.
They also take every sweep call that would open a Bambu printer's Print or storage dialog off the scratch datadir,
so no test run messages a real printer.
* Check that a refused gizmo opening leaves the selection as it was
The gizmo commands' test design now also checks a refused opening made while another gizmo is open, and says which
refusals put back the selection the call had changed and which come before it changes anything.
* Let MCP clients open the painting, Measure, Simplify and Mesh Boolean gizmos on a named object
object_paint, object_measure, object_simplify and part_boolean open their gizmo on the object, instance or part a
client names, where before a client had to know the gizmo existed and click its icon after selecting. A refused
opening says why in the gizmo's own terms, such as Mesh Boolean needing two parts, and leaves the selection and the
undo history as they were.
* Let MCP clients cut an object along a plane with object_cut
object_cut cuts an object at a height or along any plane, keeping either piece or both, laid where the Cut gizmo would
lay them or kept as two parts of one object, in one undo step, as the gizmo's Perform cut does. Named with only its
object it opens the Cut gizmo on it, for connectors, the dovetail and cuts along a contour. A plane that misses the
object, or an object with connectors, is refused with the model left as it was.
* Let MCP clients lay an object on a face, set its brim ears, and add text or an SVG to a named object
object_lay_on_face turns an instance so that the face a direction names lies on the bed, as a click in the Lay on Face
gizmo does, and object_set_brim_ears places brim ears at bed positions, or clears them, as the Brim Ears gizmo stores
them; called with only their object, both open their gizmo. object_add_text and object_add_svg can name the object the
part joins and make it a negative part or a modifier. The Brim Ears gizmo shows ears set this way when it next opens,
rather than writing back the ones it held.
* Let MCP clients start a print, send to a Bambu printer, and test the print host
print_start opens the dialog the Print button opens for the selected printer, for one plate or all of them, and is
refused where the button would be disabled, such as for a plate not sliced. printer_send, and the Send G-code Speed
Dial action with it, open the dialog that sends to a Bambu printer's storage where they used to refuse such a printer,
and take the plate to send. printer_test_host checks that the printer's print host answers, as the Test button of its
connection dialog does.
* Let MCP clients read the connected printer's status and pause, resume or stop its print
printer_status reads what the Device tab shows of the printer it is connected to: its state, progress, layer, the
file printing and the temperatures, with no serial number and nothing sent to the printer. print_pause, print_resume
and print_stop do what the tab's buttons do, and are refused, saying why, where the printer's state does not allow
them or a job can be resumed only at the printer.
* 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.
* 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.
* Fix object_cut on planes just off straight down, and text added with several objects selected
An object_cut plane tilted less than a degree from straight down was cut level, and object_add_text or
object_add_svg given only a part type, with several objects selected, made a new ordinary object. The cut now keeps
the plane's tilt, the add is refused one_object_only, and the sweep also checks lay on face's refusals, clearing
brim ears with the gizmo open, and print calls that name a plate.
* Add a typed text or SVG to an object when only its negative part or modifier is selected
object_add_text or object_add_svg given only a part type, with nothing but a negative part or modifier of an object
selected, made a new ordinary object. It now selects that object whole and adds the part to it, as a right click on
the object's row does before its Add Part, Add Negative Part and Add Modifier menus.
* Keep the flush multiplier when viewing a G-code file
Viewing a G-code file set the project's flush multiplier to 1 whatever the file was sliced with, and
the 1 stayed through a new project, a preset switch and a restart, so every later multi-colour slice
purged several times as much. The project now keeps the file's own multiplier, and the preview still
shows the purge volumes the file was sliced with.
* 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.
* 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.
* Run the MCP sweep on shared data folders with the Generic Klipper Printer
The sweep made a fresh data folder for every test, copying all of Bambu Lab's profiles each time, left tens of
gigabytes of run folders behind, and failed outright on a test that only failed while other tests loaded the
machine. Each job now keeps one data folder for all its tests, seeded with the Generic Klipper Printer as a person's
folder carries over from day to day; a test that fails beside others runs again alone and is remembered as one to run
alone; and a passing test's folder is deleted as soon as it passes.
* Thread bores reliably wherever the part sits on the bed
In the Design tab, threading a bore could fail with "thread removed no material" depending only on
where the part sat: an M5 standoff at the centre of a 250 x 250 mm bed could not be tapped, while the
same part a few millimetres away could, and some blind holes could not be tapped anywhere. Threads now
cut into through and blind holes alike, at any position.
* Fix the MCP sweep's files and preferences tests failing on the DRC depth
Both tests still set the DRC depth to 0, a value the Preferences dialog does not take, so they failed. The files test
now checks that the depth is the app's lossless default and fails by name on a data folder set to a lossy one, and the
preferences test no longer checks a value outside the dialog's range.
* Say what the slice preview test leaves now that viewing G-code keeps the flush multiplier
The test's entry still said a viewed G-code file leaves the flush multiplier at 1. It now says the test leaves the 0.3
its start sets, and why that start still sets it: the filaments test leaves the same printer at 1.4.
* Say which slot colours and flush multiplier the filaments test leaves
A developer reading the filaments test's entry could not tell that it leaves white and black slots and a flush
multiplier of 1.4 on the shared data folder, which the next test meets and a two-colour slice purges more for.
* 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.
* Keep sf-plan design and planning files out of the repository
* 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.
* Let agents answer the mixed-filament merge warning on macOS
Merging a filament into a mixed filament that uses it asks for confirmation first. On
macOS that question was a native alert, which held the app so an agent driving it over
MCP could neither see nor answer it. It now opens in Orca's own dialog, as the app's
other warnings do, with the same text and buttons.
* Fix crash when a web window is closed as soon as it opens
On macOS, opening the Action Replay window and closing it straight away with Escape
crashed OrcaSlicer a moment later. Web windows can now be closed the moment they open.
* Make the MCP sweep's tests pass on macOS
Several sweep tests failed on every macOS run while passing on Windows: the Run Script
panel and plugin command checks, the auto-orient placement check, and the Design tab's
edge re-pick checks. They now pass on both.
* Fix renaming in the Design tab ending as soon as it starts on Linux
* Make test_cad_commands pass when another app takes the focus on Linux
* 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.
* 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.
* Clear every sweep test's serial mark at once with --forget all
* 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.
* 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.
* Bring the checked-in command reference up to date with the Linux picker rules
The reference still said a path rule cancels a file picker on Linux and that a save picker needs a new
file, so the reference test failed.
* 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.
* Start Action Replay with a replay that slices the Orca Cube on a new plate
The Action Replay window now opens with a replay that adds a plate, puts the Orca Cube on it, slices that
plate and saves a screenshot of the preview. It checks that the new plate really sliced, so it fails
instead of passing on an empty plate.
* 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.
* 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.
* 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.
* 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.
* Show what each command does when tool_search lists a group
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.
* Give agents a manual for any MCP command with tool_describe
An agent could read a command's arguments only as raw JSON Schema, with its conditional rules left to decode and
no word on where an object index or a face id comes from. tool_describe now gives any command's manual, listed or
not: every parameter at every depth with its allowed values, ranges and defaults, the schema's rules as sentences,
the Speed Dial items that run it with their arguments, its examples, and which tool lists a value the schema can't.
* List the commands tools/list leaves out with tool_list, in place of tool_search
tool_search matched words, so an agent that asked for a goal such as "add a brim" or "round the edges"
got unrelated commands. Agents now read tool_list, which lists the Design tab's commands, the menu items
that take no arguments and the plugins' operations with what each does, and a call refused for its
arguments names the tool_describe call that gives that command's parameters.
* Document how agents find and read commands with tool_list and tool_describe
* List the Speed Dial's actions with action_list, in place of action_search
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.
* Browse the Python API a module at a time with script_list_api and script_describe_api
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.
* Browse settings by page with settings_list_pages, and read them by key
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.
* Pass clang-tidy on the MCP list tools and drop the docs' last search wording
* Point tool_describe's manuals to more values' sources, and keep plugin rules
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.
* Say in tool_describe's manuals which objects take keys they don't list
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.
* Keep tool_describe from calling an object open when a plugin schema may close it
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.
* Say in the MCP design doc exactly what a manual leaves out for a raw schema
* Say where tool_describe keeps a schema part it cannot show
* Tell agents in the server instructions how to find what to call
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.
* Tell agents which catalog filters are optional and that values_from may name several tools
* Say in the server instructions that values_from belongs to a parameter
* Keep MCP replies short and free of float noise
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.
* Shrink the MCP tool list
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.
* Mark names as code in the MCP tool descriptions
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.
* Shorten the longest MCP tool descriptions
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.
* Let MCP commands name objects, parts and instances by id
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.
* Fix the CI failures from the first build and test run of the MCP branch
The Flatpak build failed to compile the MCP bridge, clang-tidy flagged four missing
includes, and several new tests failed only on CI: plugin and script tests on Windows
runners with a non-UTF-8 code page, and two tests that raced on slower machines.
* Give a polygon drawn on the axes the same constraints on every platform
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.
* Fix two unit tests that failed at random on CI
The plugin-unload test of the automation suite and the in-flight tool call
test of the Python script runner each failed now and then on a busy runner,
macOS arm64 and Linux aarch64 in the last run, with nothing wrong in the app.
Both pass however the runner schedules their threads.
* Fix the Flatpak unit-test jobs failing on the page agent test
Both Flatpak unit-test jobs failed one test, which reads the MCP server's
page agent script, because the script was missing from the test bundle those
jobs run from. The bundle carries it, so the jobs run that test as the other
platforms' jobs do.
* Warn in Action Replay when a step can run a program
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.
* Stop a calibration when its save prompt is cancelled
Choosing Cancel when a calibration asked to save the open project still
created the calibration on top of that project, so the project's pauses and
color changes ended up in the calibration's G-code. Only the flow rate tests
stopped. Cancel leaves the project as it was for every calibration.
* Warn in Action Replay when a step replaces a post-processing script
A replay could swap one of your post-processing scripts for its own by
setting a single entry of the list, and the step showed no warning. It now
carries the "Can run a program" tag, as setting the whole list does.
* Add the Agent Activity pane
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.
* Fix the clang-tidy check failing on the Agent Activity test
* Fix sweep tests failing with a current_path error in a shared app
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.
* Stop the Speed Dial offering settings of extruders the printer lacks
After a printer with several extruders, selecting one with fewer left the extra extruders' settings in the Speed
Dial and the settings search, such as Retraction Length under Extruder 3 on a single-extruder printer. They now
list only the extruders the selected printer has.
* Report a dialog closed when an answer ends it on a busy machine
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.
* Organize the MCP tool code by place and the Design commands by heading
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.
* Run the MCP sweep in CI on the Linux AppImage
Every Build all run now drives the x86_64 Linux AppImage it built through
all the MCP sweep tests on Xvfb with Openbox. When a test fails, its logs are
uploaded with the run.
* Fix the MCP sweep tests that fail on a CI runner
test_run_sweep failed on a machine with no X display, and test_gizmos failed
where the desktop's UI font is as wide as Ubuntu's default, DejaVu Sans. The CI
job summary also lists every failed run of a test, its run alone included.
* Name the Design commands by their place, like the other MCP tools
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.
* Fix the Speed Dial and other web pages sometimes freezing on Windows
Opening the Speed Dial occasionally left it, the Home page and every other
web page in OrcaSlicer unresponsive, with one CPU core kept busy, until the
app was restarted. The Flushing volumes dialog and the printer camera view
no longer risk the same freeze. The Speed Dial's search field still takes
the keyboard focus on every open, and the Flushing volumes dialog still
falls back to English text when a translation cannot be shown.
* Show the app's message when a Speed Dial pick in the MCP sweep gets no answer
A sweep test whose Speed Dial pick got no answer from the dial's page failed with only
"last seen None". It now fails with the app's own message, such as "The page did not
answer within 30 s".
* List long widget labels whole and keep each MCP fact in one place
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.
* Make the MCP server doc an architecture overview
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.
* Make calls say whether they ask, and show Prepare after an agent's new project
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.
* Ask before a plugin calls OrcaSlicer's tools
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.
* fix test_cad_commands
* Fix the camera view teardown test crashing
The Web media controller teardown test crashed because running a page script read the app's
settings before checking for a page. Running a script on a web view with no page now does
nothing on every platform.
|
||
|
|
055edc0982
|
Update Qidi Q2, Q2c, and Max 4 profiles to almost match QidiStudio (#17663)
QIDI Q2 firmware 01.01.02 and later no longer runs PRINT_END on its own, so the exhaust fan and Polar Cooler stay on and the X/Y motors stay powered after a print. Sync the Q2 and Q2C end G-code with QIDIStudio, which now calls SET_PRINT_MAIN_STATUS and PRINT_END and caps the final Z lift at the printable height. Firmware 1.1.1 and older still run PRINT_END themselves and error when the G-code calls it, so the end G-code starts with a note telling those users to remove it. Also cap the X-Max 4's final Z lift the same way, drop M141 S0 from the Q2C end G-code, and turn off chamber temperature control on the Q2C, which has no chamber heater. Fixes #17649 |
||
|
|
755459931e
|
Number IDEX/IQEX tools from 1 like the sidebar (#16959) | ||
|
|
c0dac580a1
|
Add Prusa MK4S MMU3 profiles (#17426)
Add the Prusa MK4S MMU3 (0.4, 0.6) and MK4S MMU3 HF (0.4) printers, ported from PrusaSlicer. They use the MK4S filament presets, which now include the Nextruder tip-forming templates, and default to the MK4 MMU3 processes. Also fix two existing printers. CORE One L homes with a full G28 instead of G28 Q, and the standard MK4 MMU3 nozzle presets no longer report a high-flow nozzle. Prusa bundle version 02.04.00.21. |
||
|
|
bb22a2416f
|
Time Bambu Lab Arcs as Smooth Moves (#17591)
Since arcs are split into chords for the time estimate, a G2/G3 on a Bambu Lab printer is timed as many short moves meeting at jerk limited corners. Bambu Lab firmware runs the arc as one smooth move, so gyroid infill, which arc fitting turns into many small arcs, was estimated hours too long: a 15% gyroid cube on an X1C read 8h41m against about 6h21m measured. On Bambu Lab printers, process_G2_G3() now describes the arc it is splitting to process_G1(). Its chords don't meet at jerk limited corners, the arc meets the moves around it along its tangents rather than its end chords, and every chord is capped by sqrt(acceleration * arc radius) instead of by the turn into its first chord. The same cube now reads 6h30m. Other firmware, which splits arcs into segments it plans like any other moves, and Klipper are unchanged. |
||
|
|
bf9bc48e53
|
Snapmaker U1: sync every color of a multi-color spool (#16822)
The U1 reports every color of a multi-color spool in `print_task_config.filament_color_multi`. The filament sync now reads it, so a slot with two or more colors shows all of them instead of only the first. Mode 0 is shown as segments and any other mode as a gradient, which is how Snapmaker's own slicer reads it. The color list is capped at `nums`, and a malformed record leaves the slot with its single color. Single-color spools and profile matching are unchanged. |
||
|
|
221269a146
|
Accept 18-character serial numbers in the manual LAN setup dialog (#17902)
The Bambu Lab A2L has an 18-character serial number. The manual setup page of the IP and access code dialog only enabled Connect for exactly 15 characters, so an A2L could not be added. Accept 15 or 18, the same check Bambu Studio uses. Fixes #17899 |
||
|
|
7ae3d228b3 |
Fix the camera view teardown test crashing
Some checks failed
Shellcheck / Shellcheck (push) Has been cancelled
The Web media controller teardown test crashed because running a page script read the app's settings before checking for a page. Running a script on a web view with no page now does nothing on every platform. |
||
|
|
4723f694ca | Merge branch 'main' into feature/mcp | ||
|
|
b92cc124c8 | fix test_cad_commands | ||
|
|
b3dcf0ac7d |
Ask before a plugin calls OrcaSlicer's tools
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. |
||
|
|
6609ca0503 |
Make calls say whether they ask, and show Prepare after an agent's new project
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. |
||
|
|
808dd7dff8
|
Fix OBJ import on macOS 13.3 to 14.0 when the UI language uses a decimal comma (#17851)
Some checks are pending
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_arch (push) Waiting to run
Build all / Build macOS Universal (push) Blocked by required conditions
Build all / Linux x86_64 (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
On macOS 13.3 to 14.0, Apple's `strtod` reads the process locale and ignores the thread locale that `CNumericLocalesSetter` sets. With a UI language that uses a decimal comma, every OBJ vertex with a decimal point was rejected and the import failed. `objparser.cpp` now reads numbers with the new `strtod_decimal_point()` in `LocalesUtils`, which parses with fast_float and doesn't depend on the locale. |
||
|
|
188d11c5e9
|
fix: bind printer agent printers using the entered address (#17857)
- Moonraker's `bind_detect` now builds the device ID from the entered address instead of the connected printer's cached identity, so binding a second printer by IP no longer reselects and reconnects the first one. - The C11 model fallback for a device bound without a model now applies only to Bambu printers. |
||
|
|
8a339fc100
|
fix: bind printer agent printers using the entered address (#17857)
- Moonraker's `bind_detect` now builds the device ID from the entered address instead of the connected printer's cached identity, so binding a second printer by IP no longer reselects and reconnects the first one. - The C11 model fallback for a device bound without a model now applies only to Bambu printers. |
||
|
|
188782518d
|
fix: bind printer agent printers using the entered address (#17857)
- Moonraker's `bind_detect` now builds the device ID from the entered address instead of the connected printer's cached identity, so binding a second printer by IP no longer reselects and reconnects the first one. - The C11 model fallback for a device bound without a model now applies only to Bambu printers. |
||
|
|
01adacf334
|
Post 14-day notices on long-inactive PRs (#17886)
stale.yml now starts with a step that posts a notice on PRs that have been inactive for a long time and adds the labels the stale step needs to close them 14 days later. It covers PRs waiting on their author for 90 days, PRs with conflicts for 90 days, PRs nobody on the team has answered for 180 days, and drafts with no activity for 180 days. The day counts and the nightly notice limit are set once in the job's environment and used by both steps. A manual run can preview, post or skip the notices. The notice step logs the REST and GraphQL rate limits when it finishes. Drafts are no longer exempt in stale.yml, because the notice step removes "wait for response" from drafts that have no open notice. The stale PR messages and CONTRIBUTING describe the new rules. |
||
|
|
529752ad0c |
Make the MCP server doc an architecture overview
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. |
||
|
|
f047c606d9 |
List long widget labels whole and keep each MCP fact in one place
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. |
||
|
|
193b80a613 |
Show the app's message when a Speed Dial pick in the MCP sweep gets no answer
A sweep test whose Speed Dial pick got no answer from the dial's page failed with only "last seen None". It now fails with the app's own message, such as "The page did not answer within 30 s". |
||
|
|
9b57301b9e |
Fix the Speed Dial and other web pages sometimes freezing on Windows
Opening the Speed Dial occasionally left it, the Home page and every other web page in OrcaSlicer unresponsive, with one CPU core kept busy, until the app was restarted. The Flushing volumes dialog and the printer camera view no longer risk the same freeze. The Speed Dial's search field still takes the keyboard focus on every open, and the Flushing volumes dialog still falls back to English text when a translation cannot be shown. |
||
|
|
5c559bf378
|
fix: set port to empty if none entered (#17876)
Some checks are pending
Build all / macOS arm64 (push) Blocked by required conditions
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_arch (push) Waiting to run
Build all / Build macOS Universal (push) Blocked by required conditions
Build all / Linux x86_64 (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 / 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
|
||
|
|
71a1f4f6f2
|
Load startup plugins after the presets are loaded (#17873)
Some checks are pending
Build all / Look for build script changes (push) Waiting to run
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 / 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_arch (push) Waiting to run
Build all / Build macOS Universal (push) Blocked by required conditions
Build all / Linux x86_64 (push) Blocked by required conditions
Build all / Publish Test Results (push) Blocked by required conditions
Build all / Flatpak (push) Waiting to run
* Load startup plugins after the presets are loaded The startup plugin loads ran on the load thread while the main thread was still starting the network and had not loaded the presets yet. A plugin that reads the presets while it registers, such as through full_config_value(), reached PresetBundle::full_fff_config() while filament_presets was still empty and crashed reading filament_presets[0]. A plugin that got there a little later read the presets while load_presets() was rebuilding them. Start the startup loads after load_current_presets(). A printer agent that a plugin registers after that point is already installed by the late registration path. Fixes #17792 * Build the full config of a bundle whose presets are not loaded yet A new PresetBundle has no filament_presets until load_presets() runs, and full_fff_config() read filament_presets[0] anyway, which crashed any caller that asked for the full config before the presets loaded. Treat such a bundle as having one filament, the edited filament preset. |
||
|
|
e4538b5262 |
Name the Design commands by their place, like the other MCP tools
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. |
||
|
|
ce7f703e68
|
Add Center button to move gizmo and fix centering of parts in skewed objects / instances (#17550)
* init * Update tooltip * update speed dial command condition * Update Selection.cpp * fix instance part cannot not centered * fix centering of skewed objects |
||
|
|
4e020aaf23
|
Fetch the Flatpak wxWidgets source shallowly again (#17748)
#17743 pinned the source by commit alone, which was the right fix, and added disable-shallow-clone with it. That flag is what now makes the fetch expensive. flatpak-builder passes the commit as the ref when no branch or tag is set (get_branch in builder-source-git.c), then lookup_full_ref in builder-git.c looks that ref up, matching either a ref name or a ref whose tip is that commit. The commit we pin is now tagged in the fork, so b44c39c1 is the tip of refs/tags/orca-3.3.2-1 and the lookup resolves it: $ git ls-remote https://github.com/OrcaSlicer/Orca-deps-wxWidgets b44c39c100975a0ac0e46f937aa3f3eae5e18631 refs/tags/orca-3.3.2-1 With the lookup resolving, flatpak-builder fetches that ref at depth 1. Setting disable-shallow-clone skips the lookup entirely and falls through to the full "fetch origin *:*" instead. It also reaches the submodules, which git_mirror_submodules fetches with the same flags, so wxWidgets' twelve submodules are fetched in full rather than at depth 1. Dropping it costs no safety. The lookup falls back to the full fetch on its own if the pinned commit is ever not a ref tip, which is the case the flag was added for. The comment claimed the full clone was needed to check out a commit that is not a branch tip. GitHub serves a depth-1 fetch of an arbitrary commit, so that was not the reason either. It now just says why the pin names no branch. The CMake deps recipe is untouched. |
||
|
|
966f5613a3
|
Build OpenCV with only its baseline CPU code (#17578)
Build OpenCV with an empty CPU_DISPATCH, so it compiles only its baseline CPU code and skips the extra per-CPU copies (SSE4.1 to AVX-512 on x64, NEON DOTPROD on ARM64) that it chooses between at runtime. The baseline is unchanged, so there is no new CPU requirement. This cuts OpenCV's build time and makes the app about 4 to 5 MB smaller. |
||
|
|
7c5db9e7c1
|
Allow spiral vase on a model painted all over with one filament (#17073)
Painting a whole model with a filament other than its own (T3 on a Snapmaker U1, for example) and turning on spiral vase failed validation with "Spiral (vase) mode does not work when an object contains more than one material", although only the painted filament prints. When every facet of every model part is painted, the check now uses the painted filaments instead of the object's own. It still refuses when mmu_segmented_region_max_width or mmu_segmented_region_interlocking_depth is above 0, because the paint then covers only a band near the walls and the rest prints with the object's filament. Segmentation ignores both settings when beam interlocking is on, so that case is allowed. Fixes #17072 Co-authored-by: raistlin7447 <kris.austin@gmail.com> |
||
|
|
d43eb75ba8
|
Start the AppImage when no English locale is installed (#17816)
The AppImage's AppRun exports LC_ALL=C, so wxWidgets detects en_US as the system language and the best-translation match is dropped. When neither en_US nor en_GB is installed, load_language() runs out of candidates and closes the app with "Switching Orca Slicer to language en_US failed". On non-Apple Unix systems, the environment's locale is now the last step of the fallback chain, since wxLocale::IsAvailable() can't report it. When nothing else is installed and the environment's locale can be created, wxLocale is initialized with wxLANGUAGE_DEFAULT and the selected dictionary is kept. If the environment's locale is missing too, the app shows the same error as before. wxWidgets' own catalog is now loaded after the dictionary language is set on every path, so its dialogs follow the UI language when the locale falls back to a different one. When the locale matches the language, nothing changes. The locale switch logs name the locale that was actually set. Fixes #17809 |
||
|
|
58fc8a7c1f
|
Fix AMS sync for Happy Hare printers with an unpopulated lane_data skeleton (#14798)
Some checks are pending
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 / Linux x86_64 (push) Blocked by required conditions
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_arch (push) Waiting to run
Build all / Build macOS Universal (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
Happy Hare can write a lane_data entry for every gate with only the lane number set. Orca took that as the answer and showed every slot empty without asking Happy Hare's mmu object. When every lane is empty, sync now tries Happy Hare and then Creality CFS, and keeps the empty lane layout if neither reports filament. Lane data with filament in it keeps its priority. |
||
|
|
e56fd1ed44
|
Fix a crash deleting or merging a multi-part object on macOS (#17825)
The object list deletes an object's ModelObject before its row, and removes the row's part rows one by one. On macOS each removal makes the outline reload the object row at once, and GetChildren's import order read the freed ModelObject. Deleting a multi-part object, or merging its parts with Mesh boolean, crashed when that memory had been reused. GetChildren now reads the row's object only while the model still holds it (ObjectDataViewModel::live_model_object, a pointer comparison). The import order read came in with #17050, so no release carries the crash. |
||
|
|
3f90d6ccf6
|
Fix printer list hidden by its scrollbar in Export Preset Bundle (#17830)
The Export Preset Bundle list is sized to exactly fit its checkboxes, capped at 1200 px wide. When long preset names or high display scaling push the content past that cap, a horizontal scrollbar appears inside the list and takes its height from the one-row client area, so the checkboxes are hidden and nothing can be selected. Reserve the scrollbar's height when the width is capped. Fixes #17824 |
||
|
|
9c18af5435 |
Fix the MCP sweep tests that fail on a CI runner
test_run_sweep failed on a machine with no X display, and test_gizmos failed where the desktop's UI font is as wide as Ubuntu's default, DejaVu Sans. The CI job summary also lists every failed run of a test, its run alone included. |
||
|
|
cd9218c1d6
|
QOL: Allow toggling visibility of text emboss gizmo (#17678)
- Pressing T or clicking the Text toolbar button while the Text tool is open now closes it, like the other gizmos. It closes the same way as the Done button, so empty text is still removed. - With several instances of a text object selected, T and the toolbar button now edit the existing text instead of adding a new text part to the object. |
||
|
|
38f12b1357
|
Keep a filament's compatible printers when a project loads its edits (#17770)
A project doesn't save a filament's compatible_printers or compatible_prints. When a project with an edited filament preset was opened again, both lists came in empty and the preset's compatible printers reset to All. load_external_preset now leaves the two keys alone when it applies a project filament over an existing preset. When a later filament slot becomes a new "Name(file.3mf)" preset, that preset copies the lists from the preset the project names. The test covers the first slot over the named preset and over the inherited parent, and a later slot over an embedded preset and as a new copy. |
||
|
|
79d5833e28
|
Count the feature filaments a part sets as filaments the plate uses (#17778)
A part, a modifier or a layer range can set its own outer wall, inner wall, sparse infill, internal solid infill, top surface or bottom surface filament. The slicer prints with them, but PartPlate::get_extruders() and get_extruders_under_cli() read these settings only from the print and object configs. A filament that only a part's feature used was missing from the plate's filament list, so on a dual-nozzle printer the custom grouping dialog left it out and Prepare hid the prime tower. Both walks now share a helper that also reads the feature filaments of each part, modifier and layer range. A mixed filament still expands to its components as it does for object settings. A printer switch or a filament delete can leave filament ids past the last slot. The plate now resolves them as the slicer does. An object's, part's or layer range's id counts as filament 1, including a part's own filament. A print-wide id follows PresetBundle::full_config() in the GUI, which resets a feature or brim id to the default and caps a support id at the last slot. From the CLI it follows the slicer, which prints a feature or support id with filament 1. Fixes #17728 |
||
|
|
39baf6d917
|
Finish touchpad camera panning when Shift is released (#17846)
In Touchpad camera mode, releasing Shift after a pan or Alt after an orbit left the camera move active. The next right-click then skipped the menu and, since #17432, the object selection. Finish the pan on Shift release and the orbit on Alt release. This replaces the Windows-only Alt release handling from #8249, which stopped the orbit but still left the next right-click ignored. Fixes #17844 |
||
|
|
538e67b033 |
Run the MCP sweep in CI on the Linux AppImage
Every Build all run now drives the x86_64 Linux AppImage it built through all the MCP sweep tests on Xvfb with Openbox. When a test fails, its logs are uploaded with the run. |
||
|
|
18eb4f8459 |
Organize the MCP tool code by place and the Design commands by heading
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. |
||
|
|
6a601166e4 |
Report a dialog closed when an answer ends it on a busy machine
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. |
||
|
|
7cfbda4c62 |
Stop the Speed Dial offering settings of extruders the printer lacks
After a printer with several extruders, selecting one with fewer left the extra extruders' settings in the Speed Dial and the settings search, such as Retraction Length under Extruder 3 on a single-extruder printer. They now list only the extruders the selected printer has. |
||
|
|
b4408536f1 |
Fix sweep tests failing with a current_path error in a shared app
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. |
||
|
|
3d4782e7d6 |
Fix the clang-tidy check failing on the Agent Activity test
Some checks are pending
Check operation calls / Check operation calls (push) Waiting to run
|
||
|
|
5eefef82fc |
Add the Agent Activity pane
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. |
||
|
|
755af907c6
|
Prevent object selection on mouse up events from pan / rotate (#17432)
Some checks are pending
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
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_arch (push) Waiting to run
Build all / Build macOS Universal (push) Blocked by required conditions
Build all / Linux x86_64 (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
init Co-authored-by: Noisyfox <timemanager.rick@gmail.com> |
||
|
|
eae8929b41 |
Warn in Action Replay when a step replaces a post-processing script
A replay could swap one of your post-processing scripts for its own by setting a single entry of the list, and the step showed no warning. It now carries the "Can run a program" tag, as setting the whole list does. |
||
|
|
6b79a61ff3
|
Fix grammar in README license section for OrcaSlicer (#17175)
Some checks are pending
Build all / Windows arm64 (push) Blocked by required conditions
Build all / macOS arm64 (push) Blocked by required conditions
Build all / Look for build script changes (push) Waiting to run
Build all / Linux aarch64 (push) Blocked by required conditions
Build all / Windows x64 (push) Blocked by required conditions
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_arch (push) Waiting to run
Build all / Build macOS Universal (push) Blocked by required conditions
Build all / Linux x86_64 (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 formatting in README for OrcaSlicer Change one instance of "the OrcaSlicer" to just "OrcaSlicer" |