# Fix telemetry source for git and sidebar-triggered agent threads \(\#54005\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6d73ada46271afbabdccc42196ed03ecb23446da

Requested commit: 6d73ada46271afbabdccc42196ed03ecb23446da

Commit: 6d73ada46271afbabdccc42196ed03ecb23446da

Tree: ec85c107a02dd171c911aa449b5ef612ecceebd0

Author: María Craig

Committer: GitHub

## Message

```
Fix telemetry source for git and sidebar-triggered agent threads (#54005)

The `ReviewBranchDiff`, `ResolveConflictsWithAgent`, and
`ResolveConflictedFilesWithAgent` actions are dispatched from the git UI
(`git_ui/src/project_diff.rs` and `git_ui/src/conflict_view.rs`), not
the agent panel. Their `source` field in the "Agent Thread Started"
telemetry event was set to `"agent_panel"` — this changes it to
`"git_panel"`.

Also threads the `source` parameter through `activate_draft` and
`ensure_draft` so that drafts created from the sidebar correctly report
`source = "sidebar"` instead of `"agent_panel"`.

Release Notes:

- N/A
```

## Parents

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

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