diff --git a/bin/dm.py b/bin/dm.py index f8a91ab..a8e2b0c 100755 --- a/bin/dm.py +++ b/bin/dm.py @@ -466,7 +466,13 @@ def dm_send(agent, target, message, verify=True, raw=False, if nudge_meta: _sent["nudge_meta"] = nudge_meta log_event(_sent) - print(f"DM {msg_id} from {agent} to {recipient}/{target}: SENT and VERIFIED") + # Thread UUID on the verification line: the board server's + # _box_dm_send_run parses it into the auto-logged DM row. + # Stays None for main-chat sends and UUID-capture failures. + if thread_uuid: + print(f"DM {msg_id} from {agent} to {recipient}/{target}: SENT and VERIFIED thread={thread_uuid}") + else: + print(f"DM {msg_id} from {agent} to {recipient}/{target}: SENT and VERIFIED") # Follow-up record creation: if tags request tracking, POST to the # VM's /api/box/followups endpoint. Fail gracefully -- the DM already # sent, so a record-creation failure is logged, not fatal.