OpenHands / OpenHands/extensions
PR Review action fails: uv cannot resolve litellm pre-release dependency
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 148
- Forks
- 90
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 36
Description
Problem
The pr-review plugin fails when resolving dependencies because openhands-sdk depends on litellm>=1.80.10, but litellm has pre-release markers that uv doesn't resolve by default.
Error
× No solution found when resolving `--with` dependencies:
╰─▶ Because there are no versions of litellm and openhands-sdk<=1.3.0
depends on litellm>=1.77.7.dev9, we can conclude that
openhands-sdk<=1.3.0 cannot be used.
...
hint: Pre-releases are available for `openhands-sdk` in the requested
range (e.g., 1.0.0a6), but pre-releases weren't enabled (try:
`--prerelease=allow`)
hint: `litellm` was requested with a pre-release marker (e.g.,
litellm>=1.77.7.dev9), but pre-releases weren't enabled (try:
`--prerelease=allow`)
Location
plugins/pr-review/action.yml line ~100:
uv run --with openhands-sdk --with openhands-tools --with lmnr \
python ../extensions/plugins/pr-review/scripts/agent_script.py
Proposed Fix
Add --prerelease=allow to the uv run command:
uv run --prerelease=allow --with openhands-sdk --with openhands-tools --with lmnr \
python ../extensions/plugins/pr-review/scripts/agent_script.py
Reproduction
Any repository using the pr-review action will fail. Example:
https://github.com/jpshackelford/demorec/actions/runs/23491703065/job/68361406358
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in plugins/pr-review/action.yml around line 100 and inspect the uv run command that launches scripts/agent_script.py. Reproduce the dependency-resolution failure with the pr-review action, then verify the command resolves the cited pre-release dependencies and the action proceeds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, python
- Domain
- ci-cd, devops
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 88/100