1
0
mirror of https://github.com/GuDaStudio/codexmcp.git synced 2026-02-12 02:47:43 +08:00

v0.6.2:紧急修复

This commit is contained in:
GuDaStudio
2025-11-13 18:17:44 +08:00
parent c84a40e829
commit c609d6fa83

View File

@@ -149,12 +149,12 @@ async def codex(
bool, bool,
"Return all messages (e.g. reasoning, tool calls, etc.) from the codex session. Set to `False` by default, only the agent's final reply message is returned.", "Return all messages (e.g. reasoning, tool calls, etc.) from the codex session. Set to `False` by default, only the agent's final reply message is returned.",
] = False, ] = False,
image: Annotated[ # image: Annotated[
Optional[List[Path]], # Optional[List[Path]],
Field( # Field(
description="Attach one or more image files to the initial prompt. Separate multiple paths with commas or repeat the flag.", # description="Attach one or more image files to the initial prompt. Separate multiple paths with commas or repeat the flag.",
), # ),
] = None, # ] = None,
model: Annotated[ model: Annotated[
Optional[str], Optional[str],
Field( Field(
@@ -176,8 +176,8 @@ async def codex(
# Build command as list to avoid injection # Build command as list to avoid injection
cmd = ["codex", "exec", "--sandbox", sandbox, "--cd", str(cd), "--json"] cmd = ["codex", "exec", "--sandbox", sandbox, "--cd", str(cd), "--json"]
if image is not None: # if image is not None:
cmd.extend(["--image", ",".join(image)]) # cmd.extend(["--image", ",".join(image)])
if model is not None: if model is not None:
cmd.extend(["--model", model]) cmd.extend(["--model", model])