Unintended Code Alterations in Agent Mode: Removal/Translation of Comments and Console Logs

OS: Macos 14.3 (I believe it’s not business about OS)
Cursor version: 0.50 now (I was occurred in the before version as well)

The agent appears to ​​overreach in modifying my code​​ during code generation or auto-suggestions, which leads to unintended changes in my original work. Specifically:

  1. ​Comment Removal/Translation​​:
  • The agent frequently ​​removes comments​​ or ​​translates them((some is written in my language) into English​​ without prompting. For example, a Chinese comment like // 验证输入 might be deleted or rewritten as // Validate input.
  1. ​Console Log Alterations​​:
  • console.log statements are sometimes ​​removed entirely​​ or have their ​​messages translated into English​​. For instance, console.log("数据加载中...") might become console.log("Loading data...") or disappear altogether.

While I appreciate the intent to assist, these changes disrupt my workflow, especially when working with co-worker(they need my comment) or requiring precise debugging logs. I expect the agent to ​​preserve my original code structure, comments, and language​​ unless explicitly instructed to modify them.