From 79f88317385df3e61d106dd51b323e41ce3e0cc0 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Mon, 23 Feb 2026 14:58:52 -0800 Subject: [PATCH] refactor: improve message source tagging in GatewayRunner - Renamed variable `source` to `mirror_src` for clarity in the message tagging logic within the GatewayRunner class, enhancing code readability while maintaining functionality. --- gateway/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/run.py b/gateway/run.py index 54bc0dde..a4c59a32 100644 --- a/gateway/run.py +++ b/gateway/run.py @@ -1329,8 +1329,8 @@ class GatewayRunner: if content: # Tag cross-platform mirror messages so the agent knows their origin if msg.get("mirror"): - source = msg.get("mirror_source", "another session") - content = f"[Delivered from {source}] {content}" + mirror_src = msg.get("mirror_source", "another session") + content = f"[Delivered from {mirror_src}] {content}" agent_history.append({"role": role, "content": content}) result = agent.run_conversation(message, conversation_history=agent_history)