Skip to content

v1.14.4: code_search with \u00A0 can fail the entire review #2104

Backlog

Description

@lee259

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

  1. On Git 2.47.3 with PCRE2 support, run this from a repository root. Replace README.md with 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.

  2. 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
  3. The review-level trigger is a code_search tool 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

  1. Anurag1428 commented on Nov 26, 2026

    @Anurag1428

    Hi, I'd like to work on this. Could I be assigned? I'll share my approach soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions