[fix]. Wire runner reasoning effort
All checks were successful
ci / test (push) Successful in 30s
ci / publish (push) Successful in 52s

This commit is contained in:
Space-Banane
2026-05-23 00:08:03 +02:00
parent 7bc6165fff
commit 0ab2d62609
2 changed files with 17 additions and 3 deletions

View File

@@ -76,10 +76,13 @@ def _build_install_and_run_command(settings: Settings) -> str:
]
)
model = settings.openai_review_model.strip()
reasoning_effort = settings.openai_reasoning_effort.strip()
codex_exec_parts = ["codex exec --skip-git-repo-check --json"]
if model:
steps.append(f"codex exec --skip-git-repo-check --json -m {shlex.quote(model)}")
else:
steps.append("codex exec --skip-git-repo-check --json")
codex_exec_parts.append(f"-m {shlex.quote(model)}")
if reasoning_effort:
codex_exec_parts.append(f"--reasoning-effort {shlex.quote(reasoning_effort)}")
steps.append(" ".join(codex_exec_parts))
return "; ".join(steps)