hive-agent: guarantee a wake after a self-requested /compact
This commit is contained in:
parent
fa658567db
commit
2c7872841a
8 changed files with 227 additions and 48 deletions
|
|
@ -80,7 +80,10 @@ pub(super) async fn post_cancel_turn(State(state): State<AppState>) -> Response
|
|||
/// claude process) rather than only when the agent is idle. Returns 200
|
||||
/// immediately; the compaction stream lands in the live panel when it runs.
|
||||
pub(super) async fn post_compact(State(state): State<AppState>) -> Response {
|
||||
state.bus.request_compact();
|
||||
// No wake prompt: the operator is watching the dashboard, not waiting on
|
||||
// an inbox message — `request_compact`'s wake-prompt arg exists for the
|
||||
// agent's own `compact` MCP tool (`todo_server.rs::compact`).
|
||||
state.bus.request_compact(None);
|
||||
state.bus.emit(crate::events::LiveEvent::Note {
|
||||
text: "operator: /compact queued — runs at the end of the current turn".into(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue