hive-agent: keep the last turn's context size in the harness state file and drop the turn sqlite writes
This commit is contained in:
parent
7bd93ecfde
commit
5e5ff64b3c
1 changed files with 261 additions and 629 deletions
|
|
@ -477,8 +477,8 @@ pub async fn drive_turn(
|
|||
// (badges, stats, auto-reset watermark input).
|
||||
apply_telemetry(bus, &progress.telemetry);
|
||||
if progress.created {
|
||||
// Fresh session minted this turn → flag it so the bin loop
|
||||
// mints a `sessions` row + stamps its id onto this turn's stats.
|
||||
// Fresh session minted this turn → flag it so the bin loop counts
|
||||
// the session boundary in the OTEL metrics.
|
||||
bus.mark_fresh_session();
|
||||
bus.emit(LiveEvent::Note {
|
||||
text: format!("created fresh session titled \"{}\"", session_title()),
|
||||
|
|
|
|||
Loading…
Reference in a new issue