feat(workflow): record each failed attempt of a retried step
This commit is contained in:
1 parent
2998a2ed13
commit
e084c55fcc
6 files changed
+25
-8
No files matched your search
@@ -24,6 +24,7 @@ const taskKinds = new Set([
|
||||
"pr_rejected",
|
||||
"pr_closed",
|
||||
"binding_started",
|
||||
"step_retried",
|
||||
"human_approved",
|
||||
"human_rejected",
|
||||
"human_rereviewed",
|
||||
|
||||
@@ -48,7 +48,7 @@ export function agentReports(
|
||||
.filter(
|
||||
(ev) =>
|
||||
ev &&
|
||||
ev.kind === "agent_finish" &&
|
||||
(ev.kind === "agent_finish" || ev.kind === "step_retried") &&
|
||||
Number(ev.attempt) === Number(attemptNumber) &&
|
||||
(ev.stage || "") === (stage || ""),
|
||||
)
|
||||
|
||||
@@ -121,6 +121,13 @@ export function describeTimelineEvent(ev: TaskEvent = {}): TimelineLine {
|
||||
// Condition (d): the two provenance kinds render as one human line. The
|
||||
// captured payload is rendered by its own panel, never dumped into the
|
||||
// timeline, so these cases name what was recorded and nothing more.
|
||||
if (ev.kind === "step_retried") {
|
||||
return {
|
||||
title: `Attempt ${text(data.attempt)} of ${text(data.of)} failed: ${ev.stage || "step"}`,
|
||||
detail: text(data.error),
|
||||
tone: "warn",
|
||||
};
|
||||
}
|
||||
if (ev.kind === "config_captured") {
|
||||
return {
|
||||
title: "Configuration captured",
|
||||
|
||||
Reference in new issue
Block a user