From ca4ee617ffa2a5d42bf7ce5d391f434fb63e5790 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 31 Oct 2026 16:41:22 +0100 Subject: [PATCH] self-session-live: the pass that closes the briefs goes on to the lifecycle Co-Authored-By: Claude Sonnet 5.5 --- crates/mind-body/src/self_run.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/mind-body/src/self_run.rs b/crates/mind-body/src/self_run.rs index 67193ca..a11ebcd 100644 --- a/crates/mind-body/src/self_run.rs +++ b/crates/mind-body/src/self_run.rs @@ -665,7 +665,11 @@ fn drive( events.push_front(Event::Inbox { pending: false }); } }, - Action::CloseBriefs => briefs_closed = close_told(mind, clock, hooks, session, heard, out)?, + Action::CloseBriefs => { + briefs_closed = close_told(mind, clock, hooks, session, heard, out)?; + // The result's own pass goes on to the lifecycle: a waiting brief is told, a finished flush closes the input. + events.push_front(Event::Tick); + } Action::CloseStdin => { child.close_input(); closed = true;