# Revert terminal memory leak fixes \(\#23636\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/f5102838f3dc3f9c16f9591bb4f021cdc166eda5)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: f5102838f3dc3f9c16f9591bb4f021cdc166eda5

Requested commit: f5102838f3dc3f9c16f9591bb4f021cdc166eda5

Commit: f5102838f3dc3f9c16f9591bb4f021cdc166eda5

Tree: f0df3a2c6dea7cd845e44fb87850a65cbc9f58cc

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Revert terminal memory leak fixes (#23636)

New mechanism had introduced the following regressions:

* Windows tasks are not registering child exit properly, sometimes
getting stuck in dirty state (even with
https://github.com/zed-industries/zed/pull/23631):


https://github.com/user-attachments/assets/6d406f17-aa76-4012-9c3b-be72d6d5beae

* Overall, the terminal editing started to feel more sluggish, esp. in
regards to deletions (ctrl-w and backspace), tested on macOS:


https://github.com/user-attachments/assets/3a69fe2e-e394-45e8-8f51-0f5ac396cb24


Release Notes:

- N/A
```

## Parents

- [b7c6ffa6c2598dceb4bb4804538e636ed8e85700](https://git.cafe/gitcafe/zed/commit/b7c6ffa6c2598dceb4bb4804538e636ed8e85700?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/f5102838f3dc3f9c16f9591bb4f021cdc166eda5?format=markdown)
