fix: diagnose code agent by agentrun ids
This commit is contained in:
@@ -61,7 +61,11 @@ export function compactDiagnoseCodeAgentResult(value: unknown): Record<string, u
|
||||
mapping: mapping === null ? null : {
|
||||
mode: mapping.mode ?? null,
|
||||
businessTraceId: mapping.businessTraceId ?? null,
|
||||
runId: mapping.runId ?? null,
|
||||
commandId: mapping.commandId ?? null,
|
||||
runnerJobId: mapping.runnerJobId ?? null,
|
||||
otelTraceId: mapping.otelTraceId ?? null,
|
||||
searchQuery: mapping.searchQuery ?? null,
|
||||
searchOk: mapping.searchOk ?? null,
|
||||
searchParseOk: mapping.searchParseOk ?? null,
|
||||
candidateTraceCount: mapping.candidateTraceCount ?? null,
|
||||
@@ -143,6 +147,8 @@ export function compactDiagnoseAgentRun(value: unknown): Record<string, unknown>
|
||||
terminalSource: agentrun.terminalSource ?? null,
|
||||
latestSeq: agentrun.latestSeq ?? null,
|
||||
terminalEventType: agentrun.terminalEventType ?? null,
|
||||
failureKind: agentrun.failureKind ?? null,
|
||||
observedFailureKinds: limitArray(agentrun.observedFailureKinds, 5),
|
||||
runnerProviderClassification: agentrun.runnerProviderClassification ?? null,
|
||||
authority: compactAgentRunAuthority(agentrun.authority),
|
||||
};
|
||||
@@ -166,6 +172,7 @@ export function compactAgentRunAuthority(value: unknown): Record<string, unknown
|
||||
terminalSource: authority.terminalSource ?? null,
|
||||
terminalEventSeq: authority.terminalEventSeq ?? null,
|
||||
terminalEventType: authority.terminalEventType ?? null,
|
||||
failureKind: authority.failureKind ?? null,
|
||||
latestSeq: authority.latestSeq ?? null,
|
||||
eventCount: authority.eventCount ?? null,
|
||||
fallback: authority.fallback ?? null,
|
||||
|
||||
Reference in New Issue
Block a user