`PhotoCraft --launch-profile nightly-v1 --profile-root <dir> --version`,
the shared producer's smoke, was refused by the strict launch-profile
parser (no `--`), and the refusal opens a native dialog on macOS, which
never returns on a headless runner: the hosted run did not exit in 180 s.
A Nightly build now treats exactly the selector/root pair followed by
`--version` or `-V` as a version query: the same line as plain
`--version`, exit 0, before root validation, process identity, IPC or any
window. Only parse()'s lexical checks apply; every other refusal is
unchanged and `-- --version` stays a file name.
nightly-verify.sh checks both forms, each within 15 seconds and with
nothing on standard error, so the PR's Mac build covers the smoke.
- The Nightly exit hook is installed only on macOS; Linux and Windows keep
finishing the session after run_native returns.
- nightly_build_gui checks the tree is still clean after --version (Linux).
- nightly_refuse_signing_env also refuses the Windows, Azure and Linux
signing names release.yml passes.
- nightly-sign.sh drops the single spctl run before the retried final check.
- nightly-macos.yml also runs for Cargo.toml, Cargo.lock and the text and
ui-egui build scripts.
On macOS every quit (Cmd+Q, the close button, File > Quit, app.quit) leaves
through craft::quit, which sends -[NSApplication terminate:]. winit's
applicationWillTerminate: delivers LoopExiting, eframe runs the app's
on_exit, and AppKit then ends the process, so eframe::run_native never
returns there and the controlled-return code after it (the Nightly
session finish) never ran: every Mac Nightly start reported the previous
session as unclean.
Services gets an at_exit hook that on_exit runs once, last. The desktop
app finishes the shared Nightly session there, and again after run_native
for the paths that create no window (renderer failure), where the second
call is a no-op.
nightly.ps1 now enforces what the Linux helper does: an exact 40-hex commit, a
version naming that commit, the original run date, and a clean checkout of it
before and after the build. package.ps1 no longer defaults those for Nightly.
The profile root also refuses the default MSI install folders, folders under a
portable copy and the stable Flatpak data folder, and every existing entry in
the profile must resolve inside it. An empty build channel means stable.
scripts/engine_split/slot_access.py rewrites the slot fields to their accessors
(Tracked presets deref through one more *), adds the trait imports, turns
s.presets_changed() into presets::presets_changed(s) and points Session::method doc
links at the trait methods. Its fix mode applies what cargo check reports; branch
mode serves open branches and lists their edits to the moved methods. The
definition-span helpers session_state.py uses move to rust_source.py so both
scripts share them (session_state.py's output is unchanged).
This commit is split plus the fix rounds against cargo check of engine-core,
engine, ui-egui and automation (lib and tests). Part of #15710.
If the previous session was interrupted and renderer initialization fails before
the window opens, the controlled return no longer clears the session record, so
the CPU retry (or the next start) still shows the notice. A session that showed
it clears the record as before.
- Close in a floating window closes its document through the guarded
close (a document with unsaved changes asks first, the window stays
meanwhile), as in the reference application; a New Window for Document
view still only closes itself.
- The placed rect is the outer origin with the inner size: the framework
applies its size as the inner size, so a decorated window (system title
bar) grew by its frame every pass.
- The floating status bar's zoom edit uses the window's own scale.
- The Home screen and the batch preview clear the dock target.
- The OS-move release reads the mapped primary button (swapped buttons).
- The window tests use a fixed app-drawn frame, whatever the OS.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
crates/engine keeps the package photocraft-engine: src/facade.rs re-exports
photocraft-engine-core, and its Session wraps core's and installs every engine
command. Core's Session::new() installs nothing; core gets install() and session().
The command registry keeps main's behaviour (empty before an install).
The top crate's dev-dependencies cover tests/ and examples/, including
craft-develop-model (camera raw baseline test) and photocraft-testkit (the
corpus-gated Photoshop oracle test). Dependents that need the core type or
borrowed two fields through the wrapper are fixed at the call site, and tests
that reach the registry before any session install first.
Tooling follows the package: workspace dependency, cl selection, xtask layers,
i18n report, scorecard and corpus paths, nextest overrides, ci-test-times rows,
display-names roots, prefs_usage paths, the engine split scripts, docs, and the
two release-perf steps in ci.yml.
Corpus .atn paths, the layer_menu registry read and the craft-develop-model
dev-dependency are FredApps' fixes from #16431.
Part of #15710
On Windows the app-drawn frame's hit test hands the title bar to the OS,
which runs the move: the app sees neither the press nor the release. A
new primary_down service (GetAsyncKeyState) tells when the button goes
up; a window that moved and ends with the OS pointer on its bar over the
main window's tab strip docks. The drop target is the tab strip, or a
tab-high band at the top of the document area where no strip shows; the
app looks again every 50 ms while such a move lasts and repaints after
docking, so the OS window closes at once.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
embed::before_ui takes the native window, so on Windows the runtime answers the
window's hit test and resize starts at the press (craft-libs#2995). It also fits
a window bigger than its display once, which replaces work_area::fit_window.
Adds the font picker tests for craft-libs#3010: typed keys stay in the search,
and hover previews without a history step.
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]>
One bounded app-private record and lease after primary IPC claim; normal controlled completion clears before IPC release. No Launcher consumer, telemetry or automatic reporting. Four behavioral cases authored, unrun; new-tree compilation/native proof pending.
Reuse the SDK resolved stable Documents boundary and existing workspace injection. Reject profile overlap and escaping default-folder aliases without stable fallback. Five added regressions are authored; execution is pending.
Unqualified source checkpoint. Current-main composition, remaining source closure and platform validation are pending; frozen Windows functional proof is separate.
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]>
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]>
* 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]>
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.
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.