From 5698fe1f7e2e4f91cffd8368aea8df501bdad1ba Mon Sep 17 00:00:00 2001 From: SoftFever <103989404+SoftFever@users.noreply.github.com> Date: Sun, 15 Nov 2026 15:51:58 +0800 Subject: [PATCH] Open every MCP test instance at 1600x900 in the top left of the screen --- tools/mcp/README.md | 5 ++- tools/mcp/orca_mcp.py | 31 +++++++++++++++++-- tools/mcp/test_orca_mcp_attach.py | 11 +++++-- tools/mcp/test_set_view_camera.py | 6 ++-- tools/mcp/test_set_window.py | 4 +-- tools/mcp/tests/cad_canvas.json | 2 +- tools/mcp/tests/cad_doc.json | 2 +- tools/mcp/tests/cad_features.json | 2 +- tools/mcp/tests/cad_sketch_edit.json | 2 +- tools/mcp/tests/cad_sketch_to_solid.json | 2 +- tools/mcp/tests/cad_topology_targets.json | 2 +- tools/mcp/tests/calibration.json | 2 +- tools/mcp/tests/context_menus.json | 2 +- tools/mcp/tests/dialogs_canvas_input.json | 2 +- tools/mcp/tests/gizmos.json | 2 +- tools/mcp/tests/layers.json | 2 +- tools/mcp/tests/multicolor.json | 2 +- ...ops_assign_filament_preset_multi_slot.json | 2 +- .../ops_assign_filament_preset_one_slot.json | 2 +- tools/mcp/tests/ops_select_preset.json | 2 +- tools/mcp/tests/ops_set_instance_count.json | 2 +- tools/mcp/tests/ops_set_plate_locked.json | 2 +- tools/mcp/tests/ops_start_arrange.json | 2 +- tools/mcp/tests/plate_icons.json | 2 +- tools/mcp/tests/plates.json | 2 +- tools/mcp/tests/presets.json | 2 +- tools/mcp/tests/preview.json | 2 +- tools/mcp/tests/recording.json | 2 +- tools/mcp/tests/rows.json | 2 +- tools/mcp/tests/scene.json | 2 +- tools/mcp/tests/slice_stats.json | 2 +- tools/mcp/tests/web_dialogs.json | 2 +- 32 files changed, 74 insertions(+), 37 deletions(-) diff --git a/tools/mcp/README.md b/tools/mcp/README.md index 6aee000abc..ded2344a6f 100644 --- a/tools/mcp/README.md +++ b/tools/mcp/README.md @@ -20,7 +20,10 @@ an `OrcaSlicer.conf` that has a finished setup wizard and one printer and filame Carbon 0.4 by default), with update checks and daily tips turned off, and with the Orca Cloud login kept in a token file in the datadir (`use_encrypted_token_file`) instead of the system's secret store, so the instance starts signed out and never reads your login: on macOS that read would stop a newly built app at -a keychain prompt. `--cad` starts the app with +a keychain prompt. A seeded datadir's main window opens 1600×900 at the top left of the screen's work area +(on macOS below the menu bar), so it fits on a 1920×1080 screen, instances started side by side stay on +screen, and the tests' views and screenshots all have one size; the tests that size the window ask for +the same 1600×900. `--cad` starts the app with `--cad`, which turns the Design (CAD) tab on for that run, and with it its commands, and `--unrestricted-scripts` starts it with `--unrestricted-scripts`, which lets Python scripts (`run_script`) run unrestricted for that run. Neither writes the datadir's `OrcaSlicer.conf`, and a later diff --git a/tools/mcp/orca_mcp.py b/tools/mcp/orca_mcp.py index 04f0f29c05..a8844a3c20 100755 --- a/tools/mcp/orca_mcp.py +++ b/tools/mcp/orca_mcp.py @@ -46,6 +46,10 @@ PROTOCOL = "2025-11-25" # A finished setup with one printer, so a fresh datadir opens straight into the main window. DEFAULT_PRINTER = ("BBL", "Bambu Lab X1 Carbon", "0.4", "Bambu PLA Basic @BBL X1C") +# A fresh datadir's main window: at the top left of the screen's work area, small enough for a 1920 x 1080 +# screen to show all of it, so instances started side by side stay on screen and a view or screenshot taken in +# one has the same size in another. +WINDOW_SIZE = (1600, 900) def reply_budget_s(): @@ -276,22 +280,45 @@ def write_conf(conf, data): f.write("\n") +def work_area_origin(): + """The top-left corner of the main display's work area, the part windows may cover: on macOS below the + menu bar and right of a Dock on the left, read from AppKit; (0, 0) where that cannot be read and on the + other systems, whose taskbar or panel usually sits at the bottom, and whose private displays have none.""" + if sys.platform != "darwin": + return 0, 0 + # AppKit measures from the bottom left; the first screen is the one with the menu bar. + script = ('ObjC.import("AppKit"); var s = $.NSScreen.screens.objectAtIndex(0), f = s.frame, v = s.visibleFrame;' + 'JSON.stringify([v.origin.x - f.origin.x, f.origin.y + f.size.height - v.origin.y - v.size.height])') + try: + out = subprocess.run(["osascript", "-l", "JavaScript", "-e", script], capture_output=True, text=True, + timeout=10).stdout + x, y = json.loads(out) + return round(x), round(y) + except (OSError, subprocess.SubprocessError, ValueError, TypeError): + return 0, 0 + + def seed_datadir(datadir, printer): """Seed a fresh datadir's OrcaSlicer.conf. A datadir that has one keeps it. A fresh datadir keeps the Orca Cloud login in its own token file (use_encrypted_token_file), not in the system's secret store, so the instance starts signed out and never reads the person's login: on macOS - that read stops a newly built app at a keychain prompt that only a person can answer.""" + that read stops a newly built app at a keychain prompt that only a person can answer. Its main window + opens WINDOW_SIZE at the top left of the work area: the app trims a saved window to the work area, so one + placed over the macOS menu bar would open that much shorter.""" vendor, model, nozzle, filament = printer os.makedirs(datadir, exist_ok=True) conf = os.path.join(datadir, "OrcaSlicer.conf") if os.path.exists(conf): return + x, y = work_area_origin() + width, height = WINDOW_SIZE write_conf(conf, {"firstguide": {"finish": True}, "models": [{"model": model, "nozzle_diameter": nozzle, "vendor": vendor}], "filaments": [filament], "presets": {"machine": f"{model} {nozzle} nozzle"}, - "app": {"check_for_updates": False, "show_daily_tips": False, "use_encrypted_token_file": True}}) + "app": {"check_for_updates": False, "show_daily_tips": False, "use_encrypted_token_file": True, + "window_mainframe": f"{x}; {y}; {width}; {height}; 0"}}) # The headless compositors --headless tries, in order, by the binary each needs. diff --git a/tools/mcp/test_orca_mcp_attach.py b/tools/mcp/test_orca_mcp_attach.py index f37281443c..d88749471e 100755 --- a/tools/mcp/test_orca_mcp_attach.py +++ b/tools/mcp/test_orca_mcp_attach.py @@ -12,7 +12,8 @@ mcp/server.json, or whose server.json is not JSON or names no port, naming the f answers (HTTP 401, a reply that is not JSON), also chaining the cause. call_command(), against a stubbed call(), fails at once on a dialog, follows a running job, prefixes its errors with the command's name, chaining the original, and returns the command's whole reply. seed_datadir() keeps a fresh -datadir's login in its own token file and leaves a reused datadir's where it is. ORCA_MCP_CALL_LOG gets a line +datadir's login in its own token file, opens its main window 1600 x 900 at the top left of the work area, and leaves +a reused datadir's conf as it is. ORCA_MCP_CALL_LOG gets a line per call, and reply_budget_s() reads ORCA_MCP_REPLY_BUDGET_MS as the app does. Exits 0 when every check passes. The folders the checks make are removed when they end. """ @@ -284,10 +285,16 @@ def read_conf(datadir): def check_seed_datadir(): fresh = scratch("orca-seed-") - orca_mcp.seed_datadir(fresh, orca_mcp.DEFAULT_PRINTER) + with mock.patch.object(orca_mcp, "work_area_origin", return_value=(12, 34)): + orca_mcp.seed_datadir(fresh, orca_mcp.DEFAULT_PRINTER) app = read_conf(fresh)["app"] assert app.get("use_encrypted_token_file") is True, app ok("seed_datadir() keeps a fresh datadir's login in its own token file, not the system's secret store") + assert orca_mcp.WINDOW_SIZE == (1600, 900), orca_mcp.WINDOW_SIZE + assert app.get("window_mainframe") == "12; 34; 1600; 900; 0", app + x, y = orca_mcp.work_area_origin() + assert isinstance(x, int) and isinstance(y, int) and x >= 0 and y >= 0, (x, y) + ok("seed_datadir() opens a fresh datadir's main window 1600 x 900 at the top left of the work area") reused = scratch("orca-seed-reused-") orca_mcp.write_conf(os.path.join(reused, "OrcaSlicer.conf"), {"app": {"use_encrypted_token_file": False}}) diff --git a/tools/mcp/test_set_view_camera.py b/tools/mcp/test_set_view_camera.py index 0de416034a..47a673545e 100644 --- a/tools/mcp/test_set_view_camera.py +++ b/tools/mcp/test_set_view_camera.py @@ -46,7 +46,7 @@ def main(): def close(a, b, tolerance): return isinstance(a, (int, float)) and abs(a - b) <= tolerance - client.call("set_window", size=[1920, 1200]) + client.call("set_window", size=[1600, 900]) client.call("new_project", discard_changes=True) # 1. Prepare, straight after new_project: the fit it queued runs first, then look_at and zoom. @@ -141,13 +141,13 @@ def main(): # 9. A fit after the window was sized on the Home tab, where no 3D view draws, fits the canvas's new size: # the same fit straight after keeps its zoom. set_view(tab="home") - client.call("set_window", size=[1600, 1000]) + client.call("set_window", size=[1400, 800]) first = set_view(tab="prepare", camera="fit_objects") second = set_view(camera="fit_objects") zoom = first.get("camera_state", {}).get("zoom") check("resized on home: a fit on prepare uses the new size", zoom is not None and close(second.get("camera_state", {}).get("zoom"), zoom, 1e-3), (first, second)) - client.call("set_window", size=[1920, 1200]) + client.call("set_window", size=[1600, 900]) # 10. On a tab with no 3D view, the fit new_project queues waits for the view to draw: get_app_state has no # camera, a zoom given then is applied with a note that the fit is still queued, and the fit replaces it diff --git a/tools/mcp/test_set_window.py b/tools/mcp/test_set_window.py index 6195aa7ec9..aa56fc0ed2 100644 --- a/tools/mcp/test_set_window.py +++ b/tools/mcp/test_set_window.py @@ -288,8 +288,8 @@ def main(): flat = client.call("set_window", width=1500, height=950) check("flat form: width and height are read as size", flat.get("size") == [1500, 950], flat) - # 12. Clean-up. - client.call("set_window", size=[1920, 1200]) + # 12. Clean-up: the size a fresh launch gives. + client.call("set_window", size=list(orca_mcp.WINDOW_SIZE)) failed = [c for c in checks if not c[1]] for name, ok, detail in checks: diff --git a/tools/mcp/tests/cad_canvas.json b/tools/mcp/tests/cad_canvas.json index a5f6ada395..355c489bee 100644 --- a/tools/mcp/tests/cad_canvas.json +++ b/tools/mcp/tests/cad_canvas.json @@ -15,7 +15,7 @@ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true}}, {"tool": "call_tool", "args": {"tool": "new_design", "args": {"discard_changes": true}}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "design", "camera": "iso"}, "expect": {"/tab": {"eq": "design"}, "/camera": {"eq": "iso"}}}, {"tool": "call_tool", "args": {"tool": "extrude", "args": {"width": 20, "height": 20, "distance": 10}}, diff --git a/tools/mcp/tests/cad_doc.json b/tools/mcp/tests/cad_doc.json index 39a7648510..c5f331b459 100644 --- a/tools/mcp/tests/cad_doc.json +++ b/tools/mcp/tests/cad_doc.json @@ -15,7 +15,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "call_tool", "args": {"tool": "new_design"}, "expect": {"/result/ok": {"eq": true}, "/result/cleared/features": {"eq": 0}}}, {"tool": "search_tools", "args": {"tool": "describe_feature"}, "expect": {"/group": {"eq": "Design"}, "/read_only": {"eq": true}}}, {"tool": "search_tools", "args": {"tool": "set_feature"}, "expect": {"/group": {"eq": "Design"}, "/read_only": {"eq": false}}}, diff --git a/tools/mcp/tests/cad_features.json b/tools/mcp/tests/cad_features.json index bd65b865d3..881b0c541e 100644 --- a/tools/mcp/tests/cad_features.json +++ b/tools/mcp/tests/cad_features.json @@ -12,7 +12,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "call_tool", "args": {"tool": "new_design", "args": {"discard_changes": true}}}, // M5 hex standoff: 8 mm across flats, 15 long, M5's 4.134 mm tap drill through it. diff --git a/tools/mcp/tests/cad_sketch_edit.json b/tools/mcp/tests/cad_sketch_edit.json index 48ce18af0c..68b8c0dbdd 100644 --- a/tools/mcp/tests/cad_sketch_edit.json +++ b/tools/mcp/tests/cad_sketch_edit.json @@ -12,7 +12,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "call_tool", "args": {"tool": "new_design", "args": {"discard_changes": true}}}, // The bench's M5 hex standoff from a polygon 8 across the flats and its 4.134 mm tap drill. diff --git a/tools/mcp/tests/cad_sketch_to_solid.json b/tools/mcp/tests/cad_sketch_to_solid.json index b650a62af2..ddf1117a02 100644 --- a/tools/mcp/tests/cad_sketch_to_solid.json +++ b/tools/mcp/tests/cad_sketch_to_solid.json @@ -11,7 +11,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "call_tool", "args": {"tool": "new_design", "args": {"discard_changes": true}}}, // An L-bracket profile on XZ, which passes through modeling_origin, not the bed corner: 40 x 30, 4 thick. diff --git a/tools/mcp/tests/cad_topology_targets.json b/tools/mcp/tests/cad_topology_targets.json index 41f4e63300..4a6eadfbf3 100644 --- a/tools/mcp/tests/cad_topology_targets.json +++ b/tools/mcp/tests/cad_topology_targets.json @@ -13,7 +13,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "call_tool", "args": {"tool": "new_design", "args": {"discard_changes": true}}}, // Back plate 60 x 5, arm 35 out, lip 15 up, 20 wide. diff --git a/tools/mcp/tests/calibration.json b/tools/mcp/tests/calibration.json index 3b808fb04b..eb9bcc8457 100644 --- a/tools/mcp/tests/calibration.json +++ b/tools/mcp/tests/calibration.json @@ -14,7 +14,7 @@ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "auto_answer_dialogs", "args": {"rules": [{"match": "restore", "button": "no"}]}}, {"tool": "new_project", "args": {"discard_changes": true, "preset_changes": "discard"}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "run_action", "args": {"id": "orca_command:filament_delete:orca"}, "optional": true}, {"tool": "run_action", "args": {"id": "orca_command:filament_delete:orca"}, "optional": true}, diff --git a/tools/mcp/tests/context_menus.json b/tools/mcp/tests/context_menus.json index 095ca9bb83..be233facd1 100644 --- a/tools/mcp/tests/context_menus.json +++ b/tools/mcp/tests/context_menus.json @@ -13,7 +13,7 @@ {"match": "Uniform scale", "button": "ok"}, {"match": "per-object setting mode", "button": "ok"}]}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "run_action", "args": {"id": "orca_command:add_primitive_cube:orca"}}, {"tool": "wait", "args": {"for": "idle"}}, diff --git a/tools/mcp/tests/dialogs_canvas_input.json b/tools/mcp/tests/dialogs_canvas_input.json index 58d2f60f71..d45bd01cf4 100644 --- a/tools/mcp/tests/dialogs_canvas_input.json +++ b/tools/mcp/tests/dialogs_canvas_input.json @@ -15,7 +15,7 @@ {"match": "unsaved changes", "button": "no"}, {"match": "Transfer or discard", "button": "Transfer"}]}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, // ---- An auto-answered Transfer keeps the edit on the newly selected process preset ---- diff --git a/tools/mcp/tests/gizmos.json b/tools/mcp/tests/gizmos.json index 146866a71d..1da10d3c6c 100644 --- a/tools/mcp/tests/gizmos.json +++ b/tools/mcp/tests/gizmos.json @@ -9,7 +9,7 @@ "orca_replay": 1, "name": "every gizmo", "vars": { - "window_size": [1920, 1200], + "window_size": [1600, 900], "svg": "${replay_dir}/fixtures/star.svg", "heightmap": "${replay_dir}/fixtures/heightmap.png" }, diff --git a/tools/mcp/tests/layers.json b/tools/mcp/tests/layers.json index d71cac6ec2..638ad37f4b 100644 --- a/tools/mcp/tests/layers.json +++ b/tools/mcp/tests/layers.json @@ -13,7 +13,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "open_files", "args": {"paths": ["${vars.cube}"]}, "expect": {"/added": {"eq": 1}}}, {"tool": "transform", "args": {"object": 0, "size": [20, 20, 20]}}, diff --git a/tools/mcp/tests/multicolor.json b/tools/mcp/tests/multicolor.json index 476d665670..7c30c8b3b3 100644 --- a/tools/mcp/tests/multicolor.json +++ b/tools/mcp/tests/multicolor.json @@ -11,7 +11,7 @@ {"match": "restore", "button": "no"}, {"match": "Uniform scale", "button": "ok"}]}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, // A second filament (or one more, on a datadir an earlier run left with several). {"tool": "click", "args": {"target": {"label": "Add one filament"}}}, diff --git a/tools/mcp/tests/ops_assign_filament_preset_multi_slot.json b/tools/mcp/tests/ops_assign_filament_preset_multi_slot.json index cb3dcf8381..d69de9f302 100644 --- a/tools/mcp/tests/ops_assign_filament_preset_multi_slot.json +++ b/tools/mcp/tests/ops_assign_filament_preset_multi_slot.json @@ -17,7 +17,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true, "preset_changes": "discard"}}, - {"tool": "set_window", "args": {"size": [1920, 1040]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, // Simple mode, as on a fresh datadir: the unsaved-changes prompt lists the settings the mode shows. {"tool": "run_action", "args": {"id": "orca_command:mode_simple:orca"}}, diff --git a/tools/mcp/tests/ops_assign_filament_preset_one_slot.json b/tools/mcp/tests/ops_assign_filament_preset_one_slot.json index f2a020fee2..e08b800c97 100644 --- a/tools/mcp/tests/ops_assign_filament_preset_one_slot.json +++ b/tools/mcp/tests/ops_assign_filament_preset_one_slot.json @@ -14,7 +14,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true, "preset_changes": "discard"}}, - {"tool": "set_window", "args": {"size": [1920, 1040]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, // Simple mode, as on a fresh datadir: the unsaved-changes prompt lists the settings the mode shows. {"tool": "run_action", "args": {"id": "orca_command:mode_simple:orca"}}, diff --git a/tools/mcp/tests/ops_select_preset.json b/tools/mcp/tests/ops_select_preset.json index a45c6fa4b3..ca632c6da7 100644 --- a/tools/mcp/tests/ops_select_preset.json +++ b/tools/mcp/tests/ops_select_preset.json @@ -13,7 +13,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true, "preset_changes": "discard"}}, - {"tool": "set_window", "args": {"size": [1920, 1040]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, // Simple mode, as on a fresh datadir: the unsaved-changes prompt lists the settings the mode shows. {"tool": "run_action", "args": {"id": "orca_command:mode_simple:orca"}}, diff --git a/tools/mcp/tests/ops_set_instance_count.json b/tools/mcp/tests/ops_set_instance_count.json index fbd68925c3..4094c2f69a 100644 --- a/tools/mcp/tests/ops_set_instance_count.json +++ b/tools/mcp/tests/ops_set_instance_count.json @@ -12,7 +12,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true, "preset_changes": "discard"}}, - {"tool": "set_window", "args": {"size": [1600, 1000]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "run_action", "args": {"id": "orca_command:add_primitive_cube:orca", "args": {"size": [20, 20, 20]}}}, {"tool": "wait", "args": {"for": "idle"}}, diff --git a/tools/mcp/tests/ops_set_plate_locked.json b/tools/mcp/tests/ops_set_plate_locked.json index 1619b76765..4c4c67b424 100644 --- a/tools/mcp/tests/ops_set_plate_locked.json +++ b/tools/mcp/tests/ops_set_plate_locked.json @@ -12,7 +12,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true, "preset_changes": "discard"}}, - {"tool": "set_window", "args": {"size": [1600, 1000]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "run_action", "args": {"id": "orca_command:add_primitive_cube:orca", "args": {"size": [20, 20, 20]}}}, {"tool": "run_action", "args": {"id": "orca_command:plate_add:orca"}}, diff --git a/tools/mcp/tests/ops_start_arrange.json b/tools/mcp/tests/ops_start_arrange.json index a8e3d1ecf0..72275d8f49 100644 --- a/tools/mcp/tests/ops_start_arrange.json +++ b/tools/mcp/tests/ops_start_arrange.json @@ -12,7 +12,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true, "preset_changes": "discard"}}, - {"tool": "set_window", "args": {"size": [1600, 1000]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "wait", "args": {"for": "idle"}}, {"tool": "run_script", "args": {"filename": "${vars.undo}", "code": "import ops_undo\nresult = ops_undo.taken()"}}, diff --git a/tools/mcp/tests/plate_icons.json b/tools/mcp/tests/plate_icons.json index f23ba1de69..bf06ff986d 100644 --- a/tools/mcp/tests/plate_icons.json +++ b/tools/mcp/tests/plate_icons.json @@ -13,7 +13,7 @@ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "auto_answer_dialogs", "args": {"rules": [{"match": "Uniform scale", "button": "ok"}]}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "list_widgets", "args": {"target": "main", "query": "plate_icon"}, "expect": {"/nodes": {"ge": 7}}}, diff --git a/tools/mcp/tests/plates.json b/tools/mcp/tests/plates.json index 8907dce7b5..5bb00b1d59 100644 --- a/tools/mcp/tests/plates.json +++ b/tools/mcp/tests/plates.json @@ -17,7 +17,7 @@ {"match": "Uniform scale", "button": "ok"}, {"match": "Spiral mode only works", "button": "yes"}]}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, // ---- Filament slots: down to one with the - button's command, then a second ---- diff --git a/tools/mcp/tests/presets.json b/tools/mcp/tests/presets.json index 9fe37db1ae..0a1df2ec53 100644 --- a/tools/mcp/tests/presets.json +++ b/tools/mcp/tests/presets.json @@ -20,7 +20,7 @@ {"tool": "auto_answer_dialogs", "args": {"rules": [{"match": "restore", "button": "no"}, {"match": "Uniform scale", "button": "ok"}]}}, // Unsaved edits a person (or an earlier run) left are dropped first, so nothing below asks about them. {"tool": "new_project", "args": {"discard_changes": true, "preset_changes": "discard"}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, // The unsaved-changes prompt lists only the settings the mode shows, and Simple mode also turns // Developer mode off, which the detach refusal below needs. {"tool": "run_action", "args": {"id": "orca_command:mode_simple:orca"}}, diff --git a/tools/mcp/tests/preview.json b/tools/mcp/tests/preview.json index 6a535c06f1..bf0c2f4565 100644 --- a/tools/mcp/tests/preview.json +++ b/tools/mcp/tests/preview.json @@ -16,7 +16,7 @@ {"tool": "auto_answer_dialogs", "args": {"rules": [{"match": "Uniform scale", "button": "ok"}, {"match": "unsaved changes. Would you like to save", "button": "No"}]}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "run_action", "args": {"id": "orca_command:add_primitive_cube:orca"}}, {"tool": "wait", "args": {"for": "idle"}}, diff --git a/tools/mcp/tests/recording.json b/tools/mcp/tests/recording.json index b7148c2e8a..44eeada239 100644 --- a/tools/mcp/tests/recording.json +++ b/tools/mcp/tests/recording.json @@ -12,7 +12,7 @@ {"tool": "auto_answer_dialogs", "args": {"rules": [{"match": "unsaved changes", "button": "no"}, {"match": "restore", "button": "no"}]}}, {"tool": "new_project", "args": {"silent": true}}, - {"tool": "set_window", "args": {"size": [1600, 1000]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "start_recording", "args": {"save_path": "${out_dir}/session.mkv", "overwrite": true, "captions": true, "pointer": true}, diff --git a/tools/mcp/tests/rows.json b/tools/mcp/tests/rows.json index 7e55d993db..9c8e40d90c 100644 --- a/tools/mcp/tests/rows.json +++ b/tools/mcp/tests/rows.json @@ -14,7 +14,7 @@ {"match": "Uniform scale", "button": "ok"}, {"match": "per-object setting mode", "button": "ok"}]}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "run_action", "args": {"id": "orca_command:add_primitive_cube:orca"}}, {"tool": "wait", "args": {"for": "idle"}}, diff --git a/tools/mcp/tests/scene.json b/tools/mcp/tests/scene.json index a11a688f69..9813228020 100644 --- a/tools/mcp/tests/scene.json +++ b/tools/mcp/tests/scene.json @@ -13,7 +13,7 @@ "steps": [ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, // ---- An instance: a scale that grows it drops it onto the bed; size keeps the proportions ---- diff --git a/tools/mcp/tests/slice_stats.json b/tools/mcp/tests/slice_stats.json index 3e2216e978..11c2b0fdcf 100644 --- a/tools/mcp/tests/slice_stats.json +++ b/tools/mcp/tests/slice_stats.json @@ -12,7 +12,7 @@ {"tool": "wait", "args": {"for": "ready"}}, {"tool": "auto_answer_dialogs", "args": {"rules": [{"match": "Uniform scale", "button": "ok"}]}}, {"tool": "new_project", "args": {"discard_changes": true}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, {"tool": "click", "args": {"target": {"label": "Add one filament"}}}, {"tool": "get_app_state", "expect": {"/presets/filaments/1": {"exists": true}}}, diff --git a/tools/mcp/tests/web_dialogs.json b/tools/mcp/tests/web_dialogs.json index 44679af707..221fa013c8 100644 --- a/tools/mcp/tests/web_dialogs.json +++ b/tools/mcp/tests/web_dialogs.json @@ -10,7 +10,7 @@ "name": "web dialogs through the GUI tools", "steps": [ {"tool": "wait", "args": {"for": "ready"}}, - {"tool": "set_window", "args": {"size": [1920, 1200]}}, + {"tool": "set_window", "args": {"size": [1600, 900]}}, {"tool": "set_view", "args": {"tab": "prepare"}}, // ---- The preset bundle dialog, closed by its page's own button ----