photocraft-cli mcp resolved each tool call with its own copy of the
"find the open window" client. craft-libs now ships that client for
every app (craft_control::agents::Live, re-exported as
craft::automation::agents::Live by craft-libs#2391), so live.rs keeps
only PhotoCraft's parts: reading its saved preferences, its bridge
client and its headless session. The app's AgentSwitch::watch takes a
plain closure now instead of craft_host::Wake.
The craft-libs pin is craft-libs#2391's head for now; it moves to the
merge commit on next once that lands.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- parity.rs: the two paging tests use a 660x580 document (3x3 pages, one interior cell)
instead of 1100x900, and eviction runs 2 rounds; the residency tests that share the large
document keep it. 16-bit runs only where the GPU reads the 16-bit upload (one effect stack,
Dissolve and pattern cases). The disjoint-damage test paints 2 distinct series of 8 strokes
and isolates its layers so strokes capture checkpoints, which makes its bytes assert able to
fail. many_layers_submit_inside_one_chunk_paged is removed: its stats equal the whole test's.
- Coarse preview: drop an unchecked full-resolution solve; colour tests reuse solves and use
Extend where Move only adds an unread fill.
- Crop fill eligibility is a unit test on additional_target; the integration test keeps 3 cases.
- PSD write oracle: one run with a passing and a failing case instead of two runs.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PhotocraftApp::new and with_context return Box<Self>, and the test harness
holds the Box (a forwarding eframe::App impl for Box<PhotocraftApp>). The 85 KiB
app was held by value in the test, its helper, build_app, build_eframe and
from_builder, all under the first egui pass. The 11 overflowing tests need
0.34-0.78 MiB of stack instead of 1.7-2.0 MiB (mask_click 2032 -> 748 KiB,
navigator_gpu 1956 -> 760, native_tests 1848 -> 748, keys_run 1708 -> 776).
The 8 MiB test thread for the Type Mask click test is removed.
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
Picks up main's fix for the assign_shortcut test and the Cargo.lock order (#15196), so CI runs on a green base.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model-Effort: Opus 5.5 driver, no subagent
Picks up main's CI fixes (#14595), so CI runs on a green base.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Model-Effort: Opus 5.5 driver, no subagent
Retain the Classic Actions feature unchanged and incorporate official main fixes for workspace write policy, Format persistence, RAW fixtures and SVG resource accounting. No manual merge resolution.
* chore: cut over remaining resvg and roxmltree usages to craft-svg and craft-xml
* Cut over remaining photocraft-io TIFF tests, rawinfo example, and move exr to dev-dependencies
* chore: remove unused zune-jpeg workspace dependency
* style: cargo fmt
crates/engine/src/cmd/file_cmds.rs: both test modules kept (this PR's batch_log_format_tests and main's export_clut_cube_header_tests). file_cmds: 219 passed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Without the AI-MCP flag plain `photocraft-cli mcp` is headless as before: a
Control Port saved before the agents switch no longer makes it look for the
app, start it or apply When PhotoCraft Is Closed. Test in
mcp_without_consent_works_headless (fails without the gate).
- `prefs::read_integrations_section` (migrate + lenient read) is shared by the
app's launch read and `photocraft-cli mcp`: one bad value resets only itself,
so a saved "error" closed-app choice no longer falls back to Launch in the CLI.
Replaces the app's hand-written per-field reader. Test in
integrations_come_from_the_saved_preferences_or_default (fails without it).
- docs/development.md: the headless client examples pass --headless.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
As agreed in craft-ai-integrations#195: one switch for every Craft app, in
the launcher; only the launcher writes MCP client configurations; plain
`<app>-cli mcp` works in the open app.
- Consent: with the AI-MCP flag, the launcher's switch alone decides,
read through `craft-ai-agents` (craft-ai-integrations#197), the crate the
launcher writes the app list with and the gateway reads it with. The
"Let AI agents connect" box is gone; without the flag everything is as on
main (a saved Control Port keeps its connection).
- `photocraft-cli mcp`: works in the open window while agents may use it
(what `--live` did), and headless otherwise, exactly as before (only the
roots given to it; the app is never started). `--headless` forces that;
`--bridge` / PHOTOCRAFT_CONTROL_PORT as before. `--live` and `mcp install`
are gone. Several read roots work again, invalid roots stop the start, and
`--gpu` applies to the headless session.
- Client setup is the launcher's: the client code (Claude Desktop, Claude
Code, Cursor, JSON), Copy Configuration, its service and its docs are
removed (about 740 lines net).
- CLI tests run with their own settings, launcher and flags folders: plain
`mcp` would otherwise find (or start) the developer's own PhotoCraft.
- Docs, book, README, scorecard row, packaging comments follow.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The test expects agents off, but `mcp --live` now also accepts the ArtCraft
Launcher's switch, read from the real per-user folder: on a machine with the
launcher's agents on it failed. It points CRAFT_MCP_DIR at its own folder.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Clear the clippy 1.100 lints that fail the gate on main (#13531)
Clippy 1.100.0 flags needless_range_loop in cms synth.rs (the gate
failure on main), algo photo_util.rs and an engine multichannel test,
and, on Windows only, needless_bool in format noreplace.rs, where the
cfg(unix) branch compiles away. Each loop now iterates the slice it
indexed, with the same values in the same order.
* Clear the Linux-only clippy 1.100 needless_bool lints (#13531)
paths_match in ui-egui and is_redirect in the app ended with a
cfg(not(windows)) branch that is just `false`, which clippy 1.100
flags on Linux. Each platform's branch now returns the whole
comparison: the same results, in the same order.
Resolve public occurrence identity and main playback budgets, nested Batch context and Pen history together. Migrate the deleted local parser to main shared API while preserving public legacy-suffix refusal. No unpublished behavior fixes or local gate runs.
The launcher's Settings > AI agents adds one entry for every Craft app to
Claude Desktop, Claude Code, Cursor and LM Studio (craft-launcher#1432), so
PhotoCraft's page drops its Add to Claude Desktop / Claude Code / Cursor and
Copy Prompt for an Agent buttons. Copy Configuration stays for people
without the launcher, and so does `photocraft-cli mcp install --client`.
Docs, README and the AUTO-MCP-LIVE scorecard row follow.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Turning on ArtCraft Launcher > Settings > AI agents is the person's consent
for every Craft app (craft-ai-integrations#195). While the AI-MCP flag is on
and the launcher's app list (ArtCraft/mcp/apps.json) names photocraft,
PhotoCraft accepts agents as if Let AI agents connect were ticked: the
desktop app watches those files every 2 s and starts or stops the
connection, and `mcp --live` checks them before every call. The page shows
the box ticked and says the launcher turned it on; PhotoCraft's own choice
is kept. Allow Agent Control off still refuses agents.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Preferences › AI Integrations shows the new agent settings (Let AI agents
connect, the agent folders, When PhotoCraft is closed, the buttons that add
PhotoCraft to MCP clients) only while the Craft suite's AI-MCP feature flag is
on (craft-flags, storytold/craft-libs#1118: ArtCraft/flags.toml, which the
ArtCraft Launcher's Experimental features switch writes, or CRAFT_FLAGS).
Without it the page shows Allow Agent Control and Control Port as before, and
a Control Port already set keeps its connection.
craft-flags is pinned to the head of storytold/craft-libs#1119 until it merges.
The Integrations page holds more than the agent connection: open PRs add the
AI services for Generative Fill and other AI features to it (#10903, #12391,
#7007). The menu item stays "AI Integrations…" and the page "Integrations", as
on main; messages and docs say Edit › Preferences › AI Integrations.
`install_claude_code` ignored the result of `claude mcp remove`, so a failed
remove (on CI, a freshly written script briefly busy) led to a second
"already exists" and an error claiming the entry had been removed. It now
reports the failed remove with the command to run instead, and the test
covers it.
Also the CLI tests for the new `mcp install` subcommand: a stray word after
`mcp` is an unrecognized subcommand, and it has its own man page.
* Use craft-psd from craft-libs; remove crates/psd
* Regenerate the scorecard (28 crate roots)
* Take craft-psd at craft-libs 55d120f2
* Regenerate lockfile for current shared format crates
* Pin shared format crates to current craft-libs main
* Match brush import cap to shared decoder budget
* xtask: update layer fixtures after PSD extraction
- Allow Agent Control off refuses the Preferences connection too, as it refuses --control.
- A connection that is on but failed to start (taken port) is tried again every 5 s.
- Listening::drop waits for the accept loop, so the port is free when it returns.
- The session's automation gate follows the live policy (actions agents record).
- The folder picker answers the Preferences dialog that opened it.
- One controlPort migration (engine::prefs::migrate_integrations) for the app, its launch
read and photocraft-cli mcp --live.
- --live: a batch stops when the app changes under it; a waited job is cancelled where it
started; the bridge is keyed by pid too.
- mcp --live ignores an exported PHOTOCRAFT_CONTROL_PORT and refuses --gpu/--no-gpu.
- Claude Code: add first, replace an existing entry only when it exists, and stop a
`claude` that hangs after 20 s.
- Book: the token survives restarts; the challenge handshake, not the probe, protects it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The page only holds the MCP connection, so Edit › Preferences › AI Integrations… is now
Edit › Preferences › MCP… (command id and the `integrations` preference keys unchanged).
Copy Prompt for an Agent puts a text on the clipboard that an agent with a terminal
(Claude Code, Codex, Cursor's agent) pastes to register `photocraft-cli mcp --live` itself
and check the connection; Claude Desktop has no terminal and keeps Add to Claude Desktop.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ported onto current main and #11363:
- The dialog moved into prefs/prefs_ui/agents.rs (prefs_ui.rs was split on main); the port
field is labelled for the accessibility check.
- One agent connection: Preferences start and stop it live (agent_link service); only
--control opens a port at launch. #11363's token reuse, folder rules (absolute paths,
warnings) and readRoot/writeRoot names are kept; a saved controlPort from before loads
with connectAgents on.
- agent_link.rs: #11363's connection file code plus #5525's client install code.
- CLI: mcp --live, --when-closed and mcp install --client on main's clap parser.
- control_server: listen()/Listening on top of main's challenge authentication.
- app_dirs: main's resolver moved to photocraft-automation so the CLI finds the same folder.
- Interface catalogs moved to craft-i18n on main; the PR's rows are not carried over.
Co-Authored-By: Furoxfufu <[email protected]>
Co-Authored-By: ingling <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
* Escape control characters in log lines and diagnostic output taken from files and plug-ins
* address review: escape the plug-in load error and the atn_dump path before printing