taskplane 0.25.7 → 0.25.8

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.
@@ -1121,18 +1121,19 @@ function buildDashboardState() {
1121
1121
 
1122
1122
  // TP-164: Inject merge snapshot telemetry into the telemetry map so
1123
1123
  // `telemetry[sessionName]` resolves for the merge pane.
1124
- // Only inject when a JSONL-backed entry is absent or stale the snapshot
1125
- // provides real-time tool-call / cost / context data even before the
1126
- // JSONL accumulator has accumulated enough events.
1124
+ // Snapshots are the PRIMARY source for merge telemetry merge agents don't
1125
+ // write to .pi/telemetry/*.jsonl (the JSONL path is for lane workers only).
1126
+ // Inject snapshot data when no JSONL-backed entry exists for this session.
1127
1127
  for (const snap of Object.values(runtimeMergeSnapshots)) {
1128
1128
  const key = snap.sessionName;
1129
1129
  if (!key) continue;
1130
1130
  const agent = snap.agent;
1131
1131
  if (!agent) continue;
1132
- // Only inject if there is no existing telemetry entry, or if the snapshot
1133
- // is more recent than the latest accumulator update.
1132
+ // Only inject if there is no existing JSONL-backed telemetry entry.
1133
+ // Merge agents don't emit to .pi/telemetry/, so existing will always be
1134
+ // absent unless something else wrote to it — in that case defer to it.
1134
1135
  const existing = telemetry[key];
1135
- if (!existing || (snap.updatedAt && snap.updatedAt > (existing._updatedAt || 0))) {
1136
+ if (!existing) {
1136
1137
  telemetry[key] = {
1137
1138
  inputTokens: agent.inputTokens || 0,
1138
1139
  outputTokens: agent.outputTokens || 0,