dm.py: Fix dm_thread to pass to_agent correctly\n\nWas calling dm_send(to_agent, target, attributed) which set the\nsender to the recipient and omitted the to_agent param. Now calls\ndm_send(from_agent, target, attributed, to_agent=to_agent).

This commit is contained in:
operator-main
2026-10-04 01:29:26 +00:00
parent d3c19425e8
commit 77d904d344
+1 -1
View File
@@ -284,7 +284,7 @@ def dm_log(n=20):
def dm_thread(from_agent, to_agent, target, message): def dm_thread(from_agent, to_agent, target, message):
attributed = f"[{from_agent}] {message}" attributed = f"[{from_agent}] {message}"
return dm_send(to_agent, target, attributed) return dm_send(from_agent, target, attributed, to_agent=to_agent)
def main(): def main():
p = argparse.ArgumentParser(description="DM: Headless Direct Messages (UUID-tagged, logged; delivery NOT confirmed)") p = argparse.ArgumentParser(description="DM: Headless Direct Messages (UUID-tagged, logged; delivery NOT confirmed)")