Bug Report: Tool-call responses duplicated in webchat; pre-tool text routes to Discord DM
Version: 2026.3.2
Setup: Discord bot (2 accounts: royal, eagleeye), webchat (Control UI)
Symptoms:
Responses containing tool calls are delivered N+1 times in webchat (1 tool call = 2-3x, 2 tool calls = 3x+)
Text written before a tool call routes to Discord DM instead of webchat — even with dmPolicy: disabled
Responses with NO tool calls deliver correctly (1x)
Persists across: full Mac restart, fresh browser window, cleared browser storage, /new
Trigger: Started after a config patch that briefly set dmPolicy: allowlist on Discord royal account, then reverted to disabled
Inbound metadata shows chat_id: channel:1473772723720159312 (a Discord DM channel ID) on webchat sessions — this appears to be the root cause of split routing
Config: dmPolicy: disabled, one gateway process via LaunchAgent, no duplicate sessions in session store