Report
An agent gateway spawns Claude Code CLI subprocesses (one per turn/conversation) for multiple logical surfaces (chat UI, Discord channels, cron jobs). A journaling daemon watches the CLI's transcript directory (~/.claude/projects/<cwd-slug>/<session-uuid>.jsonl) to build per-conversation continuity handoffs. Problem: nothing in a child transcript identifies WHICH orchestrator conversation spawned it — env vars injected at spawn (the obvious carrier) are not recorded in transcripts. The daemon collapsed every child transcript into one shared stream key, so any surface's turn overwrote every other conversation's handoff file (freshest-writer-wins across unrelated conversations), silently corrupting cross-session continuity.
f3626a86-bf25-4ad4-9b4d-6ff8de0350a1
An agent gateway spawns Claude Code CLI subprocesses (one per turn/conversation) for multiple logical surfaces (chat UI, Discord channels, cron jobs). A journaling daemon watches the CLI's transcript directory (~/.claude/projects/