Commit Graph
518 Commits
Author SHA1 Message Date
aiongg 15a046c537 Merge PR #3098: Issue #3070: the CLI's refused-connection tests use a free port, not 18437 2026-10-31 02:06:53 +00:00
aiongg bc36137608 Merge PR #3076: Issue #3069: --connect resends a command that crossed the app's idle-close notice 2026-10-31 02:06:53 +00:00
aiongg 6ad10a6bf4 Merge PR #3006: CLI-HOSTILE: render --set refuses inf / NaN instead of dropping the value 2026-10-31 02:06:53 +00:00
aiongg 035564c828 Merge PR #2963: Accept a UTF-8 BOM at the start of lightcraft-cli --script files 2026-10-31 02:06:52 +00:00
aiongg 2201129a72 Merge PR #2723: Control port: close gracefully so the client reads its last reply (Windows reset) 2026-10-31 02:06:52 +00:00
insideTheFluxandClaude Opus 5.5 ac882a4b36 Merge storytold/main into feat/windows-monitor-profile
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 15:45:25 -07:00
OneSlipsandClaude Opus 5.5 3f09c85c56 LR-EDIT-OPTICS-PROFILE: merge main (integration batch 45)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 06:56:07 +10:00
Brandon Thomas c1fb95dfc0 Merge PR #3225 2026-10-30 15:24:30 -04:00
Chad ElliottandClaude Opus 5.5 e407ed0e3d test(cli): #3070 the tests that release an ephemeral port before use take turns
unused_port() lets its port go before the CLI connects, and the denoise-serve test
does the same before starting its server: with several test threads the server could
start on a port a refused-connection test had picked, which then reached it instead
of being refused. The three tests now hold one lock for their whole run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 13:02:10 -05:00
Chad ElliottandClaude Opus 5.5 54193e7cb8 test(cli): #3070 refused-connection tests use a free port, not 18437
The `--connect` failure-hint tests connected to 127.0.0.1:18437 and assumed
nothing listened there, but agents give their apps' control servers ports in
18000-19999. With an app on 18437 the tests sent it `ui.inspect` and failed.
They now bind 127.0.0.1:0, drop the listener and use that port, and check the
`--control <port>` hint against it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-30 13:02:10 -05:00
Dylan M. Taylor 445dd3106e Update prompt shows the app icon and accent color instead of a letter (#3362)
UPDATE_APP (native builds; craft-update is a native-only dependency) carries our 128 px icon and accent (#f2a516, its colour in ArtCraft Launcher). The updater, the self-update
helper and craft-update's startup prompt all get them through crate::UPDATE_APP; the
prompt draws the icon, the accent and "by ArtCraft" (craft-update's default developer).

craft-update is pinned to storytold/craft-libs main at 1065653e7 (#434).
Clippy fixes for Rust 1.99 in untouched code (same logic):
- crates/engine/src/cmd/export.rs
- crates/ui-egui/src/dialogs/rules_editor/rules_move.rs
- crates/ui-egui/src/panels/detail.rs
2026-10-30 01:27:49 -04:00
Bruno-Alumn a48449a527 LRC-LIB-CATALOG-SWITCH: a remembered library that can't be read is reported as unreadable, and why it's missing is translated (#3239)
The reasons Try Again and the launch check give for a missing remembered library are now in the
interface language (all 17 catalogs). A folder that can't be looked into (no permission, a share
that timed out) is no longer called gone: lightcraft_engine::library::library_state tells a missing
catalog from a failed lookup, and the window shows the system's reason.
2026-10-30 02:09:20 +01:00
Bruno-Alumn 72c44530ef LRC-LIB-CATALOG-SWITCH: Try Again on a missing remembered library makes none in an empty folder (#3239) 2026-10-29 23:01:22 +01:00
Bruno-Alumn 8ca7280e2b LRC-LIB-CATALOG-SWITCH: a library missing at launch is reported instead of being made anew with demo photos (#3239)
When the library last opened was missing at launch (its drive or network share not connected yet, or moved), LightCraft created an empty library at that path, seeded it with the demo photos and opened it. The launch plan now marks the library remembered in Settings, and when it holds no library the session opens nothing and the can't-open window offers Try Again, Choose Another Library, Continue Without Saving and Quit. The default location, --library and LIGHTCRAFT_LIBRARY are still created when missing, as before.
2026-10-29 14:53:12 +01:00
OneSlipsandClaude Opus 5.5 da65a3f118 LRC-LIB-CATALOG-SWITCH: the launch arguments' library checks share one deadline
Each argument's check had its own 2 s, so several paths on a dead mount could hold the window back
2 s each. `launch_imports_in` now takes one `launch_deadline()` for the whole batch and checks each
argument with `launch_path_until`; once it has passed, an argument is imported without the check.
Test: a past deadline imports a library folder at once, without probing it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 13:42:33 +10:00
Brain WangandClaude Sonnet 5.5 87bba4ec28 MENU-BAR: merge the native menu's identical quit/about/settings branches (clippy::if_same_then_else)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-29 09:58:40 +08:00
OneSlipsandClaude Opus 5.5 698352009d LR-EDIT-OPTICS-PROFILE: merge main (59a5d00c6, the ui-egui split of #3111)
The lens-database dialog arms go into main's split dialogs module; quick.rs
and frame.rs take main's explicit imports plus what this PR uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 18:57:22 +10:00
Dylan M. Taylor f6489e60d8 refactor(lightcraft): import prefs and GPU crash names explicitly 2026-10-28 03:25:18 +00:00
Nathaniel Ledford e60b7d1787 MENU-EDIT-SELECTNONE: Edit lists Select Only Active Photo and Paste Settings from Previous with their kin, and the native Edit menu keeps single separators 2026-10-27 22:50:05 -04:00
Nathaniel Ledford 9fabf58cf3 MENU-HELP-HELP: on macOS the Help menu is registered with AppKit after the menu bar is installed 2026-10-27 21:17:14 -04:00
Nathaniel Ledford 2deaa50b9e MENU-BAR: run the native menu's per-frame sync on stand-ins and test it with rows that share a command 2026-10-27 20:46:46 -04:00
OneSlipsandClaude Opus 5.5 2cd071c722 LR-EDIT-OPTICS-PROFILE: the lens database is offered on first launch and downloads on request (#3073)
Nothing is fetched without the user's click. The first desktop start without a
database (and without LIGHTCRAFT_LENSFUN_DIR) asks once, "Download lens profiles?",
with the size added up from the pinned files, and Download / Not Now. Download
starts the existing pinned download (activity row, cancel); Not Now (or Esc)
fetches nothing and the app doesn't ask again. Settings > General > Lens profiles
has a Download Lens Database button and a switch that turns the offer back on.
The answer is kept in ui.json (lensDatabase: ask / accepted / declined; an
unreadable value asks again), and lensfun_download::fetch_on_start is the one
place that decides. The CLI and headless MCP never ask and never fetch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 08:29:30 +10:00
Dominic Anaeto 3d357617c4 CLI: cover invalid Windows arguments 2026-10-27 18:05:24 -04:00
OneSlips ef2b209030 Merge remote-tracking branch 'origin/main' into pr/lens-database-download 2026-10-28 07:38:33 +10:00
Nathaniel Ledford ebfd198ea0 MENU-BAR: give each native menu row its own id so repeated commands keep their rows and labels 2026-10-27 16:57:12 -04:00
OneSlipsandClaude Opus 5.5 8793fa83f8 Issue #136: merge main (upstream file split)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 06:37:52 +10:00
OneSlipsandClaude Opus 5.5 77829547d2 LRC-LIB-CATALOG-SWITCH: merge main (upstream file split)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 03:58:16 +10:00
OneSlipsandClaude Opus 5.5 f267ddb504 LR-EDIT-OPTICS-PROFILE: pinned profiles, whole-folder install, shared hosts (review, #3073)
Render caches: a database lens profile is pinned to the photo. A decode never
overrides the catalog's database profile (media::source::pinned_lens), and
the profile is part of the render, thumbnail and variant cache keys
(media::quick::lens_key; only database profiles with the correction on, so
existing thumbnails keep their keys). When a download replaces the
database's files (lens_profiles::replaced), the refresh also re-reads raws
whose profile came from the database and raws that named no lens; an
ordinary start does not. library.refreshLensProfiles takes {all: true}.

Installation: files are staged beside the database folder, SOURCE.txt is
written there last, and the staged folder replaces the old one as a whole;
a failed swap puts the previous database back (and recover() does at the
next start). The app's own folder is read only with its marker, and
installed() checks every pinned file at its pinned size.

Shared hosts: with_default_lens_database() only selects the existing folder;
the permission to fetch is with_lens_auto_download() (desktop only), and the
first-start decision is one function, lensfun_download::fetch_on_start.
CLI render / merge and the headless MCP server select the folder;
lens.downloadDatabase selects the folder it downloads into.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 03:20:10 +10:00
Dominic Anaeto a55218d221 CLI: select each imported photo once 2026-10-27 11:12:10 -04:00
Nathaniel Ledford 2d6126396b LRC-LIB-CATALOG-LOCK: quitting on macOS releases the library lock, so catalog.lock.owner is removed 2026-10-27 07:26:30 -04:00
dotCooCoo d826e79fa2 Skip offscreen Local rows and share hidden-folder checks
Reuse cached folder listings through Arc and allow tests to inject Local places.
Show browsed folders below hidden ancestors as session roots. Apply the same
hidden-entry checks to folder walks, browsing, import scanning, and Local.
2026-10-26 22:36:11 -07:00
OneSlipsandClaude Opus 5.5 f7ebead155 LR-EDIT-OPTICS-PROFILE: merge main
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:09:15 +10:00
OneSlipsandClaude Opus 5.5 b3b792f74d LR-EDIT-OPTICS-PROFILE: merge main (file split)
Main split the app's main.rs, the engine and ui-egui tests and the
frame loop into modules; the lens-database hunks now live in
apps/lightcraft/src/session.rs, crates/ui-egui/src/app/frame.rs and
crates/engine/src/tests/lens_refresh.rs. No behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 13:09:15 +10:00
Dominic Anaeto 939055897f LC-003: reject non-UTF-8 CLI arguments cleanly 2026-10-26 23:05:54 -04:00
Dominic Anaeto b576c72d0b LC-002: reject invalid script parameters 2026-10-26 22:59:44 -04:00
Dominic Anaeto 05ff4ca06d LC-001: stop commands after failed imports 2026-10-26 22:59:41 -04:00
skylar taylor-barrick 662df66f1c Preserve queued file drops across dialogs and restore Flatpak sources (#2975) 2026-10-27 03:50:41 +01:00
insideTheFluxandClaude Opus 5.5 d0eaf2e797 Merge storytold/main into feat/windows-monitor-profile
main split the desktop app's main.rs and ui-egui's lib.rs into modules (#3103): the Windows
screen_profile service moves with services() to apps/lightcraft/src/session.rs, the field's doc
comment to crates/ui-egui/src/services.rs, and the LR-PREF-DISPLAY row takes main's
dialogs/settings.rs path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GfjNkJiMUagz3DN3zoV2rV
2026-10-26 18:50:55 -07:00
aiongg 2e5597d48a refactor(lightcraft): split main.rs into crate-root modules 2026-10-26 21:39:56 +00:00
aiongg d151df0149 style: cargo fmt the moved test modules 2026-10-26 18:30:36 +00:00
aiongg ebff40bbd0 refactor(lightcraft): move logging.rs tests to apps/lightcraft/src/logging/tests.rs 2026-10-26 18:16:10 +00:00
aiongg 4e57c3b99a refactor(lightcraft): move main.rs tests to apps/lightcraft/src/tests.rs 2026-10-26 18:16:10 +00:00
aiongg 567e7f1126 test: scan source directories recursively
xtask parity reads the UI command tables from menus.rs and every file under menus/, and the desktop app's dialog-filter test checks every source file under src/, so both keep finding their items after files move into subdirectories.
2026-10-26 18:01:09 +00:00
OneSlipsandClaude Opus 5.5 5554d7811a LR-EDIT-OPTICS-PROFILE: review fixes (desktop library session, stale results, cache race, old files, failed download)
- The desktop app's opened library gets the lens database too (it was set
  only on the session used when no library could be opened); not for
  --memory.
- A lookup result whose photo moved meanwhile is dropped for its virtual
  copies as well; the list keeps one entry per photo (HashSet).
- lens_profiles: reload() bumps the generation under the cache lock and
  a load that raced a reload isn't cached.
- Installing a new pin removes XML files the pin doesn't list (nothing
  else in the folder).
- The Optics panel says when the first-run download failed and no
  database is in use (13 locales).
- Tests: stale result with a virtual copy (fails before the fix), old
  XML removed / other files kept, the failed-download readout (offline).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:49:19 +10:00
Chad ElliottandClaude Opus 5.5 0a76419c4e fix(mcp): #3069 resend a request that crossed the app's idle-close notice
A request sent just as the app expires an idle control connection crosses
the app's id-less idle-close notice: the client's pre-send check saw an
open connection, wrote the request, and read the notice as its reply, so
`--connect` and the MCP server failed a command the app never read.

The app reads nothing after its idle timeout, so such a request never ran.
The app now marks the notice `"closed": "idle"`, and `Remote::call` sends
a request whose reply is that notice once more on a new connection (it
also matches the notice's exact text, for apps from before the marker).
At most one resend per call, whatever the reason; a reply with an id or
any other error is returned as before.

`idle_close_reconnects_without_replaying_a_command` now forces both
orders (notice before the next request, and a request crossing it)
instead of racing the notice; with main's client it fails every run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-26 11:08:24 -05:00
OneSlipsandClaude Opus 5.5 030e0edd0a LR-EDIT-OPTICS-PROFILE: catalog format 10 for the lens source, snapshots stay offline
- EmbeddedLens.source is a serialized field an older build would drop:
  catalog format 9 -> 10 (journal table row, NEWEST_FIELDS in the
  version guard).
- lightcraft-cli snapshot reads a downloaded lens database but never
  starts the download (scripts and tests stay offline).
- The staging folder name and file cap are native-only (unused in the
  web build).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 02:05:10 +10:00
OneSlips 2ec4add0d6 LR-EDIT-OPTICS-PROFILE: lensfun database downloaded on first run, library looked up, Optics names the profile
- lensfun's data/db (CC BY-SA 3.0) is fetched by the desktop app on first
  run into <config dir>/lensfun, pinned to commit 43f9e001 by name, size and
  SHA-256, staged until every file is verified, with an activity row (never
  bundled). LIGHTCRAFT_LENSFUN_URL lists other mirrors; LIGHTCRAFT_LENSFUN_DIR
  still wins. lens.downloadDatabase / lens.databaseStatus for agents.
- The database is read per folder and again after a download; when it
  changes, library raws without a profile whose lens it knows are probed in
  the background and get it (untouched photos switch the correction on as
  import would); ticking Enable Lens Corrections looks those photos up again
  (library.refreshLensProfiles).
- EmbeddedLens records its source (file / lens database); the Optics panel
  says "Profile: <lens> (lens database)", "Profile: from the file" or
  "No lens profile found for <lens>." (13 locales).
- Tests: pinned download and refusal of a wrong file, the lookup and its
  edited / untouched rules, and presets / Copy-Paste / Sync carrying only the
  switch and amounts, each photo keeping its own lens's profile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 773740fbb22eb66e7f62bada9cb32b594b6ff4d7)
2026-10-27 01:14:00 +10:00
francoisgn 03e1ffa7b7 Merge upstream/main into feat/issue-2592-lightroom-backup-zip
# Conflicts:
#	docs/parity-checklist.md
2026-10-26 13:37:49 +00:00
OneSlips c515219270 Merge remote-tracking branch 'origin/main' into pr/gpu-setting-no-wait 2026-10-26 14:50:08 +10:00
francoisgnandClaude Opus 5.5 57c8c8d455 #2270: the host bridge parses command params with automation::params
Upstream's `lightcraft.command` now has the same params rule (`automation::params`, blank or null
is `{}`, anything but an object is refused unrun) that the bridge carried as `host::cmd_params`.
One parser for both entry points; its tests live with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01697nraCtyEpry7BiGLJjqv
2026-10-26 04:32:49 +00:00