Ultimately, it worked, but it was too much code for what it needed to do
badsectoracula on Hacker News
1600 line PR
In the thread “AI Lazyslop and Personal Responsibility”, replying to this comment
Got in the way: AI generated excessive code volume for simple UI logic.
… And because the UI had state such as scrolling, selected items, etc, whenever the UI was recreated, it saved the current state and restored it after it was recreated (together with adding storage for the state). Ultimately, it worked, but it was too much code for what it needed to do. The kicker was that the modifications to pass around the value for the flag's state wasn't even necessary (even ignoring the fact that the flag could have been checked directly during drawing) because a struct with configuration settings was already passed through the same paths and the value could have been added to said struct. …