# Fix bug: Ace context duplicates every reply **Linear:** MAN-46 — https://linear.app/manglasabang/issue/MAN-46/fix-bug-ace-context-duplicates-every-reply **Status:** Done **Project:** default ## Description Session-start hook ([JUNWON.md](), [ACE.md](), [TOOLS.md](), [GUARDRAILS.md](), [TASK-MANAGEMENT.md](), core-memories, memory files) gets re-injected on every resumed session because bridge.kill() is called after each message in both Linear and Email channels. After N back-and-forth messages, the conversation has N duplicate copies of all identity/memory docs, wasting input tokens. **Fix:** Keep the bridge subprocess alive between messages (store the bridge object, not just the session ID). Add idle timeout (\~15min) to clean up abandoned threads. This matches how the inbox session already works. **Files:** * channels/linear/index.ts (threadSessions map + bridge.kill) * channels/email/index.ts (threadSessionIds map + bridge.kill) * channels/slack/bridge.ts (ClaudeBridge class)