Expand description
The History pane’s agent list changes when an agent’s transcript grows, a
conversation is archived, or a fork takes a copy of its parent’s. Those
writes are many (every output line) and the list wants one signal, so a
write only marks, which costs one atomic store, and one task publishes
history:sessions:changed at most once per [TICK] while something was
marked. A window that shows the list reloads it on the event
(frontend/app/view/audit/conversations/history-agents.tsx).
A write by another AgentMux sharing the transcript store (another channel)
never reaches mark; the list’s own safety poll covers it.
Functions§
- mark
- The history list may have changed. Cheap enough for the output path.
- spawn_
publisher - Publish the event once per [
TICK] while something was marked.