fix(agent): show Compacting state during in-flight operator /compact
This commit is contained in:
parent
59dd7955aa
commit
746f518250
1 changed files with 3 additions and 0 deletions
|
|
@ -346,6 +346,9 @@ pub async fn drive_turn(
|
||||||
bus.emit(LiveEvent::Note {
|
bus.emit(LiveEvent::Note {
|
||||||
text: "operator: /compact — running at turn end".into(),
|
text: "operator: /compact — running at turn end".into(),
|
||||||
});
|
});
|
||||||
|
// Reflect `Compacting` in the UI like the idle path (`run_pending_compact`)
|
||||||
|
// does; the serve loop resets to `Idle` once this turn returns.
|
||||||
|
bus.set_state(crate::events::TurnState::Compacting);
|
||||||
let _ = session.compact(&config, &sink).await;
|
let _ = session.compact(&config, &sink).await;
|
||||||
return Ok(true);
|
return Ok(true);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue