taskplane 0.23.10 → 0.23.11
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.
|
@@ -2267,9 +2267,8 @@ export async function executeOrchBatch(
|
|
|
2267
2267
|
const snap = JSON.parse(readFileSync(join(lanesDir, f), "utf-8"));
|
|
2268
2268
|
const w = snap.worker || {};
|
|
2269
2269
|
const r = snap.reviewer || {};
|
|
2270
|
-
// Key by
|
|
2271
|
-
const
|
|
2272
|
-
const key = laneRec?.tmuxSessionName || `lane-${snap.laneNumber}`;
|
|
2270
|
+
// Key by lane number for reliable per-task lookup (TP-115)
|
|
2271
|
+
const key = `lane-${snap.laneNumber}`;
|
|
2273
2272
|
laneTokens.set(key, {
|
|
2274
2273
|
input: (w.inputTokens || 0) + (r.inputTokens || 0),
|
|
2275
2274
|
output: (w.outputTokens || 0) + (r.outputTokens || 0),
|
|
@@ -2321,9 +2320,9 @@ export async function executeOrchBatch(
|
|
|
2321
2320
|
const durationMs = (to.startTime && to.endTime) ? (to.endTime - to.startTime) : 0;
|
|
2322
2321
|
|
|
2323
2322
|
// Get tokens for this lane (cumulative — shared across tasks in same lane)
|
|
2324
|
-
// TP-115:
|
|
2325
|
-
|
|
2326
|
-
|
|
2323
|
+
// TP-115: Try lane number key first (V2), then sessionName variants (legacy).
|
|
2324
|
+
const tokens = laneTokens.get(`lane-${lane}`)
|
|
2325
|
+
|| laneTokens.get(to.sessionName)
|
|
2327
2326
|
|| laneTokens.get(to.sessionName?.replace(/-(?:worker|reviewer)$/, ""))
|
|
2328
2327
|
|| { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, costUsd: 0 };
|
|
2329
2328
|
|