# Fix extra terminal being created when a task replaces a terminal in the center pane \(\#45317\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ae44c3c8811472dfb105932eaf4e24a2f2853a4e

Requested commit: ae44c3c8811472dfb105932eaf4e24a2f2853a4e

Commit: ae44c3c8811472dfb105932eaf4e24a2f2853a4e

Tree: ee6f479b528c82981347b3f916c9114320c1685d

Author: Cole Miller

Committer: GitHub

## Message

```
Fix extra terminal being created when a task replaces a terminal in the center pane (#45317)

Closes https://github.com/zed-industries/zed/issues/21144

Release Notes:

- Fixed spawned tasks creating an extra terminal in the dock in some
cases.
```

## Parents

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

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