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]
Fix missing CURRENT_FILE env read in search_file
carlosejimenez956347de43e1
diff --git a/tools/search/bin/search_file b/tools/search/bin/search_fileindex 4a942b1e..d6e191c8 100644--- a/tools/search/bin/search_file+++ b/tools/search/bin/search_file@@ -18,6 +18,7 @@ main() {return # Exit if the file is not validfielse+ local CURRENT_FILE=$(_read_env CURRENT_FILE)# Check if a file is openif [ -z "${CURRENT_FILE:-}" ]; thenecho "No file open. Use the open command first."