Commit Graph
778 Commits
Author SHA1 Message Date
David Mann 7c105d873d Revert "Merge PR #14699: web: allow browser zoom on both host pages"
This reverts commit 66fcded472, reversing
changes made to fbe6b1e594.
2026-11-22 12:23:00 +01:00
David Mann 125955f0aa Merge PR #16302: fix(batch): protect the actions file from the error log 2026-11-22 00:28:56 +01:00
David Mann 4a62988dba Merge PR #16260: CLI: accept a UTF-8 BOM in recorded action files 2026-11-22 00:28:36 +01:00
David Mann 5b185b55f7 Merge PR #15832: docs(cli): list doc.replaceSmartObject in serve help 2026-11-22 00:28:02 +01:00
David Mann eff05c3042 Merge PR #15829: fix(cli): discover GIMP XCF inputs in batch folders 2026-11-22 00:27:55 +01:00
David Mann 6a89476bde Merge PR #15153: fix(logging): preserve logs with an unknown lock state 2026-11-22 00:25:57 +01:00
David Mann 04c06d15c7 Merge PR #15136: fix(linux): honor loader separators in library preflight 2026-11-22 00:25:34 +01:00
David Mann 8bb17b4850 Merge PR #15132: fix(web): distinguish unreachable requests from Wasm traps 2026-11-22 00:25:30 +01:00
David Mann 5744b2547f Merge PR #14726: fix(web): explain when JavaScript is disabled 2026-11-22 00:24:53 +01:00
David Mann 66fcded472 Merge PR #14699: web: allow browser zoom on both host pages 2026-11-22 00:24:23 +01:00
Mex bd6f4055f5 test: cover equivalent actions and error-log paths 2026-11-21 20:28:53 +01:00
Mex eb790f5b82 fix(batch): protect the actions file from the error log 2026-11-21 20:28:42 +01:00
Mex 7a6dba8fe9 CLI: accept a UTF-8 BOM in recorded action files 2026-11-21 18:55:18 +01:00
David MannandClaude Opus 5.5 779b20eeb0 Open Recent lists an automation open where the file is on disk (#16098)
app.open is requested by a path relative to the automation read root. It went
into Open Recent as is, where it names nothing: Home drew a blank card and
clicking it failed. The workspace now reports the file's location below the
root that holds it, and app.open (also the directory .pcraft path) lists that.
The document's save-back path stays root-relative; without a location the open
is not listed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-21 12:50:56 +01:00
David MannandClaude Opus 5.5 5d60d84b8e automation: create the default agent folder only when a direction uses it (#15974)
Same fix as craft-libs#2557 for the window side: with a flag or the
person's own folder covering every direction, the default was created
and never used.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 16:03:24 +01:00
David MannandClaude Opus 5.5 acc82659ea automation: default agent folder and the agent_folders MCP tool (#15974)
With Preferences > AI Integrations' folders empty, agents had no file
access, and the launcher starts `mcp` with no root flags.

- An empty folder setting named by no flag uses the shared default agent
  folder Documents/ArtCraft/Agents/PhotoCraft (craft-libs#2550), in the
  open window (agent link, --control) and in the live headless session.
- agent_folders tells the agent which folders it may use: the headless
  session's roots, or the open window's saved folders with the default.
- Pin craft-libs to bafb452 + the craft-libs#2550 commit until it reaches
  next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 15:23:05 +01:00
FredAppsandFredApps abad0deaea Hold the normalized layer selection across engine reads (#15907)
* Hold ordered layer selection across reads

* Migrate UI and automation to the borrowed document selection

* Fix held selection migration diagnostics

* Preserve held selection for unchanged active layer

* Keep owned selection snapshots in engine tests

* Allow consuming a document state without cloning

* Preserve document ownership on close and capture export selection

* Migrate engine integration tests to held selection

* Keep isolate-layer test selection snapshot

* Read the active layer before editing the gradient test document

* Remove redundant selection slice borrows

---------

Co-authored-by: FredApps <[email protected]>
2026-11-20 18:11:54 +07:00
aiongg eb7fae1898 Merge pull request #15819 from aiongg/test-exit-deadline
control_exit_code: drop the in-test exit deadline
2026-11-19 18:16:54 -05:00
Mex 9445f7a0b0 docs(cli): spell out doc.replaceSmartObject in serve help
Use the full RPC method name so users can search for it in help and the generated man page. The method list still matches all 19 entries in the RPC registry.
2026-11-19 22:10:10 +01:00
David Mann 6dacd20f38 Merge pull request #15763 from davidmann4/automation/shared-live-client
automation: the MCP CLI uses the shared live client (#15762)
2026-11-19 22:09:37 +01:00
Mex e0e8c0fde2 fix(cli): reject lossy paths during flat batch discovery
Fail before output planning when a recognized input path cannot be represented in the headless API. Add a Linux CLI regression with the invalid-byte filename and its valid replacement-character alias.
2026-11-19 22:07:16 +01:00
Mex 63164a7a79 docs(cli): list doc.replaceSmartObject in serve help 2026-11-19 22:00:44 +01:00
Mex df85542f8b fix(cli): discover GIMP XCF inputs in batch folders
Updated the input recognition logic to include new file extensions and added tests for GIMP XCF file handling.
2026-11-19 21:53:09 +01:00
aiongg 6749fc1bb2 control_exit_code: drop the in-test exit deadline 2026-11-19 20:19:44 +00:00
David Mann 47c5abbecd Merge #13714 into the merge queue batch
Batch: the error log is UTF-16 big-endian with Start Batch / End Batch and native paths (#13665)
2026-11-19 21:04:29 +01:00
David Mann 810f4cb7eb Merge origin/main into automation/shared-live-client
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	crates/engine/Cargo.toml
2026-11-19 17:40:46 +01:00
David MannandClaude Opus 5.5 32b6d22b2a automation: the MCP CLI uses the shared live client (#15762)
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]>
2026-11-19 15:52:51 +01:00
aiongg c353bd0274 windows_delay_loads: read the exe path at run time, so a run from a nextest archive finds it 2026-11-19 06:34:17 +00:00
David MannandClaude Opus 5.5 d4797333de Tests: trim repeated solves and loops in engine and GPU tests (#15367)
- 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]>
2026-11-18 20:47:59 +01:00
FredApps 6bbe4cc1df fix(cli): retain typed errors through launch option validation 2026-11-18 07:04:49 -05:00
aiongg 8bc1e51260 Merge storytold main into main-gate-fixes 2026-11-18 11:06:37 +00:00
FredApps 9d57ea4b1c Merge pull request #15095 from yoriswind/codex/define-brush-visible-source-14271
Define brush presets from the visible document composite
2026-11-18 16:28:32 +07:00
aiongg d6ca99a146 Tests: the app lives in one Box, so test frames no longer hold copies of it
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.
2026-11-18 07:11:02 +00:00
Dylan M. Taylor b4c6ef3814 fix(web): retain verified runtime fonts across UI rebuilds 2026-11-17 15:49:24 -05:00
aiongg 1d490ea99a Web app: the brush-preset warning takes a notice Tone, and served_fonts::install no longer takes the context 2026-11-17 17:46:50 +00:00
aiongg ed14e1c413 PhotoCraft on the craft UI framework (#15449)
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.
2026-11-17 10:41:35 -05:00
yoriswind 4f0cbe7477 Format compositor test placement 2026-11-16 01:57:45 -08:00
yoriswind 47eaef2f51 Use explicit preset-store imports in the Web bridge 2026-11-16 01:52:40 -08:00
Dylan M. Taylor 51e8a99bf0 Merge pull request #8455 from Higgs32584/fix/8272-delayload-prntvpt
Windows: PhotoCraft starts without prntvpt.dll (#8272)
2026-11-15 18:23:32 -05:00
Trevor BrownandClaude Opus 5.5 61dc2216c6 Merge storytold/photocraft main (d547d50c7) into fix/batch-log-format-13665
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
2026-11-15 15:36:34 -05:00
David Mann 0362120fc4 Merge pull request #11674 from yoriswind/codex/actions-library-commands-10706
Add Clear All, Reset, and Replace Actions to the Classic panel
2026-11-15 16:53:01 +01:00
Mex be32808251 fix(logging): preserve logs with an unknown lock state
Only a missing lock file proves an instance log is inactive. Preserve logs on other lock-open errors and extend the real-file rotation regression.
2026-11-15 15:35:08 +01:00
Mex 481872835b fix(linux): honor loader separators in library preflight
Parse colon and semicolon separators and preserve empty components in nonempty LD_LIBRARY_PATH lists. Add focused parser and startup-decision regressions.
2026-11-15 14:48:57 +01:00
Trevor BrownandClaude Opus 5.5 04f04499ef Merge storytold/photocraft main (5bdbcc118) into fix/batch-log-format-13665
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
2026-11-15 08:35:57 -05:00
Mex 4f9f5a233f fix(web): distinguish unreachable requests from Wasm traps
Avoid treating ordinary network or resource errors containing unreachable as a stopped Wasm module. Preserve recognized browser trap messages and RuntimeError handling, with positive and negative regressions.
2026-11-15 14:32:28 +01:00
yoriswind dc69bb6e1e Merge current main to repair inherited Classic CI failures
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.
2026-11-15 05:04:53 -08:00
Dylan M. Taylor b675880b35 Format shared Base64 monitor-profile call 2026-11-15 12:02:29 +00:00
Dylan M. Taylor 3bae275d0a Refresh Base64 codec removal and retain plugin alphabet compatibility 2026-11-15 11:54:15 +00:00
Dylan M. Taylor 6297515031 chore: cut over remaining resvg and roxmltree usages to craft-svg and craft-xml (#14320)
* 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
2026-11-14 13:49:42 -05:00
Mex ecc766d199 fix(web): keep the boot host no-script fallback in sync
Added a noscript section to inform users about JavaScript requirements.
2026-11-14 19:08:25 +01:00