# agent: Add setting to control edit card expanded state \(\#34040\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f1db3b4e1d639b3aacbe472ddeb4471d844d4e04

Requested commit: f1db3b4e1d639b3aacbe472ddeb4471d844d4e04

Commit: f1db3b4e1d639b3aacbe472ddeb4471d844d4e04

Tree: 2b707db81def55c3e7137015c3215435c8fa8a88

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Add setting to control edit card expanded state (#34040)

This PR adds the `expand_edit_card` setting, which controls whether edit
cards in the agent panel are expanded, thus showing or not the full diff
of a given file's AI-driven change. I personally prefer to have these
cards collapsed by default as I am mostly reviewing diffs using either
the review multibuffer or the diffs within the file's buffer itself.
Didn't want to change the default behavior as that was intentionally
chosen, so here we are! :)

Open to feedback about the setting name; I've iterated between a few
options and don't necessarily feel like the current one is the best.

Release Notes:

- agent: Added a setting to control whether edit cards are expanded in
the agent panel, thus showing or hiding the full diff of a file's
changes.
```

## Parents

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

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