# agent_ui: Ensure message editor placeholder text is accurate \(\#42375\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2c375e2e0a310266002abc483945f71f776be7a0

Requested commit: 2c375e2e0a310266002abc483945f71f776be7a0

Commit: 2c375e2e0a310266002abc483945f71f776be7a0

Tree: f3656c0ca3db4041259a16a261272367b219a954

Author: Danilo Leal

Committer: GitHub

## Message

```
agent_ui: Ensure message editor placeholder text is accurate (#42375)

This PR creates a dedicated function for the agent panel message
editor's placeholder text so that we can wait for the agent
initialization to capture whether they support slash commands or not. On
the one (nice) hand, this allow us to stop matching agents by name and
make this a bit more generic. On the other (bad) hand, the "/ for
commands" bit should take a little second to show up because we can only
know whether an agent supports it after it is initialized.

This is particularly relevant now that we have agents coming from
extensions and for them, we would obviously not be able to match by
name.

Release Notes:

- agent: Fixed agent panel message editor's placeholder text by making
it more accurate as to whether agents support slash commands,
particularly those coming from extensions.
```

## Parents

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

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