# terminal: Don’t include line breaks for soft wrap in Assistant terminal context \(\#25415\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c282acbe6518f48a93e92e66d3075f4783197ac6

Requested commit: c282acbe6518f48a93e92e66d3075f4783197ac6

Commit: c282acbe6518f48a93e92e66d3075f4783197ac6

Tree: 49176ac5a62e34ccb9b6b45336610175f5cae7b1

Author: Richard Hao

Committer: GitHub

## Message

````
terminal: Don’t include line breaks for soft wrap in Assistant terminal context (#25415)

> Detects and combines wrapped lines into single logical lines, more
accurately representing the actual terminal content.


```shell
perl -i -pe \
    's/"vscode-languageserver(\/node)?"/"\@zed-industries\/vscode-languageserver$1"/g' packages/css/lib/node/cssServerMain.js
```

<img width="518" alt="image"
src="https://github.com/user-attachments/assets/52d9327c-c381-4e5f-a676-0cf84c824388"
/>

<img width="1314" alt="image"
src="https://github.com/user-attachments/assets/0a32e1f9-7e95-482e-9beb-2e8a6c40584c"
/>




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

Release Notes:

- Fixed a bug where context for the terminal assistant would add line
breaks in the presence of soft wrapped lines.

---------

Co-authored-by: Peter Tripp <peter@zed.dev>
````

## Parents

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

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