mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 11:33:14 +00:00
* feat(open-swe): cap reviewer suggestions at 4 lines Long suggestion blocks read as the reviewer rewriting the code rather than flagging an issue, which clutters PR comments. Steer the reviewer toward description-only findings for non-trivial fixes, and enforce the cap in `add_finding` / `update_finding` so suggestions over 4 lines are dropped (the finding itself still publishes). * fix(open-swe): don't clobber prior suggestion on over-cap update `update_finding` was setting `suggestion=None` whenever clip_suggestion dropped the input, which silently wiped any existing suggestion on the finding. Distinguish the three cases: empty string clears, valid value sets, over-cap value is rejected without touching the stored field. |
||
|---|---|---|
| .. | ||
| integrations | ||
| middleware | ||
| tools | ||
| utils | ||
| encryption.py | ||
| prompt.py | ||
| reviewer.py | ||
| reviewer_diff.py | ||
| reviewer_findings.py | ||
| reviewer_publish.py | ||
| server.py | ||
| webapp.py | ||