From 465552f8b2b4864f76b60e161ff55fcc2d70217f Mon Sep 17 00:00:00 2001 From: Accusys Date: Sun, 5 Jul 2026 19:49:03 +0800 Subject: [PATCH] fix: remove duplicate 'asr' pre_chunks storage in ASRX handler Bug: ASRX handler stored pre_chunks as BOTH 'asrx' and 'asr' types. This caused confusion because Rule 1 queries 'asrx' type, but only 'asr' type existed in the database (asrx type was deleted or never stored). Fix: Remove the duplicate 'asr' storage (lines 530-542). ASRX handler now only stores 'asrx' type pre_chunks to workspace SQLite. PostgreSQL pre_chunks are stored by processor.rs with correct 'asrx' type. This ensures Rule 1 can find ASRX pre_chunks correctly. --- src/worker/job_worker.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/worker/job_worker.rs b/src/worker/job_worker.rs index 2c04c05..b65b047 100644 --- a/src/worker/job_worker.rs +++ b/src/worker/job_worker.rs @@ -527,19 +527,6 @@ impl JobWorker { Some(&segment.text), ) .await; - // Also store asr pre_chunks (needed by Rule 1 after checkin) - let _ = ws - .store_pre_chunk( - "asr", - "raw", - None, - None, - Some(segment.start_time), - Some(segment.end_time), - Some(&data.to_string()), - Some(&segment.text), - ) - .await; } let spk_dets: Vec = result.segments.iter().map(|s| { crate::core::db::workspace_sqlite::SpeakerDetectionBatchItem {