edit tool: Handle over-indentation in `replace_with_flexible_indent` (#29153)

Release Notes:

- agent: Correct over-indentation in search/replace strings from model
3a27e8c311Agus Zubiaga committed on 4/21/2025, 2:02:08 PM· committed by GitHubparentbfb2ed3
1 file changedLine totals unavailable