bug: handle LLM context length overflow gracefully #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
When the prompt (diff + conventions + patterns) exceeds the model's context window, review-bot crashes with a non-actionable error.
Example: gargoyle PR #508 with
patterns/directory fetched from 2 repos + CLAUDE.md + diff = 134K tokens, exceeding GPT-4.1's 128K limit.Current Behavior
CI job fails, no review posted.
Expected Behavior
review-bot should:
Acceptance Criteria