Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
53d0a13
LRC-LIB-PEOPLE: persistently ignore and restore selected faces
lostwald Nov 4, 2026
a49c88a
LRC-LIB-PEOPLE: preserve ignored faces through XMP rereads and review…
lostwald Nov 4, 2026
aae8309
LRC-LIB-PEOPLE: retain unnamed selections and scope accessible toggles
lostwald Nov 4, 2026
13707a7
LRC-LIB-PEOPLE: identify selected unnamed faces by catalog geometry
lostwald Nov 4, 2026
ec9bbd6
LRC-LIB-PEOPLE: merge current main and retain both release notes
lostwald Nov 5, 2026
3c095d5
LRC-LIB-PEOPLE: merge main and preserve both library-switch cleanups
lostwald Nov 5, 2026
b0bc65b
LRC-LIB-PEOPLE: merge renderer and catalog updates from main
lostwald Nov 5, 2026
c99f6e3
LRC-LIB-PEOPLE: merge current main with Auto Sync updates
lostwald Nov 5, 2026
dbbd474
LRC-LIB-PEOPLE: retain per-photo XMP policy in mixed history
lostwald Nov 5, 2026
730e4e7
LRC-LIB-PEOPLE: merge main and preserve upright ignored regions
lostwald Nov 5, 2026
dc0b1b9
LRC-LIB-PEOPLE: merge current main CI policy unchanged
lostwald Nov 5, 2026
4b51c19
LRC-LIB-PEOPLE: merge conflict-resistant parity documentation
lostwald Nov 5, 2026
be4a720
LRC-LIB-PEOPLE: leave web CPU-reference correction in its own PR
lostwald Nov 5, 2026
2f5d1fc
LRC-LIB-PEOPLE: merge main journal recovery and process V5
lostwald Nov 5, 2026
2f3a24c
LRC-LIB-PEOPLE: guard person ignore requests across main merge
lostwald Nov 5, 2026
48489f1
LRC-LIB-PEOPLE: move ignored faces to catalog format 13
lostwald Nov 5, 2026
b533259
LRC-LIB-PEOPLE: merge main and preserve parity histories
lostwald Nov 5, 2026
bee4adb
LRC-LIB-PEOPLE: merge onboarding without losing face translations
lostwald Nov 5, 2026
624d124
LRC-LIB-PEOPLE: clear dismissed suggestions when switching libraries
lostwald Nov 6, 2026
cf0c697
LRC-LIB-PEOPLE: merge main and preserve face review documentation
lostwald Nov 7, 2026
e1d67f6
1873: harden persistent face review
lostwald Nov 9, 2026
526d4c7
1873: reject incomplete unnamed ignore selections
lostwald Nov 9, 2026
3d26b79
1873: merge main and preserve both gap histories
lostwald Nov 10, 2026
b58aa80
1873: merge main and retain Survey and face review histories
lostwald Nov 10, 2026
a67ab18
1873: merge main and reserve catalog format 14 for ignored faces
lostwald Nov 11, 2026
669583c
1873: merge main and preserve catalog-only ignored regions
lostwald Nov 15, 2026
200dae1
fix(ci): simplify culling, panel and brush predicates (#4897)
lostwald Nov 29, 2026
2e0403a
Merge main e4b673581 into persistent face ignore
lostwald Nov 29, 2026
25e19c8
Merge standalone baseline lint repair for #4897
lostwald Nov 29, 2026
4614522
Merge main into persistent face ignore
lostwald Dec 2, 2026
b97d163
Merge main and reconcile Face Ignore with the Craft UI port
lostwald Dec 3, 2026
17e1f11
Merge main after the GPU shutdown fix
lostwald Dec 3, 2026
a592be6
Merge main and keep Face Ignore alongside Map commands
lostwald Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions crates/catalog/src/journal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
//! | 13 | Lens Blur | `DevelopSettings.lens_blur`, `Mask.adjust.lens_blur` |
//! | 14 | bursts arranged by hand in Assisted Culling | `Analysis.rank` |
//! | 15 | per-photo denoiser selection | `DevelopSettings.enhance.denoise_model` |
//! | 16 | persistent ignored faces | `RegionKind::IgnoredFace` |
//!
//! Rules:
//! - **Bump [`VERSION`]** (and add a row above) in the change that adds an [`Op`] variant or a
Expand Down Expand Up @@ -115,7 +116,8 @@ pub const LOG: &str = "catalog.log";
const FORMAT: &str = "lightcraft-catalog";
/// The catalog format this build writes (and the newest it reads). See the module docs →
/// *Format versions*; bump it whenever an [`Op`] variant or a serialized field is added.
pub const VERSION: u32 = 15;
pub const VERSION: u32 = 16;
const DENOISER_PIN_VERSION: u32 = 15;

/// When [`Journal::wants_snapshot`] says it's time to compact the log.
#[derive(Clone, Copy, Debug)]
Expand Down Expand Up @@ -661,7 +663,7 @@ impl Journal {
// is appended: a snapshot in this format makes older builds refuse the library instead
// of misreading ops or dropping fields they don't know.
let older = (!report.created && snapshot_version != Some(VERSION)).then(|| snapshot_version.unwrap_or(0));
if older.is_some() {
if older.is_some_and(|from| from < DENOISER_PIN_VERSION) {
catalog.pin_legacy_denoise(resolve)?;
}
if let Some(at) = damaged_at {
Expand Down Expand Up @@ -906,7 +908,7 @@ impl Journal {
let mut seq = self.seq;
for op in ops {
seq = seq.checked_add(1).ok_or_else(|| CatalogError::Corrupt(format!("{LOG}: op counter overflow")))?;
let line = if self.behind.is_some() && has_denoiser_pin(op) {
let line = if self.behind.is_some_and(|from| from < DENOISER_PIN_VERSION) && has_denoiser_pin(op) {
record(seq, serde_json::to_string(&ProtectedOp::PinnedDenoise { change: op }).unwrap_or_default())
} else {
encode_record(seq, op)
Expand Down
221 changes: 219 additions & 2 deletions crates/catalog/src/tests_format_version.rs

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions crates/catalog/src/tests_grids.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,58 @@ fn v9_catalog_with_inline_grids_loads_and_is_upgraded() {
assert!(rewritten.contains("\"grids\":["), "the shared table is in the file");
}

/// Format 12's shared-grid snapshots and the earlier face branch's inline format-12 snapshots
/// both upgrade before writing ignored faces. Face state and every settings holder survive.
#[test]
fn v12_shared_grids_and_faces_upgrade_without_losing_either() {
for shared in [false, true] {
for kind in [lightcraft_meta::RegionKind::Face, lightcraft_meta::RegionKind::IgnoredFace] {
let (mut live, _, id, blob) = masked_catalog(3);
let mut meta = live.photo(id).unwrap().meta.clone();
meta.regions = vec![lightcraft_meta::Region {
rect: lightcraft_geom::Rect { x0: 0.1, y0: 0.2, x1: 0.4, y1: 0.6 },
kind,
name: Some("Person".into()),
description: Some("retained".into()),
}];
live.apply(Op::SetMeta { id, meta: Box::new(meta.clone()) }).unwrap();
let m = MemStore::new();
if shared {
let (mut j, _, _) = open(&m);
j.snapshot(&live).unwrap();
drop(j);
let mut snapshot: serde_json::Value = serde_json::from_slice(&m.get(SNAPSHOT).unwrap()).unwrap();
snapshot["version"] = serde_json::json!(12);
assert_eq!(snapshot["catalog"]["grids"].as_array().unwrap().len(), 1);
m.set(SNAPSHOT, serde_json::to_vec(&snapshot).unwrap());
} else {
m.set(
SNAPSHOT,
format!("{{\"format\":\"lightcraft-catalog\",\"version\":12,\"seq\":0,\"catalog\":{}}}\n", live.to_snapshot()).into_bytes(),
);
}
let (mut j, mut loaded, report) = open(&m);
assert_eq!(report.upgraded_from, Some(12));
assert!(snapshot_version(&m) > 15, "main's format-15 reader must refuse ignored-face snapshots");
assert_eq!(loaded.to_snapshot(), live.to_snapshot());
let snapshot = String::from_utf8(m.get(SNAPSHOT).unwrap()).unwrap();
assert_eq!(snapshot.match_indices(&blob).count(), 1, "the upgrade retains shared grids");

meta.regions[0].kind = lightcraft_meta::RegionKind::IgnoredFace;
let op = Op::SetMeta { id, meta: Box::new(meta) };
loaded.apply(op.clone()).unwrap();
j.append(&[op]).unwrap();
drop(j);
let (mut j, replayed, _) = open(&m);
assert_eq!(replayed.to_snapshot(), loaded.to_snapshot(), "ignored state and masks survive log replay");
j.snapshot(&replayed).unwrap();
drop(j);
let (_, compacted, _) = open(&m);
assert_eq!(compacted.to_snapshot(), loaded.to_snapshot(), "ignored state and masks survive compaction");
}
}
}

/// The op log is not deduplicated: every record keeps the grids inline (a log never carries the
/// shared table), and replaying it rebuilds the same state.
#[test]
Expand Down
2 changes: 1 addition & 1 deletion crates/engine/src/cmd/cull.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ fn analyze(s: &mut Session, p: &Value) -> Result<Value> {
let mut members: std::collections::BTreeMap<u32, Vec<(PhotoId, f32)>> = Default::default();
let mut arranged: std::collections::BTreeMap<u32, Vec<(u32, PhotoId)>> = Default::default();
for (i, r) in rows.iter().enumerate() {
if index.contains_key(&r.0) || !s.catalog.photo(r.0).is_some_and(|ph| !ph.deleted) {
if index.contains_key(&r.0) || s.catalog.photo(r.0).is_none_or(|ph| ph.deleted) {
continue;
}
match kept[i] {
Expand Down
29 changes: 22 additions & 7 deletions crates/engine/src/cmd/face_detect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ fn overlaps_existing(f: &Face, regions: &[Region]) -> bool {
})
}

/// Recognize replaceable detector results while retaining explicitly ignored regions.
pub(crate) fn is_detected(r: &Region) -> bool {
r.description.as_deref().is_some_and(|d| d.starts_with(MARK))
r.kind != RegionKind::IgnoredFace && r.description.as_deref().is_some_and(|d| d.starts_with(MARK))
}

/// The photo as the faces see it: upright, uncropped, default settings, as 8-bit RGB with its size, its long edge at
Expand All @@ -246,6 +247,7 @@ pub(crate) fn render_rgb(s: &mut Session, id: lightcraft_catalog::PhotoId, edge:
Ok((rgb, image.width, image.height))
}

/// Detect selected photos and commit new face regions without automatic sidecar writes.
fn detect(s: &mut Session, p: &Value) -> Result<Value> {
let apply = p.get("apply").and_then(Value::as_bool).unwrap_or(true);
let defaults = Options::default();
Expand Down Expand Up @@ -288,15 +290,19 @@ fn detect(s: &mut Session, p: &Value) -> Result<Value> {
}
results.push(json!({"id": id.0, "faces": faces.iter().map(face_json).collect::<Vec<_>>()}));
}
let applied = !ops.is_empty();
if applied {
s.commit("Detect Faces", Op::Batch { ops })?;
// regions are not written to XMP, so a sidecar must not be rewritten for this
s.skip_auto_write = true;
}
let applied = commit_detections(s, ops)?;
Ok(json!({"detector": LABEL, "applied": applied, "photos": results, "ms": started.elapsed().as_secs_f64() * 1000.0}))
}

/// The detector and synthetic regressions share the actual commit path, including XMP policy.
pub(crate) fn commit_detections(s: &mut Session, ops: Vec<Op>) -> Result<bool> {
if ops.is_empty() {
return Ok(false);
}
s.commit_catalog_only("Detect Faces", Op::Batch { ops })?;
Ok(true)
}

pub fn specs() -> Vec<CommandSpec> {
vec![
cmd!(
Expand Down Expand Up @@ -331,6 +337,15 @@ mod tests {
Region { rect: lightcraft_geom::Rect { x0, y0, x1, y1 }, kind: RegionKind::Face, name: Some("Ann".into()), description: None }
}

#[test]
fn ignored_detections_are_retained_and_suppress_overlapping_redetection() {
let mut ignored = region(0.4, 0.2, 0.6, 0.5);
ignored.kind = RegionKind::IgnoredFace;
ignored.description = Some(format!("{MARK}{LABEL}"));
assert!(!is_detected(&ignored));
assert!(overlaps_existing(&face(0.4, 0.2, 0.6, 0.5), &[ignored]));
}

#[test]
fn a_detection_on_an_existing_region_is_not_a_new_face() {
let existing = [region(0.40, 0.20, 0.60, 0.50), region(0.10, 0.10, 0.20, 0.20)];
Expand Down
125 changes: 115 additions & 10 deletions crates/engine/src/cmd/face_recognize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ use lightcraft_catalog::Op;
use serde_json::{Value, json};

use super::{CommandSpec, bad, cmd};
use crate::{Result, Session};
use crate::{FaceErrorCode, FaceErrorDetails, Result, Session};

/// Keep validation reasons/locations stable while the message remains free to change.
fn face_error(cmd: &'static str, code: FaceErrorCode, field: &'static str, target: Option<usize>, msg: &str) -> crate::EngineError {
crate::EngineError::FaceRequest { cmd, details: FaceErrorDetails { code, field, target }, msg: msg.into() }
}

/// The `name` parameter of the naming commands: a name, or none (`null`, empty) to clear it.
fn name_param(p: &Value, c: &str) -> Result<Option<String>> {
Expand All @@ -27,6 +32,85 @@ fn name_param(p: &Value, c: &str) -> Result<Option<String>> {
Ok(name)
}

/// Validate the whole selection before changing its ignored state in one catalog-only undo step.
fn ignore_faces(s: &mut Session, p: &Value) -> Result<Value> {
use lightcraft_meta::RegionKind;
const C: &str = "faces.ignore";
let invalid = |field, target, msg| face_error(C, FaceErrorCode::InvalidInput, field, target, msg);
let ignored = match p.get("ignored") {
None => true,
Some(value) => value.as_bool().ok_or_else(|| invalid("ignored", None, "ignored must be true or false"))?,
};
let faces = p["faces"].as_array().ok_or_else(|| invalid("faces", None, "missing faces"))?;
if faces.is_empty() || faces.len() > 100_000 {
return Err(invalid("faces", None, "select between 1 and 100000 faces"));
}
let mut edits: std::collections::BTreeMap<lightcraft_catalog::PhotoId, lightcraft_catalog::Meta> = Default::default();
let mut seen = std::collections::HashSet::new();
for (target, face) in faces.iter().enumerate() {
let target = Some(target);
let id = lightcraft_catalog::PhotoId(face["photo"].as_u64().ok_or_else(|| invalid("photo", target, "missing photo"))?);
let index = face["index"].as_u64().and_then(|n| usize::try_from(n).ok()).ok_or_else(|| invalid("index", target, "invalid face index"))?;
let rect = face.get("rect").ok_or_else(|| invalid("rect", target, "missing reviewed rectangle"))?;
let rect: lightcraft_geom::Rect = serde_json::from_value(rect.clone()).map_err(|_| invalid("rect", target, "invalid reviewed rectangle"))?;
let photo = s
.catalog
.photo(id)
.filter(|p| p.in_library())
.ok_or_else(|| face_error(C, FaceErrorCode::MissingPhoto, "photo", target, "photo is no longer in the library"))?;
let region =
photo.meta.regions.get(index).ok_or_else(|| face_error(C, FaceErrorCode::MissingFace, "index", target, "face no longer exists"))?;
if rect != region.rect || !matches!(region.kind, RegionKind::Face | RegionKind::IgnoredFace) {
return Err(face_error(C, FaceErrorCode::StaleSelection, "rect", target, "a selected face changed; reload the faces and try again"));
}
let desired = if ignored { RegionKind::IgnoredFace } else { RegionKind::Face };
// Validate even duplicate/no-op targets: retries must not bypass identity checks.
if region.kind == desired || !seen.insert((id, index)) {
continue;
}
let meta = edits.entry(id).or_insert_with(|| photo.meta.clone());
if let Some(region) = meta.regions.get_mut(index) {
region.kind = if ignored { RegionKind::IgnoredFace } else { RegionKind::Face };
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Resolved
}
}
let count = seen.len();
if count > 0 {
s.commit_catalog_only(
if ignored { "Ignore Faces" } else { "Restore Ignored Faces" },
Op::Batch { ops: edits.into_iter().map(|(id, meta)| Op::SetMeta { id, meta: Box::new(meta) }).collect() },
)?;
}
Ok(json!({"changed": count, "ignored": ignored}))
}

/// List one bounded page of retained ignored regions in catalog order, without a recognition model.
fn ignored_faces(s: &mut Session, p: &Value) -> Result<Value> {
const C: &str = "faces.ignored";
let invalid = |field, msg| face_error(C, FaceErrorCode::InvalidInput, field, None, msg);
let offset = match p.get("offset") {
None => 0,
Some(value) => value.as_u64().and_then(|n| usize::try_from(n).ok()).ok_or_else(|| invalid("offset", "offset must be a nonnegative index"))?,
};
let limit = match p.get("limit") {
None => 1000,
Some(value) => value.as_u64().and_then(|n| usize::try_from(n).ok()).ok_or_else(|| invalid("limit", "limit must be between 1 and 5000"))?,
};
if !(1..=5000).contains(&limit) {
return Err(invalid("limit", "limit must be between 1 and 5000"));
}
let mut faces = Vec::new();
let generation = s.library_generation();
let (total, keys) = s.ignored_faces_index.page(&s.catalog, generation, offset, limit);
for (id, index) in keys {
if let Some(region) = s.catalog.photo(id).and_then(|photo| photo.meta.regions.get(index)) {
faces.push(json!({"photo": id.0, "index": index, "rect": region.rect, "view": s.face_view(id, region.rect), "name": region.name, "description": region.description}));
}
}
Ok(
json!({"total": total, "offset": offset, "limit": limit, "hasNext": offset.saturating_add(faces.len()) < total, "revision": s.catalog.revision, "faces": faces}),
)
}

/// Give a face region its name. Naming makes the face yours: a later "Detect Faces" run no longer replaces it.
fn apply_name(region: &mut lightcraft_meta::Region, name: &Option<String>) {
region.name = name.clone();
Expand Down Expand Up @@ -73,8 +157,7 @@ fn name_faces(s: &mut Session, p: &Value) -> Result<Value> {
return Err(bad(C, "none of those faces exist"));
}
let photos = ops.len();
s.commit(if name.is_some() { "Name Faces" } else { "Clear Face Names" }, Op::Batch { ops })?;
s.skip_auto_write = true;
s.commit_catalog_only(if name.is_some() { "Name Faces" } else { "Clear Face Names" }, Op::Batch { ops })?;
Ok(json!({"named": named, "photos": photos, "name": name}))
}

Expand All @@ -88,8 +171,7 @@ fn set_name(s: &mut Session, p: &Value) -> Result<Value> {
let mut meta = s.catalog.photo(id).ok_or_else(|| bad(C, "no such photo"))?.meta.clone();
let region = meta.regions.get_mut(index).ok_or_else(|| bad(C, "no such region"))?;
apply_name(region, &name);
s.commit(if name.is_some() { "Name Face" } else { "Clear Face Name" }, Op::SetMeta { id, meta: Box::new(meta) })?;
s.skip_auto_write = true;
s.commit_catalog_only(if name.is_some() { "Name Face" } else { "Clear Face Name" }, Op::SetMeta { id, meta: Box::new(meta) })?;
Ok(json!({"id": id.0, "index": index, "name": name}))
}

Expand Down Expand Up @@ -135,7 +217,7 @@ fn rename_person(s: &mut Session, p: &Value) -> Result<Value> {
let Some(ph) = s.catalog.photo(id) else { continue };
let mut indexes = Vec::new();
for (i, r) in ph.meta.regions.iter().enumerate() {
if r.kind != lightcraft_meta::RegionKind::Face {
if !matches!(r.kind, lightcraft_meta::RegionKind::Face | lightcraft_meta::RegionKind::IgnoredFace) {
continue;
}
let Some(n) = r.name.as_deref().map(str::trim).filter(|n| !n.is_empty()) else { continue };
Expand Down Expand Up @@ -171,8 +253,7 @@ fn rename_person(s: &mut Session, p: &Value) -> Result<Value> {
return Err(bad(C, format!("{to} is already another person; pass merge: true to combine them")));
}
let photos = ops.len();
s.commit(if other { "Merge People" } else { "Rename Person" }, Op::Batch { ops })?;
s.skip_auto_write = true;
s.commit_catalog_only(if other { "Merge People" } else { "Rename Person" }, Op::Batch { ops })?;
if s.filter.person.as_deref().is_some_and(|n| n.trim().to_lowercase() == from_key) {
s.filter.person = Some(to.clone());
}
Expand Down Expand Up @@ -352,7 +433,7 @@ mod imp {
fn needs_search(s: &Session, photo: &Photo) -> bool {
photo.in_library()
&& !photo.is_video()
&& !photo.meta.regions.iter().any(|r| r.kind == RegionKind::Face)
&& !photo.meta.regions.iter().any(|r| matches!(r.kind, RegionKind::Face | RegionKind::IgnoredFace))
&& !s.faces.scanned.contains(photo.id.0)
&& !s.faces.scan_failed.contains(&photo.id.0)
}
Expand Down Expand Up @@ -383,7 +464,7 @@ mod imp {
}
let Some(photo) = s.catalog.photo(id) else { return };
// the user (or an import) got there first: leave their faces alone
if photo.meta.regions.iter().any(|r| r.kind == RegionKind::Face) {
if photo.meta.regions.iter().any(|r| matches!(r.kind, RegionKind::Face | RegionKind::IgnoredFace)) {
return;
}
let mut meta = photo.meta.clone();
Expand Down Expand Up @@ -1092,6 +1173,18 @@ mod imp {
assert!(r.items[0]["score"].as_f64().unwrap() > r.items[1]["score"].as_f64().unwrap());
assert_eq!(similar(&mut s, "ann", 1).items.len(), 1, "capped");
assert!(similar(&mut s, "nobody", 10).items.is_empty());
// The positive control above produces both candidates. Ignoring a candidate excludes
// that exact pair; ignoring Ann's only exemplar must exclude the remaining candidate.
let reviewed = |id| json!({"faces": [{"photo": id, "index": 0, "rect": region(0.1, None).rect}]});
s.execute("faces.ignore", &reviewed(b.0)).unwrap();
let pairs = |r: Similar| r.items.iter().map(|i| (i["photo"].as_u64().unwrap(), i["index"].as_u64().unwrap())).collect::<Vec<_>>();
assert_eq!(pairs(similar(&mut s, "ann", 10)), vec![(c.0, 0)]);
s.execute("faces.ignore", &reviewed(a.0)).unwrap();
assert!(pairs(similar(&mut s, "ann", 10)).is_empty());
let mut restore = reviewed(a.0);
restore["ignored"] = json!(false);
s.execute("faces.ignore", &restore).unwrap();
assert_eq!(pairs(similar(&mut s, "ann", 10)), vec![(c.0, 0)], "restoring the exemplar restores its suggestion");
let _ = std::fs::remove_dir_all(&d);
}
}
Expand Down Expand Up @@ -1129,8 +1222,20 @@ mod imp {
}
}

/// Register face review queries and explicit catalog-only identity mutations.
pub fn specs() -> Vec<CommandSpec> {
vec![
cmd!(
"faces.ignore",
"Ignore Faces",
[],
None,
"{faces: [{photo, index, rect}], ignored?: boolean (default true)} → {changed, ignored} — ignore or restore 1..100000 reviewed faces atomically; rect must equal catalog geometry, not the display crop. Duplicate identities count once; already-desired states succeed without an undo step. Stale or invalid targets reject the whole batch. After a sidecar refresh, reload the face list before submitting or retrying selections; region indices may have changed. Changes are one catalog-only undo step; originals and sidecars stay untouched. Requires catalog format 16; older libraries upgrade on open. Restore large libraries in page-sized batches from faces.ignored",
super::always,
ignore_faces
),
cmd!(query "faces.ignored", "Ignored Faces", [], None,
"{offset?: 0, limit?: 1000} → {total, offset, limit, hasNext, revision, faces: [{photo, index, rect, view, name, description}]} — review ignored faces in catalog order without a model; limit is 1..5000. Offsets describe the current catalog revision, not a snapshot across edits; after a mutation refresh the page and clamp its offset to the last valid page. Restore pages with faces.ignore using ignored:false and their catalog rect", super::always, ignored_faces),
cmd!(
"faces.index",
"Index Faces",
Expand Down
Loading
Loading