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:
1 parent
3495281282
commit
192e2e90dc
78 files changed
+1620
-1194
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { acceptsCompactionPhase } from "../../packages/client-events/notifications"
|
||||
import {
|
||||
BoxRenderable,
|
||||
CodeRenderable,
|
||||
@@ -331,7 +332,7 @@ export class Transcript {
|
||||
compaction(compaction: ContextCompaction, index?: number): boolean {
|
||||
let entry = this.compactions.get(compaction.id)
|
||||
// Hydration can replay a terminal state before an already queued start event.
|
||||
if (entry && (entry.phase !== "started" || entry.phase === compaction.phase)) return false
|
||||
if (!acceptsCompactionPhase(entry?.phase, compaction.phase)) return false
|
||||
const added = !entry
|
||||
if (index === undefined) {
|
||||
this.noteOutput()
|
||||
|
||||
Reference in new issue
Block a user