Roadmap 0.13, Fixes
FX.768 Studio runs on a Linux machine with no display: cadcraft-studio --headless, for AI agents and scripts
Asked 2026-12-02 (message 1797): a firm wants an AI agent to drive PartCraft, DetailCraft, CadCraft and MarkupCraft on Linux with no display. Until now only the file tools of @getcadcraft/mcp ran that way; Studio's live tools needed a screen and a person to turn on Settings, Assistants.
Built: cadcraft-studio --headless [--allow=…] [--apps=…] [--root=<folder>]… [--open=<app>]… [--port=n] [--print-token]. Linux only.
- Shell (desktop-shell headless.rs, lib.rs, control.rs, portable.rs): its own private Xvfb display, a separate headless data folder, no single-instance hand-over, no update check, --root folders granted for the run, one JSON line when the server is up, a clean end on SIGTERM / SIGINT. Exit 2 bad value, 3 no Xvfb, 4 port taken.
- Hub and apps (studio/hub/headless.js, hub.js, host.js): each app's Assistants rule comes from the flags, the server stays on with no window, studio_apps_open opens an app, nothing waits for a person.
- Found on the way: MarkupCraft opens a PDF by path for an assistant; DetailCraft model_save takes a path.
- npx @getcadcraft/studio --headless (not published), a container recipe in stores/linux/headless (not built), a help topic, AGENTS-SPEC § 9f.
Tests: Rust 22 of 22 (a real Xvfb start and stop), the crate compiles; launcher 23 of 23; test-hub 162 of 162; studio/test/headless-chain.mjs in the lab with no click: MCP SDK client, reference server, the real hub and lab apps make a PartCraft bracket, export STEP into the root, add a DetailCraft member, save a DWG, mark up a PDF, and are refused outside the root and when read only.
Not done: the Rust shell was stood in for in the chain test. A real headless start (Xvfb, WebKitGTK in software, signals through an AppImage), the container image and the launcher's publish wait for the next Studio build. Help is English only. Windows and macOS are not covered.
studio-13 2026-12-03: ready for the build, nothing published. The npm launcher now refuses --headless with a Studio older than 0.13.0 in words (it would wait for a display), test 24/0; the container recipe (stores/linux/headless/Dockerfile) checked against the real release names (studio-v<version>/CadCraft-Studio-<version>-amd64.deb) and bookworm's packages; it is built only after 0.13.0 is on GitHub. New tools/studio-test/headless-real.mjs runs the REAL staged shell with --headless on the VPS (JSON line, connect.json, Xvfb, a STEP export into --root, SIGTERM clean): its first run is release-build's. docs/0.13-sessions/studio-check-sheet.md line 1.
Community comments
No comments yet
Add detail as we go: how you would use it, files or steps that show the problem, what other programs do. The team reads every comment.
Sign in or create a free account to add a comment.