entropy-research / Devon

Devon: An open-source pair programmer
GNU Affero General Public License v3.0
2.36k stars 172 forks source link

Fix typo that causes scroll down to fail editortools.py #42

Closed Mihir1003 closed 1 month ago

Mihir1003 commented 1 month ago

41

sweep-ai[bot] commented 1 month ago

Sweep: PR Review

devon_agent/tools/editortools.py

Corrected dictionary key from "file" to "files" to prevent KeyError and ensure proper functionality.

Sweep Found These Issues

  • The original code would have caused a KeyError due to the incorrect dictionary key "file" instead of "files".
  • https://github.com/entropy-research/Devon/blob/3e2521ac77b40d78df15e2ba58c2f4b34487cc75/devon_agent%2Ftools%2Feditortools.py#L565 [View Diff](https://github.com/entropy-research/Devon/pull/42/files#diff-f373cd4ea0547dc40b544a90dd8c8a7300ac8ed8b9916323f08902ee23ce6600R565)