I have a story about #AI hallucinations for you! If you're interested, get your favorite snack, find a cozy place to settle down, and enjoy the story! π
So I'm certain some of you guys are aware of #FrostWire. I have contributed to the project before after starting my own private fork. I have been responsible for a few things so far:
- New FlatLaf light theme
- Fixes for several search providers (Internet Archive, MagnetDL, and idope)
- Reduction of precompiled native binaries on Linux.
- Some miscellaneous cleanups (especially related to the prior point above).
So things are going well and I decide to find some other bugs to fix. There was one issue where the clear button overlapped the text in the search bar (https://github.com/frostwire/frostwire/issues/1044). The maintainer initially tried to fix the issue with Copilot, but it seemed to go nowhere. Then I decided to look into it by doing a bisect, and I discovered the bad commit. I later figured out it was because BuddySupport.addToComponentHierarchy() was forcing a BorderLayout on a given component, while one of the added components had a different layout. Removing this check fixed the issue. I then highlighted this in my PR, and the maintainer states that "it's probably AI slop" that was introduced while trying to fix theme switching crashes. The commit that actually wrote the code didn't state it was coauthored by AI, but I take the maintainer's word for it right now. Either way, that's my first experience of AI messing something up.
But wait! There's more (continued below)...