Repository navigation
v1.14.0 — Fix New Agent triggering agent picker in DMs
Changes
- Fix: Clicking "New Agent" in the
/agentsdashboard no longer triggers the "Which agent should handle this?" picker. Bot messages in DMs are now skipped before reaching the agent routing logic.
Details
When startNewAgentFlow posted "Let's build a new hand!" as a top-level DM message, it was leaking past the bot self-filter and reaching the DM smart-routing section, which showed the agent picker. Added a bot_id/bot_message subtype guard in the DM handler to prevent any bot message from triggering agent routing.