# terminal: Fix pty info change detection race \(\#57257\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 43b7ca9cc24f2d5ba06e47940235ddb020939b80

Requested commit: 43b7ca9cc24f2d5ba06e47940235ddb020939b80

Commit: 43b7ca9cc24f2d5ba06e47940235ddb020939b80

Tree: 20b69ddfcbee192e2b2a8500f31fb5b7fd33efd3

Author: Ben Brandt

Committer: GitHub

## Message

```
terminal: Fix pty info change detection race (#57257)

I think I introduced this at some point in the terminal agent situation.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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