Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(session_host): shorten receipt drop comment

Steven Enamakelfdcc0dc6f257
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index d039d00b79..752643119f 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -1285,13 +1285,9 @@ impl OpenHumanSessionHost {
let _ =
progress::send_receipt_progress(&receipt, &input, &output, iterations)
.await;
- // Drop the receipt here rather than retaining it on
- // the session: its run context carries this turn's
- // progress sender (`progress` and the attached
- // parent's `on_progress`), and a cached session that
- // kept it would hold the caller's progress channel
- // open after `set_on_progress(None)` — the web
- // channel's bridge task then never exits.
+ // Never retain the receipt: its run context holds the
+ // turn's progress sender, which would keep the caller's
+ // bridge alive after `set_on_progress(None)`.
drop(receipt);
{
let mut state = state