From 6e66a6176c56050906a3a4a94319e689c2c867f9 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 10 Nov 2026 02:52:19 +0100 Subject: [PATCH] S4: say that a handler ending a kept call's wait also calls at the consumer's bind (issue 1966, ADR 0668) Claude-Session: https://claude.ai/code/session_01JG73KEq4zoDfM9WtYpcQgZ --- go/process/event_hub.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/go/process/event_hub.go b/go/process/event_hub.go index 14fe1a4..dd37a5b 100644 --- a/go/process/event_hub.go +++ b/go/process/event_hub.go @@ -59,7 +59,9 @@ func (h *EventHub) Handle(pattern string, handle func(jetstream.Msg)) error { // OnBound registers f, told each time the hub binds the module's consumer, with when the bus made it. A consumer is made // from now (ADR 0443), so an event said before it was made is not delivered to it: a part that took a picture before -// that must ask its owner again (views.Follower.ConsumerMade). Register before Start. +// that must ask its owner again (views.Follower.ConsumerMade). So every handler of an event that ends a kept call's wait +// (a callee's "my state changed") also registers here the call it makes on that event, made again once at each bind +// (novox/hq ADR 0668; issue 1966). Register before Start. func (h *EventHub) OnBound(f func(created time.Time)) { h.mu.Lock() h.bound = append(h.bound, f)