I guess I was thinking more when it involves rewriting large parts of it because they don't work
That would be authorship, no?
It sounds like they might be under the impression that having any AI-generated output in the code even if parts are human authored would invalidate the copyright, which isn’t true