Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
style(persistence): keep the #5801 comment on phaseScope
garrytan631eca25c269
diff --git a/src/core/persistence/consumer.ts b/src/core/persistence/consumer.tsindex 1925876df3..a5bf200be5 100644--- a/src/core/persistence/consumer.ts+++ b/src/core/persistence/consumer.ts@@ -19,9 +19,9 @@ import { faultPoint } from './fault-points.ts';import { releaseAbandonedClaims } from './effect-journal.ts';type PhaseObservation = { name: string; started_at: string; deadline_exceeded: boolean; attempt: number; first_conn_ms?: number };-/** #5801: the phase a connection checkout belongs to, carried through its async chain. *//** When this process started; on PGLite no claim written earlier can belong to a live owner. */const PROCESS_STARTED_AT = new Date(performance.timeOrigin);+/** #5801: the phase a connection checkout belongs to, carried through its async chain. */const phaseScope = new AsyncLocalStorage<{ observation: PhaseObservation; startedAt: number }>();/** #5233: one-line, redacted, length-capped error text for the consumer's stderr line. */