Bug
When a user sends a Direct Message to an agent, the message is only stored in SQLite and broadcast locally. It is NOT routed to the OpenClaw gateway, so the agent never receives it and can't reply.
Channel messages work correctly because they go through the gateway.
Root Cause
handleSendDm() in server/src/router.ts only does:
- Insert into
direct_messages table
- Broadcast
dm_message event
Missing: forward to gateway via this.gateway.sendChat()
Expected
DM to an agent should route through the gateway and the agent's response should be stored as a DM reply.
Steps to Reproduce
- Open Workshop UI
- Go to Direct Messages
- Send a message to an agent (e.g. kagura)
- Message appears but no reply comes back
Bug
When a user sends a Direct Message to an agent, the message is only stored in SQLite and broadcast locally. It is NOT routed to the OpenClaw gateway, so the agent never receives it and can't reply.
Channel messages work correctly because they go through the gateway.
Root Cause
handleSendDm()inserver/src/router.tsonly does:direct_messagestabledm_messageeventMissing: forward to gateway via
this.gateway.sendChat()Expected
DM to an agent should route through the gateway and the agent's response should be stored as a DM reply.
Steps to Reproduce