mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 09:13:14 +00:00
prepare_review_repo is best-effort, but the system prompt unconditionally told the agent the repo is checked out at the PR head. On a reused sandbox, a dirty worktree (or a transient fetch failure) makes 'git checkout <sha>' fail; prep returns False, the old checkout stays in place, and the reviewer confidently reads stale code — observed as 'I rechecked the current head' replies quoting pre-push code. - checkout with --force so leftover worktree state can't block it, verify HEAD matches the requested sha, tolerate 'git fetch --all' failures - when prep fails, the prompt now warns the checkout may be stale and tells the agent to re-fetch/checkout (or fall back to API file contents) before trusting local files Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| dashboard | ||
| integrations | ||
| middleware | ||
| skills | ||
| tools | ||
| utils | ||
| analyzer.py | ||
| encryption.py | ||
| prompt.py | ||
| review_style_collector.py | ||
| review_style_guidance.py | ||
| reviewer.py | ||
| reviewer_diff.py | ||
| reviewer_findings.py | ||
| reviewer_publish.py | ||
| reviewer_reconcile.py | ||
| scheduler.py | ||
| server.py | ||
| webapp.py | ||