1
0
mirror of https://github.com/GuDaStudio/codexmcp.git synced 2026-02-04 01:50:40 +08:00

v0.5.1:修复字符转换问题

This commit is contained in:
GuDaStudio
2025-11-13 17:35:46 +08:00
parent c7a5bfb169
commit ed42408e7b

View File

@@ -158,8 +158,12 @@ async def codex(
if SESSION_ID is not None:
cmd.extend(["resume", str(SESSION_ID)])
PROMPT = PROMPT
cmd += ['--', windows_escape(PROMPT)]
if os.name == "nt":
PROMPT = windows_escape(PROMPT)
else:
PROMPT = PROMPT
cmd += ['--', PROMPT]
all_messages: list[Dict[str, Any]] = []
agent_messages = ""