Where does the bug appear (feature/product)?
Cloud Agent (GitHub, Slack, Web, Linear)
Describe the Bug
When triggering the cloud agent from a Linear task via an @cursor comment, the agent makes far broader code changes than the task requires. It modifies many unrelated files, removes comments, reformats code, and fixes issues that were never part of the request. This behavior seems to be getting worse over time despite no changes on our end.
For example, I asked the agent to add a copy-to-clipboard button. Instead of touching 1-2 files, it ended up modifying ~18 files, fixing unrelated TypeScript errors, removing comments, and doing general cleanup that was never requested.
PR with the oversized diff: https://github.com/heylibby/HeyLibbyAmplify/pull/3017/changes
The same model (Sonnet 4.5) behaves much more precisely and conservatively when used in the Cursor IDE. The Linear cloud agent flow seems to have very different (and more aggressive) edit-scoping behavior.
Steps to Reproduce
- Create a Linear task with a narrow, well-scoped request (e.g. “add a copy-to-clipboard button to component X”)
- Tag @cursor in a comment on that Linear task
- The cloud agent picks up the task and opens a PR
- Review the PR diff — it will contain many more file changes than expected
This happens consistently across multiple tasks. The agent routinely touches unrelated files, removes comments, fixes unrelated TypeScript errors, and applies formatting changes that were never requested.
Expected Behavior
The cloud agent should only modify the files directly relevant to the requested task. For a request like “add a copy-to-clipboard button,” it should change 1-2 component files at most — not reformat unrelated files, remove comments, or fix TypeScript errors that were never mentioned. The IDE agent with the same model handles this correctly and stays focused on the task scope.
Operating System
MacOS
Version Information
Cloud Agent (Linear integration) — no IDE version applicable
For AI issues: which model did you use?
claude-sonnet-4-5 (Sonnet 4.5)
Additional Information
- Trigger method: @cursor comment in a Linear task
- This has happened across multiple tasks, not just once
- The IDE agent with the same model is noticeably better scoped
- No changes were made to our setup or Cursor configuration before this started
- Concrete example PR (18 files changed for a 1-2 file task): https://github.com/heylibby/HeyLibbyAmplify/pull/3017/changes
- Questions for the team: What is different between the Linear cloud agent flow and the IDE agent flow in terms of system prompt, context window, file-scoping, or edit constraints? Has anything changed recently?
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor