taskplane 0.23.5 → 0.23.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1706,9 +1706,11 @@ export function presentBatchSummary(
|
|
|
1706
1706
|
const duration = batchState.endedAt && batchState.startedAt
|
|
1707
1707
|
? formatDurationMs(batchState.endedAt - batchState.startedAt)
|
|
1708
1708
|
: "in progress";
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1709
|
+
// TP-115: Use V2 lane snapshot cost when diagnostics.batchCost is zero
|
|
1710
|
+
const rawCost = (diagnostics?.batchCost ?? 0) > 0
|
|
1711
|
+
? diagnostics!.batchCost
|
|
1712
|
+
: computeV2BatchCost(stateRoot, batchState.batchId);
|
|
1713
|
+
const cost = rawCost > 0 ? `$${rawCost.toFixed(2)}` : "not tracked";
|
|
1712
1714
|
const filename = `${opId}-${batchState.batchId}-summary.md`;
|
|
1713
1715
|
|
|
1714
1716
|
const conciseText =
|