Skip to content

Commit 3982d8d

Browse files
committed
fix(tracing): clarify interrupted-span message so restarts aren't read as agent failures
Pre-release review (End User + Chaos Gremlin personas) flagged that the `statusMessage` set on in-flight generation spans during `rehydrateFromFile` reused internal jargon ("cache eviction before step-finish") and read like a tool/agent bug. On a postmortem surface, a span reconstructed after a worker restart must not be mistaken for a real agent failure. Reword to plain language that names the cause and explicitly disambiguates it from an agent failure. The span keeps `status: "error"` (the boundary stays visible in the waterfall) and the message still contains "interrupted", so the rehydrate behavioral test contract is unchanged. Edit is inside the existing `altimate_change` block (tracing.ts:499-600).
1 parent 89699f6 commit 3982d8d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/opencode/src/altimate/observability

packages/opencode/src/altimate/observability/tracing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ export class Trace {
591591
if (s.kind === "generation" && s.endTime === undefined) {
592592
s.endTime = now
593593
s.status = "error"
594-
s.statusMessage = "interrupted (worker restart / cache eviction before step-finish)"
594+
s.statusMessage = "interrupted — altimate-code restarted before this step finished recording; not an agent failure"
595595
}
596596
}
597597
this.endTraceStarted = false

0 commit comments

Comments
 (0)