Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Revert "Enh: Warn if scrolling >= 3 times (#626)"

Kilian Lieretae78750e738e
diff --git a/config/commands/defaults.sh b/config/commands/defaults.sh
index 19916b8e..226942a2 100644
--- a/config/commands/defaults.sh
+++ b/config/commands/defaults.sh
@@ -120,15 +120,6 @@ goto() {
_print
}
-_scroll_warning_message() {
- local current_scroll_count=${SCROLL_COUNT:-0}
- export SCROLL_COUNT=$((current_scroll_count + 1))
- if [ $SCROLL_COUNT -gt 2 ]; then
- echo "Warning: You have scrolled $SCROLL_COUNT times. This is very inefficient."
- echo "If you know what you are looking for, use \`search_file <pattern>\` instead."
- fi
-}
-
# @yaml
# signature: scroll_down
# docstring: moves the window down {WINDOW} lines
@@ -141,7 +132,6 @@ scroll_down() {
export CURRENT_LINE=$(jq -n "$CURRENT_LINE + $WINDOW - $OVERLAP")
_constrain_line
_print
- _scroll_warning_message
}
# @yaml
@@ -156,7 +146,6 @@ scroll_up() {
export CURRENT_LINE=$(jq -n "$CURRENT_LINE - $WINDOW + $OVERLAP")
_constrain_line
_print
- _scroll_warning_message
}
# @yaml