You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ocr timed out and failed for some files, but status code=0 #1027
Thanks for the report. I was able to reproduce this locally: when a review ends in a partial state because a selected item times out, the CLI still publishes the partial result but currently exits with status 0.
I have identified the aggregate exit-status logic as the cause and am working on a fix so operational per-item failures, including timeouts, return a non-zero status while the partial review output remains available. I will follow up with the patch and validation results.
Thanks for reporting and reproducing this. We have not independently reproduced the exact partial-result/exit-0 path, but this behavior has a concrete downstream impact on our GitHub Actions rollout.
Our real OpenCodeReview canary reviews have taken roughly 15 to 20 minutes per selected file, so a multi-file review can realistically encounter a per-item timeout or operational failure. Because an overall successful job status does not currently prove that every selected item completed, our verification now reads the terminal review manifest and requires all selected items to be present in completed, with failed, waived, and coverage.failed all empty. We also keep the reviewer advisory rather than required.
We are deferring expansion into larger, more complex multi-file repositories until the fix in #1030 is reviewed, merged, included in an official release, and proven canary-first. We would love to see #1030 move forward.
Additional synthetic reproduction on official npm v1.11.5 (also reproduced on v1.9.10): four small Go files in a disposable two-commit repository, a localhost simulated OpenAI-compatible endpoint, concurrency 1, and OCR_NO_UPDATE=1. No real source or paid model traffic was used.
When one selected item receives a permanent HTTP 402 response and the other three finish, the terminal JSON correctly reports status: partial, four selected, three completed, one failed, and zero waived, but the CLI exits 0. With all four items receiving HTTP 402, it exits 1. A separate streaming case that sends HTTP 200 and an initial chunk, then stalls past the configured request timeout, also produces three completed/one failed with exit 0 in both versions.
Executing the unmodified official action's configuration/review shell blocks with these simulated partial results wrote OCR_EXIT_CODE=0; no posting step was executed. This reinforces that exit status alone cannot establish complete review, and confirms the partial-failure path remains present in v1.11.5. These local shell tests do not claim full hosted-action or runner-cancellation coverage.
This adds a current-release reproduction to the earlier downstream impact report. We can help with a focused upstream regression-test contribution if useful.
Activity
Qiyuanqiii commentedon Aug 21, 2026
Thanks for the report. I was able to reproduce this locally: when a review ends in a partial state because a selected item times out, the CLI still publishes the partial result but currently exits with status 0.
I have identified the aggregate exit-status logic as the cause and am working on a fix so operational per-item failures, including timeouts, return a non-zero status while the partial review output remains available. I will follow up with the patch and validation results.
crestonepeaks commentedon Sep 4, 2026
Thanks for reporting and reproducing this. We have not independently reproduced the exact partial-result/exit-0 path, but this behavior has a concrete downstream impact on our GitHub Actions rollout.
Our real OpenCodeReview canary reviews have taken roughly 15 to 20 minutes per selected file, so a multi-file review can realistically encounter a per-item timeout or operational failure. Because an overall successful job status does not currently prove that every selected item completed, our verification now reads the terminal review manifest and requires all selected items to be present in
completed, withfailed,waived, andcoverage.failedall empty. We also keep the reviewer advisory rather than required.We are deferring expansion into larger, more complex multi-file repositories until the fix in #1030 is reviewed, merged, included in an official release, and proven canary-first. We would love to see #1030 move forward.
Qiyuanqiii commentedon Sep 6, 2026
I’m uncertain where the maintainer stands regarding #1030, as no comment has been posted yet.
Qiyuanqiii commentedon Sep 6, 2026
@lizhengfeng101 Could we have a discussion about this issue and its corresponding PR? 🤔
crestonepeaks commentedon Sep 6, 2026
Additional synthetic reproduction on official npm v1.11.5 (also reproduced on v1.9.10): four small Go files in a disposable two-commit repository, a localhost simulated OpenAI-compatible endpoint, concurrency 1, and OCR_NO_UPDATE=1. No real source or paid model traffic was used.
When one selected item receives a permanent HTTP 402 response and the other three finish, the terminal JSON correctly reports
status: partial, four selected, three completed, one failed, and zero waived, but the CLI exits 0. With all four items receiving HTTP 402, it exits 1. A separate streaming case that sends HTTP 200 and an initial chunk, then stalls past the configured request timeout, also produces three completed/one failed with exit 0 in both versions.Executing the unmodified official action's configuration/review shell blocks with these simulated partial results wrote
OCR_EXIT_CODE=0; no posting step was executed. This reinforces that exit status alone cannot establish complete review, and confirms the partial-failure path remains present in v1.11.5. These local shell tests do not claim full hosted-action or runner-cancellation coverage.This adds a current-release reproduction to the earlier downstream impact report. We can help with a focused upstream regression-test contribution if useful.