# terminal: Fix heredoc commands failing in agent shell \(\#49106\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2c49900c6a01d00fc46b7b0a37a6742ad9bd27d3

Requested commit: 2c49900c6a01d00fc46b7b0a37a6742ad9bd27d3

Commit: 2c49900c6a01d00fc46b7b0a37a6742ad9bd27d3

Tree: 87a000c8050824a99fbc97196f262b5560f58432

Author: Wuji Chen

Committer: GitHub

## Message

```
terminal: Fix heredoc commands failing in agent shell (#49106)

Release Notes:

- Fixed heredoc commands failing with "syntax error: unexpected end of
file" in AI Agent shell execution

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Jakub Konka <kubkon@jakubkonka.com>
```

## Parents

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

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