refactor(events): unify scoped runtime notifications across clients (#5670)

* refactor(events): unify scoped runtime notifications across clients

* style(tests): sort auto-compaction event imports

* refactor(events): scope connections and remove retry callback plumbing

* docs: remove runtime notification design write-up

* refactor(bus): route operation events through the message bus

* fix(channels): isolate outbound sends by destination

* style(events): group shared notification imports

* refactor(events): converge runtime and hook delivery on MessageBus

* test(events): migrate fixtures to unified message bus
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-06 02:11:19 +08:00
1 parent 3495281282
commit 192e2e90dc
78 files changed
+1620 -1194

No files matched your search

+6
View File
@@ -3534,6 +3534,8 @@ async def test_stop_all_cancels_dispatcher_and_stops_channels():
ch = _StartableChannel(fake_config, mgr.bus)
mgr.channels = {"startable": ch}
mgr._channel_tasks = {}
mgr._outbound_tasks = {}
mgr._stopping_channels = set()
# Create a real cancelled task
async def dummy_task():
@@ -3612,6 +3614,8 @@ async def test_stop_all_handles_channel_exception():
mgr.bus = MessageBus()
mgr.channels = {"stopfailing": _StopFailingChannel(fake_config, mgr.bus)}
mgr._channel_tasks = {}
mgr._outbound_tasks = {}
mgr._stopping_channels = set()
mgr._dispatch_task = None
# Should not raise even if channel.stop() raises
@@ -3651,6 +3655,8 @@ async def test_stop_all_handles_channel_stop_cancelled_task():
"next": next_channel,
}
mgr._channel_tasks = {}
mgr._outbound_tasks = {}
mgr._stopping_channels = set()
mgr._dispatch_task = None
await mgr.stop_all()