Commit Graph
239 Commits
Author SHA1 Message Date
SoftFever 56b03d7bdf Merge branch 'main' into feature/mcp 2026-11-05 18:07:30 +08:00
anjis 3bda653448 Fix Type 1 wipe tower filament statistics for non-Bambu printers (#17199) 2026-11-04 09:31:08 -03:00
Ian Bassi 88c4c1e915 Print gap fill after the lines next to it in fills that keep their order
insert_gap_fill() put each piece of gap fill wherever it added the least
travel, which could be before the extrusions bordering it: the centre gap
of a Spiral Inset printed before the spiral that starts there, and gaps
where spirals meet printed before the later spiral. Each piece now only
goes after the last extrusion of its fill that passes within half its
widest width and a line spacing of it.
2026-11-04 08:56:28 -03:00
SoftFever 17a745e30c Merge branch 'main' into feature/mcp 2026-11-04 13:42:41 +08:00
HanifKoh 1c9f6f9318 Join Precise-Z Sliver Layers to the Prime Tower Layer Below (#17204)
* Join Precise-Z Sliver Layers to the Prime Tower Layer Below

Precise Z height ends each object at its exact top, so another object's
layers can print a few microns above these. Each sliver became its own
wipe tower layer, and a tool change on it was sized for that height: a
0.0009 mm layer asked for a 230 mm ramming band, which grew the tower
past the bed ("Prime tower is partially outside the printable area").
Once sized correctly, G-code export lost step with the tower and threw
"append_tcr was asked to do a toolchange it didn't expect".

A tower layer thinner than half the printer's minimum layer height now
joins the tower layer below: ToolOrdering records the tower layer each
layer prints on and whether it finishes it, the tower plans the joined
tool changes on that layer's z and height, and the G-code neither
advances the tower on a joined layer nor finishes the layer before it.

* Finish a Joined Prime Tower Layer on Its Last Tool Change

The joined layer always finished the tower layer, so a joined layer that
changed no tools asked for a result after the layer below had taken them
all and threw "Wipe tower generation failed". The layer that finishes is
now the last of the group that changes tools, or the last one when none
does, matching how a single layer merges its finish into a tool change.

A joined layer also reset the Type 1 tower's first print, so smooth
timelapse replayed the tower layer's wall and threw the same error.

Layers are now joined below the printer's minimum layer height instead of
half of it: precise Z height can move a layer off by up to a layer height,
and the 0.04-0.08 mm layers left on their own still grew the tower off the
bed.

* Print Joined Prime Tower Purges at the Tower Layer's Z

A joined layer printed its purges at its own nozzle height, up to just
under the minimum layer height above the tower layer, so the beads were
not pressed onto it. The emitter now descends to the tower layer's z for
a joined layer, travelling over the tower first and climbing back after,
the way it already does for a tower compacted below the objects.

Layers sliced at exactly the minimum layer height sum to gaps a hair
under it and were joined to the layer below; an EPSILON margin keeps
them apart.

* Travel Over the Prime Tower Before a Joined Layer Descends

With no change_filament_gcode and no nozzle change, the Type 1 emitter
descended to the joined tower layer's z while the head was still over the
part, then travelled to the tower at that z. It now travels over the tower
first. The tests check that every descent below the object layer happens
over the tower.
2026-11-04 13:14:01 +08:00
SoftFever 75d117f669 Explain in the MCP design doc why tools have no output schema 2026-11-04 12:28:00 +08:00
Valerii Bokhan 0b041740b1 Fix Wipe Inward retraction splitting and sandwich wall offsets (#17160) 2026-11-03 21:41:16 -03:00
Ian BassiandRodrigo Faselli 670db4b772 Faster and better outline (#17111)
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
2026-11-03 21:26:16 -03:00
SoftFever 5e5571a99f Make the MCP tool descriptions shorter and consistent, with the UI locators described once 2026-11-04 04:03:04 +08:00
SoftFever 3050fbc6a6 Tell agents what list_objects ids are for and how paged replies continue 2026-11-04 03:22:00 +08:00
SoftFever 11ec4d8970 Show agents the selection, the Python setting and the Design tab in get_state 2026-11-04 02:06:30 +08:00
SoftFever 8f61a3a34e Let agents select hidden filaments and printers by name 2026-11-04 01:43:48 +08:00
SoftFever e4ee75e749 Ask for approval only on MCP calls that delete without undo, and mark the tools that reach outside the app 2026-11-04 01:06:55 +08:00
SoftFever ec0f3d864f Tell agents which scope a setting belongs to when they name the wrong one or none 2026-11-03 23:56:08 +08:00
SoftFever f776208c94 Document the whole orca Python API and search every catalog from api_describe 2026-11-03 23:10:10 +08:00
SoftFever ee0314dee2 Merge branch 'main' into feature/mcp 2026-11-03 16:28:57 +08:00
SoftFever cc05d87607 Run Python scripts like python file.py, with the whole plugin API 2026-11-03 16:12:04 +08:00
Ian Chua fcab66ca9e fix: revert native device tab flag (#17162) 2026-11-02 22:09:49 +08:00
HanifKoh 5fb129f1f3 Read a Retyped Option From the Preset Cache as a JSON Profile Would (#17047)
A vendor's installed preset cache survives an app upgrade, and the
dictionary records the type every option was written as. When a build
reads a cache written by a build that typed an option differently, the
reader dropped the option and the preset fell back to the collection
default, which is not what the vendor's JSON says. enable_arc_fitting
became an enum in 2.5.0-beta, so every vendor whose bundle was not bumped
between the alpha and the beta now loads with arc fitting off from the
alpha's cache, and the alpha reads the beta's cache the same way.

Read such a value by the writer's type and hand its text to
set_deserialize through a scratch config, so handle_legacy and the
bool/enum substitution run on it exactly as for a JSON profile and a
failed parse leaves nothing behind. A text this build cannot place is
still dropped, reported once per key per file.
2026-11-02 17:20:33 +08:00
SoftFever 99018203de 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.
2026-11-02 16:05:13 +08:00
SoftFever f31843dcd1 Merge branch 'main' into feature/mcp 2026-11-01 17:40:28 +08:00
SoftFever 39705d7bb9 Make canvas screenshots taken right after a layer or view type change show the change 2026-11-01 17:39:07 +08:00
Ian BassiandRodrigo Faselli 3aedd50bcb Draw the Section View Cut Face in Its Part's Color (#17105)
Co-authored-by: Rodrigo Faselli <162915171+RF47@users.noreply.github.com>
2026-10-31 19:04:53 -03:00
SoftFever 7136e78c5b Name the open dialog when a script step times out waiting for its job 2026-10-31 23:45:23 +08:00
SoftFever b9127cb454 Tell MCP agents when a call fails because the display is off 2026-10-31 23:16:07 +08:00
SoftFever b90392d393 Report frames that failed to encode in stop_recording's result 2026-10-31 23:02:16 +08:00
SoftFever b3d3374f8b Fix MCP canvas captures failing right after a tab switch on Wayland 2026-10-31 22:47:31 +08:00
SoftFever 457ed1aacb 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.
2026-10-31 17:56:38 +08:00
SoftFever 7bafc3928c Add a script editor with suggestions and saving to the Run Script dialog 2026-10-31 02:13:22 +08:00
SoftFever 385471a32f 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.
2026-10-30 23:43:23 +08:00
SoftFever 4439b743a8 Show a REC pill in the tab bar while a recording runs 2026-10-30 23:30:32 +08:00
SoftFever 48deb31a50 Let agents ask for an MP4 when starting a recording 2026-10-30 20:47:56 +08:00
SoftFever 15277639a0 Make recording overlays opt-in, with pointer and caption switches in Start Recording 2026-10-30 20:19:36 +08:00
SoftFever 6c1518aa61 Stop the app flickering while a recording runs on Windows 2026-10-30 19:23:12 +08:00
SoftFever c56d9968a1 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.
2026-10-30 18:41:40 +08:00
SoftFever c9db694c32 Add a Run Script dialog for running MCP scripts in the app 2026-10-30 07:46:10 +08:00
SoftFever bd26585ec1 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.
2026-10-30 04:33:07 +08:00
SoftFever a63410029a Point agents at the MCP harness instead of an in-repo skill 2026-10-29 20:08:06 +08:00
SoftFever db75a6dc37 Let MCP clients do the OrcaSlicer tasks the agent benchmark found missing 2026-10-29 20:02:27 +08:00
SoftFever 0fc5b70cf4 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.
2026-10-29 04:14:43 +08:00
SoftFever 5c05a8e662 Merge branch 'main' into feature/mcp 2026-10-28 23:32:22 +08:00
SoftFever 8cf1075d89 Let users choose HTTP or stdio when adding OrcaSlicer to an agent 2026-10-28 22:32:19 +08:00
SoftFever f5254f90aa 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.
2026-10-28 21:58:47 +08:00
SoftFever 7791044458 Make MCP mouse modifiers mean the same keys as ui_key 2026-10-28 20:56:04 +08:00
SoftFever 854430d747 Report native dialogs that hold the MCP UI thread on macOS 2026-10-28 20:40:54 +08:00
Kris Austin 42608687e5 Fix AltGr typing in settings boxes switching tabs, and add go-to shortcuts for the other tabs (#16918)
Remove the old Ctrl+1 to Ctrl+4 key handler on settings fields. wxWidgets reports AltGr as Ctrl+Alt, so on AZERTY and similar layouts, typing `{`, `~` or `#` in a multi-line settings box switched the main tab. The handler was also outside the shortcut registry and clashed with the Ctrl+1 to Ctrl+4 camera shortcuts.

Add unbound "Go to the ... tab" shortcuts for Home, Design, Multi-device and Calibration, next to the Prepare, Preview, Device and Project ones from #16301.

Fixes #9649
2026-10-28 07:17:52 -05:00
SoftFever f4f997b8e0 Let a cancel stop an MCP slice that is still waiting to start 2026-10-28 19:43:10 +08:00
SoftFever c7b9cd6741 Drop the automatic-reslice due-time check that wx timers make unnecessary 2026-10-28 19:43:10 +08:00
SoftFever d8e41ea138 Count only runs a slice request started as the MCP slice's own, and ignore stale auto-reslice timer events 2026-10-28 19:43:09 +08:00
SoftFever 603d38b9c9 Report a refused MCP slice request as an error, and keep cancelled automatic reslices from running 2026-10-28 19:43:09 +08:00