Repository navigation
fix(agent): reject unfinished Qoder results and model fallbacks - #382
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
c6d5ae2 to
5ad4dc7
Compare
JHWang-1997
left a comment
There was a problem hiding this comment.
LGTM. Reviewed the latest adapter and AgentJudge changes. Initial and resumed Qoder calls now reject explicit error and unfinished tool-use results while preserving raw diagnostics and legacy output compatibility. The requested-model fallback classification survives execution failures/cancellation and prevents both file and chat verdict recovery from an unintended model.
Validated with focused race tests for TestQoder and TestAgentJudge; the current CI and extended checks are passing. No blocking findings. This review did not rerun the live provider integration matrix.
Qoder can exit zero while returning an unfinished
tool_useresult or an explicit error envelope. The adapter previously marked these calls successful, leaving AgentJudge to diagnose an empty/non-JSON response. Check terminal status in both initial and resumed calls while preserving raw output and session diagnostics. Completed file delivery may still have empty chat.Also classify Qoder's explicit diagnostic that an unavailable requested model was replaced with a fallback. AgentJudge must not accept or recover that unintended model's verdict, including when a valid JSON file exists or a transport/nonzero-exit error follows. Preserve the original execution/cancellation cause alongside the model error. Update the file-judge example and docs to Fast, Qoder's current replacement for Performance; model IDs remain forwarded without an allowlist or automatic remapping.
Validation:
make fmt,make verify,make build,make test GOFLAGS='-buildvcs=false -p=1'(race detector retained), example configuration validation, and the retry-policy E2E regression.go test -tags e2e -parallel 1 -v ./e2e.