diff options
| author | Arjun Singh <[email protected]> | 2025-09-27 00:45:36 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-27 03:45:36 -0400 |
| commit | 8a28d34fe919d13f1f9f1d9275c1761133c96aa5 (patch) | |
| tree | db088c198c13d4950b3960d49597bb19364a8f28 | |
| parent | 8bea479df9f10825f39fefde42a24ac5b55f8893 (diff) | |
| download | opencode-8a28d34fe919d13f1f9f1d9275c1761133c96aa5.tar.gz opencode-8a28d34fe919d13f1f9f1d9275c1761133c96aa5.zip | |
Include step-start and step-finish for cost tracking (#2810)
| -rw-r--r-- | packages/opencode/src/cli/cmd/run.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/opencode/src/cli/cmd/run.ts b/packages/opencode/src/cli/cmd/run.ts index 07cc10a74..0368b24cd 100644 --- a/packages/opencode/src/cli/cmd/run.ts +++ b/packages/opencode/src/cli/cmd/run.ts @@ -186,6 +186,14 @@ export const RunCommand = cmd({ } } + if (part.type === "step-start") { + if (outputJsonEvent("step_start", { part })) return + } + + if (part.type === "step-finish") { + if (outputJsonEvent("step_finish", { part })) return + } + if (part.type === "text") { text = part.text |
