# agent: Add thread history import telemetry \(\#59050\) · gitcafe/zed

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

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

Visibility: public

Requested revision: eb4e2e8c7b822ce74254ca3534ac0e018e41597a

Requested commit: eb4e2e8c7b822ce74254ca3534ac0e018e41597a

Commit: eb4e2e8c7b822ce74254ca3534ac0e018e41597a

Tree: 9b8f4617b32494a37e6d6d14c79ffa3df892b971

Author: Katie Geer

Committer: GitHub

## Message

```
agent: Add thread history import telemetry (#59050)

## Summary

- Emit `Thread History Viewed` from the shared archive/history opening
path so it covers button, keyboard, and onboarding entry points.
- Emit `Agent Threads Import Clicked` when users open external-agent
thread import from thread history or onboarding.
- Emit `Agent Threads Import Clicked` when users click cross-channel
thread import onboarding.

## Tests

- `cargo fmt --check`
- `git diff --check`
- `./script/clippy -p sidebar`
- `cargo test -p sidebar`

Release Notes:

- N/A
```

## Parents

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

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