static GLOBAL_TRANSCRIPT_STORE: OnceLock<Arc<FileStore>>Expand description
Process-global handle to the GLOBAL transcript FileStore (the one rooted at
<shared>/agents/transcripts, opened once in main.rs). Backs the
agent:<defId>:current zone so a conversation loads when the agent is
opened from any build/channel — finishing the cross-channel arc
(#1387–#1396). None until set_global_transcript_store runs (or never, in
unit tests / when the shared root can’t be resolved), in which case the
hot-path mirror is a no-op and reads fall back to the per-channel store.
It’s a process-global rather than a threaded parameter because the store is
genuinely process-wide (one per srv instance) and the alternative would be
plumbing an Option<Arc<FileStore>> through resync_controller and every
block-controller constructor purely to reach the stdout-reader hot path.