Fix task terminal split (#40824)

Before:


https://github.com/user-attachments/assets/efe2aeb6-94bb-46b6-944f-5a6345c072b4


After:


https://github.com/user-attachments/assets/61a7f699-6b4d-465f-add1-07774068420c


Release Notes:

- Fixed task terminal split not working correctly
256fe6e45cKirill Bulatov committed on 10/21/2025, 9:08:56 PM· committed by GitHubparente49edfa
2 files changedLine totals unavailable