fix: surface AgentRun event payload summaries

This commit is contained in:
Codex
2026-06-11 09:34:21 +00:00
parent 49c3145439
commit f120d3e812
2 changed files with 120 additions and 15 deletions
+11
View File
@@ -123,6 +123,16 @@ assertCondition(
"AgentRun logs must map --tail N into render-only client tailing for human and raw outputs",
);
assertCondition(
agentRunSource.includes("function agentRunEventSummary(item: Record<string, unknown>, payload: Record<string, unknown>): string")
&& agentRunSource.includes("push(payload.failureKind)")
&& agentRunSource.includes("push(error.message)")
&& agentRunSource.includes("push(error.additionalDetails)")
&& agentRunSource.includes("push(payload.phase)")
&& agentRunSource.includes("function agentRunEventCommandId(item: Record<string, unknown>, payload: Record<string, unknown>): string"),
"AgentRun logs/events must render payload error, backend phase, and command id summaries by default",
);
assertCondition(
agentRunSource.includes("function rerunWithoutDryRun(command: string): string")
&& agentRunSource.includes("options.dryRun ? [rerunWithoutDryRun(command)] : undefined"),
@@ -146,6 +156,7 @@ console.log(JSON.stringify({
"AgentRun resource task dispatch and active task list visibility",
"AgentRun resource failure output is visible in human mode",
"AgentRun logs tail is enforced by the render-only client",
"AgentRun logs/events expose payload error and backend phase summaries",
"AgentRun dry-run mutations keep resource-command follow-up",
],
}));