diff --git a/backend/gateway/platforms/deepview_sse.py b/backend/gateway/platforms/deepview_sse.py index 6f1010d..0aaf000 100644 --- a/backend/gateway/platforms/deepview_sse.py +++ b/backend/gateway/platforms/deepview_sse.py @@ -971,7 +971,7 @@ xray.module5: track1(数组,每项含node/action/strategy/purpose), track2(数 db = SessionDB() with db._lock: cursor = db._conn.execute( - "SELECT report_json, created_at, client_id FROM deepview_reports_v2 WHERE report_id = ?", + "SELECT report_json, created_at, client_id, context_id FROM deepview_reports_v2 WHERE report_id = ?", (reportId,) ) row = cursor.fetchone() @@ -981,10 +981,12 @@ xray.module5: track1(数组,每项含node/action/strategy/purpose), track2(数 reportData = json.loads(row[0]) clientId = row[2] + contextId = row[3] # Hot patch reportCode for older generated reports that might have hallucinated ones reportData["reportCode"] = f"DW-AMXG-{reportId[4:].upper()}" reportData["id"] = reportId + reportData["context_id"] = contextId # Attach clientId into the data payload so the frontend knows if it's archived if clientId: