zed icon indicating copy to clipboard operation
zed copied to clipboard

Re-enable format on save

Open rtfeldman opened this issue 6 months ago • 0 comments

Re-enables format on save for agent changes (when the user has that enabled in settings), except differently from before:

  • Now we only format after the agent has completely finished the conversation (or the user cancels it), rather than after each edit
  • When the only change was a formatting change, we tell the model as much, and furthermore explicitly tell the model not to mention anything about reformatting, or to reread the file, unless it needs to know about line number changes

Release Notes:

  • N/A

Note: I made this using Claude 4 Opus, plus one slight edit to delete an unnecessary comment + revise a string literal (which Claude could have done too, but seemed like a waste of time and tokens).

thread1.md thread2.md

rtfeldman avatar May 27 '25 21:05 rtfeldman