Repository navigation
Description
OpenCodeReview Version
open-code-review v1.14.4 (d4f568f) linux/amd64, built at 2026-11-26T02:22:50Z. Git 2.47.3.
Operating System
Linux (x86_64), running in a container.
Installation Method
Production container with OCR at /usr/bin/ocr. The installation method has not been verified.
LLM Provider
Omitted from this public report. The underlying Git error was reproduced without an LLM.
Bug Description
Follow-up to #1340 and my reproduction comment there.
During an unattended range review, the model sent the literal backslash-u sequence \u00A0 to code_search with Perl regex enabled. Git rejected the pattern with exit 128. The retry hint added by #1811 was present in stderr, but OCR itself exited nonzero and our integration marked the entire review as failed.
Steps to Reproduce
-
On Git 2.47.3 with PCRE2 support, run this from a repository root. Replace
README.mdwith any existing text file if needed.git grep --no-index -P -e '\u00A0' -- README.md printf 'git grep exit: %s\n' "$?"
I confirmed exit 128 with the same pattern on the affected Linux container.
-
The affected run used the following OCR invocation, with the private commit reference replaced:
ocr review --from '<base-ref>' --to HEAD --format json --audience agent -
The review-level trigger is a
code_searchtool call with these relevant arguments:{"search_text":"\\u00A0","use_perl_regexp":true}
The Git command reproduces the pattern error directly. A normal OCR rerun depends on the model making that same tool call, so the CLI invocation alone is not a deterministic reproduction of the full review failure.
Expected Behavior
Return this pattern error to the model as a recoverable tool result so it can correct the search and continue the review.
Logs / Error Output
Redacted production excerpt. Request metadata and trailing retry guidance omitted.
ERROR [REDACTED] OCR review failed (no fallback): OCR review failed:
[ocr] … code_search failed: git grep failed: exit status 128:
fatal: -e option, '\u00A0': PCRE2 does not support \F, \L, \l, \N{name}, \U, or \u
AI/LLM Disclosure
Drafted with OpenAI Codex. The production log and component reproduction were inspected directly on the affected container.
Activity
Anurag1428 commentedon Nov 26, 2026
Hi, I'd like to work on this. Could I be assigned? I'll share my approach soon.