fix: 收敛 queue commander 默认记录字节噪声

This commit is contained in:
Codex
2026-06-10 12:29:18 +08:00
parent 1b25a6cb15
commit 5b89d7b4b5
3 changed files with 9 additions and 6 deletions
+5 -5
View File
@@ -683,7 +683,7 @@ function summarizeMutationBody(body: JsonRecord): JsonRecord {
function summarizeQueueStats(record: JsonRecord | null): JsonRecord | null {
if (!record) return null;
return {
return withoutFullRecordBytes({
queue: stringValue(record.queue),
total: numberValue(record.total),
maxVersion: numberValue(record.maxVersion),
@@ -693,7 +693,7 @@ function summarizeQueueStats(record: JsonRecord | null): JsonRecord | null {
generatedAt: stringValue(record.generatedAt),
fullRecordBytes: jsonByteLength(record),
valuesPrinted: false,
};
});
}
function summarizeQueueTaskWithAttempt(record: JsonRecord | null, fallbackTaskId: string): JsonRecord {
@@ -728,15 +728,15 @@ function sessionEventDrillDownCommands(kind: "trace" | "output", sessionId: stri
}
function summarizeQueueTaskRecord(record: JsonRecord | null, fallbackTaskId: string): JsonRecord {
return compactRecord(record, {
return withoutFullRecordBytes(compactRecord(record, {
fallback: { id: fallbackTaskId },
keys: ["id", "state", "queue", "lane", "title", "priority", "backendProfile", "providerId", "sessionPath", "version", "updatedAt", "cancelledAt", "cancelReason", "readerId", "attentionState", "unread", "active"],
});
}));
}
function summarizeAttemptRecord(record: JsonRecord | null): JsonRecord | null {
if (!record) return null;
return compactRecord(record, { keys: ["attemptId", "state", "runId", "commandId", "runnerJobId", "sessionId", "sessionPath"] });
return withoutFullRecordBytes(compactRecord(record, { keys: ["attemptId", "state", "runId", "commandId", "runnerJobId", "sessionId", "sessionPath"] }));
}
function summarizeSupervisorRecord(record: JsonRecord | null): JsonRecord | null {