From 5b63169aba6ba6cfef634856441461c892c59e40 Mon Sep 17 00:00:00 2001 From: GuDaStudio Date: Thu, 20 Nov 2025 18:31:36 +0800 Subject: [PATCH] =?UTF-8?q?v0.7.2=EF=BC=9A=E5=85=81=E8=AE=B8mcp=E7=AD=89?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=8F=91=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/codexmcp/server.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/codexmcp/server.py b/src/codexmcp/server.py index 55987ea..fb5c805 100644 --- a/src/codexmcp/server.py +++ b/src/codexmcp/server.py @@ -218,8 +218,6 @@ async def codex( if "fail" in line_dict.get("type", ""): success = False if len(agent_messages) == 0 else success err_message = "codex error: " + line_dict.get("error", {}).get("message", "") - if "reconnecting" not in err_message.lower(): - break if "error" in line_dict.get("type", ""): success = False if len(agent_messages) == 0 else success err_message = "codex error: " + line_dict.get("message", "") @@ -233,11 +231,11 @@ async def codex( success = False break - if success and thread_id is None: + if thread_id is None: success = False err_message = "Failed to get `SESSION_ID` from the codex session. \n\n" + err_message - if success and len(agent_messages) == 0: + if len(agent_messages) == 0: success = False err_message = "Failed to get `agent_messages` from the codex session. \n\n You can try to set `return_all_messages` to `True` to get the full reasoning information. \n\n " + err_message