fix(workbench): filter assistant trace row body duplicates (#2031)
This commit is contained in:
@@ -91,7 +91,8 @@ function filterReadableRows(rows: TraceEventRow[], hideSealedFinalResponse: bool
|
||||
function traceRowDuplicatesSealedFinal(row: TraceEventRow): boolean {
|
||||
if (rowIsTool(row)) return false;
|
||||
if (row.rowId.startsWith("trace-final-response:")) return true;
|
||||
return /(?:助手(?:最终)?消息|assistant\s+(?:final\s+)?message)/iu.test(String(row.header ?? ""));
|
||||
const rowText = [row.rowId, row.header, row.body, row.preview].map((value) => String(value ?? "")).join("\n");
|
||||
return /(?:助手(?:最终)?消息|assistant\s+(?:final\s+)?message)/iu.test(rowText);
|
||||
}
|
||||
|
||||
function toolCommandPreview(row: TraceEventRow): string | null {
|
||||
|
||||
Reference in New Issue
Block a user