Skip to content

Commit 8a28d34

Browse files
authored
Include step-start and step-finish for cost tracking (anomalyco#2810)
1 parent 8bea479 commit 8a28d34

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • packages/opencode/src/cli/cmd

packages/opencode/src/cli/cmd/run.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,14 @@ export const RunCommand = cmd({
186186
}
187187
}
188188

189+
if (part.type === "step-start") {
190+
if (outputJsonEvent("step_start", { part })) return
191+
}
192+
193+
if (part.type === "step-finish") {
194+
if (outputJsonEvent("step_finish", { part })) return
195+
}
196+
189197
if (part.type === "text") {
190198
text = part.text
191199

0 commit comments

Comments
 (0)