Close that PR and run the task again with tighter instructions. Fixing a messy PR with more prompts usually makes it messier.
In AGENTS.md:
- "Never delete or regenerate package-lock.json unless the task is about dependencies."
- "Do not reformat files you did not need to change."
And always read the list of changed files before the description. The description is the model's summary of what it meant to do, the file list is what it did.