Menu

Stop the agent from “cleaning up” unrelated imports in a UI bugfix
📰

Stop the agent from “cleaning up” unrelated imports in a UI bugfix

DEV Community: frontend·Sherotree·5 days ago
#UszOdONH
#devtofrontend#devto#dev#import#file
Reading 0:00
15s threshold

You asked for a disabled state on the submit button. The diff also re-sorts imports in six files, drops an unused type in a sibling, and rewrites index.ts barrel exports “while we were here.” The bugfix is five lines. The noise is two hundred.

I’ve started treating drive-by cleanup as a reason to reset the PR, not a free lint gift. Unrelated import churn hides the actual change and picks fights with every other branch.

Why agents love to tidy

The file had an unused import, and the model has been trained to “leave the campground cleaner”

Auto-organize-imports in the agent’s editor loop ran on every file it touched

It opened a barrel file to add one export, then reordered the rest

A formatter or eslint --fix ran at repo root instead of on the changed hunk

Some of those are good in a dedicated chore PR .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.