This seems to work like a charm when I ask OpenHands to refactor its own changes in OpenHands FE 🤩
1.
Read diff: "Can you checkout branch openhands-fix-issue-5965, read diff against main, and understand the purpose of this PR?"
2. then ask it, "Is there any way to simplify this code by introducing as minimal code as possible?"
3. well, don't forget to tell it "can you make sure
make build-frontend
works locally, then you can commit and push to the same remote branch"
And it comes back with cleaner code w/ the same functionality! -> i'm working in this PR
https://github.com/All-Hands-AI/OpenHands/pull/5966