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:
1 parent
db75f7c4b8
commit
a9329ce6bd
1 file changed
+5
-2
@@ -566,11 +566,14 @@ impl EventSink for HubSink {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Step bookkeeping is the engine's business, not the wire's;
|
// Step bookkeeping is the engine's business, not the wire's;
|
||||||
// a running tool's live output lands with its result, and a
|
// a running tool's live output lands with its result, a
|
||||||
// streaming tool's status has no turn-event shape to ride.
|
// streaming tool's status has no turn-event shape to ride,
|
||||||
|
// and the running usage tally is gauge material, not
|
||||||
|
// transcript.
|
||||||
ModelEvent::StepStart { .. }
|
ModelEvent::StepStart { .. }
|
||||||
| ModelEvent::ToolOutputDelta { .. }
|
| ModelEvent::ToolOutputDelta { .. }
|
||||||
| ModelEvent::ToolStatus { .. }
|
| ModelEvent::ToolStatus { .. }
|
||||||
|
| ModelEvent::Usage(_)
|
||||||
| ModelEvent::StepEnd { .. } => return,
|
| ModelEvent::StepEnd { .. } => return,
|
||||||
};
|
};
|
||||||
self.hub.emit(&self.key, turn);
|
self.hub.emit(&self.key, turn);
|
||||||
|
|||||||
Reference in new issue
Block a user