agent: Fix bug in creating empty files (#31626)

Release Notes:

- NA
05afe95539Oleksiy Syvokon committed on 5/28/2025, 7:31:54 PM· committed by GitHubparenta5a1164
1 file changedLine totals unavailable