# Add "Agent Panel Error Shown" telemetry with ACP error details \(\#46848\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ff73838baba9d6f10c6ed803436fe8892e4c09f5

Requested commit: ff73838baba9d6f10c6ed803436fe8892e4c09f5

Commit: ff73838baba9d6f10c6ed803436fe8892e4c09f5

Tree: 553ab57c55cc5386df43722281e171aa9b1500cc

Author: Katie Geer

Committer: GitHub

## Message

```
Add "Agent Panel Error Shown" telemetry with ACP error details (#46848)

Adds a new "Agent Panel Error Shown" telemetry event that fires when
users see errors in the agent panel. For errors from external ACP agents
(like Claude Code), we capture additional details.

Previously, we had no visibility into what errors users were
encountering in the agent panel. This made it difficult to diagnose
issues, especially with external agents.

The new telemetry event includes:
- `agent` — The agent telemetry ID
- `session_id` — The session ID
- `kind` — Error category (payment_required, authentication_required,
refusal, other, etc.)
- `acp_error_code` — The ACP error code when available (e.g.,
"InternalError")
- `acp_error_message` — The ACP error message when available

Release Notes:

- N/A

---------

Co-authored-by: Michael Benfield <mbenfield@zed.dev>
```

## Parents

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

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