Skip to content

file_read call failures in a monorepo #287

Description

@cometkim

OpenCodeReview Version

v1.6.6

Operating System

macOS (Apple Silicon)

Installation Method

npm (global)

LLM Provider

Anthropic (Claude)

Bug Description

When I run ocr review... in a monorepo project.

My workspace isn't the project root.

/project        # monorepo root
  /.git
  /subproject1  # working dir 
  /subproject2

So the /project is git repo, but ocr often spawned in the /project/subproject1

Then, I see many errors from the review process like:

✘ file_read failed: file "src/models/request_meta.py" not found: git show HEAD:src/models/request_meta.py: exit status 128: fatal:
 path 'subproject1/src/models/request_meta.py' exists, but not 'src/models/request_meta.py'

I think it can handle with this situation, but with many extra indirect LLM calls.

Steps to Reproduce

Run ocr review in any subdirectory of the repository.

Expected Behavior

file_read should respect the project structure even the process spawend in a subdirectory.

Logs / Error Output

Additional Context

No response

Metadata

Metadata

Labels

bugSomething isn't working

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions