Skip to content

Pass diff and PR body as files in PR-review workflow#13

Merged
bnavetta merged 1 commit intomainfrom
ben/remote-1041-pr-review-fails-with-long-diffs-pass-as-file-instead
Mar 4, 2026
Merged

Pass diff and PR body as files in PR-review workflow#13
bnavetta merged 1 commit intomainfrom
ben/remote-1041-pr-review-fails-with-long-diffs-pass-as-file-instead

Conversation

@bnavetta
Copy link
Contributor

@bnavetta bnavetta commented Mar 4, 2026

We pass the prompt as a CLI argument, so it's subject to argument length limits.

With large diffs, this can cause the PR review workflow to fail. To avoid this, we should pass the diff and PR description as files, and instruct the agent to read them. This also gives the agent more options - for example, it can grep over the diff to search for specific changes.

In general, we should support a --prompt-file argument in the CLI, but that requires a new client release.

Tested by pointing a PR in warp-server at the workflow on this branch: https://github.com/warpdotdev/warp-server/actions/runs/22666226757/job/65698537822

@bnavetta bnavetta force-pushed the ben/remote-1041-pr-review-fails-with-long-diffs-pass-as-file-instead branch from 4bdfc7a to 959ba56 Compare March 4, 2026 10:51
@bnavetta bnavetta requested a review from captainsafia March 4, 2026 11:13
Copy link
Collaborator

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for root causing and fixing!

@bnavetta bnavetta merged commit 4d5b8c4 into main Mar 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants