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.
This commit is contained in:
teknium1
2026-02-23 14:58:52 -08:00
parent 224c900532
commit 79f8831738

View File

@@ -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)