chore(claw): keep the live usage tally off the interactive wire

The running tally is gauge material, not transcript; the claw's
TurnEvent stream stays as it was.
This commit is contained in:
vhaudiquet committed 2026-10-24 04:04:48 +02:00
1 parent db75f7c4b8
commit a9329ce6bd
1 file changed
+5 -2
+5 -2
View File
@@ -566,11 +566,14 @@ impl EventSink for HubSink {
}
}
// Step bookkeeping is the engine's business, not the wire's;
// a running tool's live output lands with its result, and a
// streaming tool's status has no turn-event shape to ride.
// a running tool's live output lands with its result, a
// streaming tool's status has no turn-event shape to ride,
// and the running usage tally is gauge material, not
// transcript.
ModelEvent::StepStart { .. }
| ModelEvent::ToolOutputDelta { .. }
| ModelEvent::ToolStatus { .. }
| ModelEvent::Usage(_)
| ModelEvent::StepEnd { .. } => return,
};
self.hub.emit(&self.key, turn);