drop the hyperhive send/recv/ack_until tools: agents message over matrix
This commit is contained in:
parent
ccac95fcf4
commit
bffb2c07a8
1 changed files with 52 additions and 397 deletions
|
|
@ -994,7 +994,6 @@ async fn handle_turn<S: Surface>(
|
|||
let from = first.from;
|
||||
let body = first.body;
|
||||
let redelivered = first.redelivered;
|
||||
let msg_id = first.id;
|
||||
log_system_event(bus, &from, &body);
|
||||
tracing::info!(%from, %body, %redelivered, "inbox");
|
||||
let unread = S::inbox_unread(socket).await;
|
||||
|
|
@ -1011,14 +1010,7 @@ async fn handle_turn<S: Surface>(
|
|||
// the "you were interrupted" banner, then the flag resets so a later
|
||||
// ordinary turn doesn't repeat a stale notice.
|
||||
let was_interrupted = interrupted.swap(false, std::sync::atomic::Ordering::Relaxed);
|
||||
let prompt = serve_common::format_wake_prompt(
|
||||
msg_id,
|
||||
&from,
|
||||
&body,
|
||||
unread,
|
||||
redelivered,
|
||||
was_interrupted,
|
||||
);
|
||||
let prompt = serve_common::format_wake_prompt(&from, &body, redelivered, was_interrupted);
|
||||
let outcome = turn::drive_turn(&prompt, files, bus, session).await;
|
||||
turn::emit_turn_end(bus, &outcome);
|
||||
bus.set_state(TurnState::Idle);
|
||||
|
|
|
|||
Loading…
Reference in a new issue