From 65898ef71b86cb938724d96a29a08b09ae7c8d74 Mon Sep 17 00:00:00 2001 From: Accusys Date: Fri, 2 Oct 2026 16:58:17 +0800 Subject: [PATCH] fix: save face.json with computed status/total_faces compute_status() updates FaceResult in memory but didn't write back to the file. Ingestion gate checks face.json directly, so it still saw status=null and skipped TKG/face_cluster/Qdrant. Now calls save_to_file() after compute_status() in swift/python config-driven branches, matching the 'existing file' path behavior. --- src/core/processor/face.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/processor/face.rs b/src/core/processor/face.rs index 3f249423..ff5e79dc 100644 --- a/src/core/processor/face.rs +++ b/src/core/processor/face.rs @@ -413,6 +413,7 @@ async fn run_face_with_config( let mut result: FaceResult = serde_json::from_str(&json_str) .context("Failed to parse Swift FACE output")?; result.compute_status(); + result.save_to_file(output_path)?; return Ok(Some(result)); } @@ -436,6 +437,7 @@ async fn run_face_with_config( let mut result: FaceResult = serde_json::from_str(&json_str) .context("Failed to parse Python FACE output")?; result.compute_status(); + result.save_to_file(output_path)?; return Ok(Some(result)); }