The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(simplex): hoist json.dumps above branch in _standalone_send
kshitij0041fc69467a
diff --git a/plugins/platforms/simplex/adapter.py b/plugins/platforms/simplex/adapter.pyindex 2f9dd4e4932..9eaa4d856e8 100644--- a/plugins/platforms/simplex/adapter.py+++ b/plugins/platforms/simplex/adapter.py@@ -1262,16 +1262,13 @@ async def _standalone_send(return {"error": "SimpleX standalone send: SIMPLEX_WS_URL is required"}try:+ composed = json.dumps(+ [{"msgContent": {"type": "text", "text": message}}]+ )if chat_id.startswith("group:"):group_id = chat_id[6:]- composed = json.dumps(- [{"msgContent": {"type": "text", "text": message}}]- )cmd_str = f"/_send #{group_id} json {composed}"else:- composed = json.dumps(- [{"msgContent": {"type": "text", "text": message}}]- )cmd_str = f"/_send @{chat_id} json {composed}"payload = {