self-session-live: the pass that closes the briefs goes on to the lifecycle

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-31 16:41:22 +01:00
commit ca4ee617ff

View file

@ -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;