open-swe/agent
Johannes du Plessis 0212a60f10
feat(open-swe): cap reviewer suggestions at 4 lines (#1262)
* 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.
2026-05-07 19:27:16 -07:00
..
integrations feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
middleware feat: add reviewer graph + eval target wiring (#1241) 2026-05-06 10:15:58 -07:00
tools feat(open-swe): cap reviewer suggestions at 4 lines (#1262) 2026-05-07 19:27:16 -07:00
utils feat(open-swe): trigger reviewer from @open-swe review PR comment (#1259) 2026-05-07 17:04:35 -07:00
encryption.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
prompt.py chore: prevent leaking private repo info in PR descriptions (#1254) 2026-05-07 14:29:42 -07:00
reviewer.py feat(open-swe): cap reviewer suggestions at 4 lines (#1262) 2026-05-07 19:27:16 -07:00
reviewer_diff.py fix(open-swe): surface reviewer diff-prep failures instead of swallowing (#1260) 2026-05-07 18:20:27 -07:00
reviewer_findings.py feat(open-swe): cap reviewer suggestions at 4 lines (#1262) 2026-05-07 19:27:16 -07:00
reviewer_publish.py fix(open-swe): host-format the review summary, drop agent prose (#1257) 2026-05-07 15:41:40 -07:00
server.py start sandbox before proxy refresh (#1249) 2026-05-07 11:26:25 -07:00
webapp.py feat(open-swe): trigger reviewer from @open-swe review PR comment (#1259) 2026-05-07 17:04:35 -07:00