Remove unused AssistantThreadFeedback event (#27021)

It looks like:

- https://github.com/zed-industries/zed/pull/26780

accidentally added a new event type, `AssistantThreadFeedback`, using
the old event system, that it didn't end up actually using, as the code
actually relies on using the newer (preferred) `telemetry::event!()`.

Release Notes:

- N/A
This commit is contained in:
Joseph T. Lyons 2025-03-18 16:39:54 -04:00 committed by GitHub
parent 674c572a28
commit ed510b5e93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 25 deletions

View file

@ -97,7 +97,6 @@ pub enum Event {
InlineCompletionRating(InlineCompletionRatingEvent),
Call(CallEvent),
Assistant(AssistantEvent),
AssistantThreadFeedback(AssistantThreadFeedbackEvent),
Cpu(CpuEvent),
Memory(MemoryEvent),
App(AppEvent),
@ -231,26 +230,6 @@ pub struct ReplEvent {
pub repl_session_id: String,
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub enum ThreadFeedbackRating {
Positive,
Negative,
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AssistantThreadFeedbackEvent {
/// Unique identifier for the thread
pub thread_id: String,
/// The feedback rating (thumbs up or thumbs down)
pub rating: ThreadFeedbackRating,
/// The serialized thread data containing messages, tool calls, etc.
pub thread_data: serde_json::Value,
/// The initial project snapshot taken when the thread was created
pub initial_project_snapshot: serde_json::Value,
/// The final project snapshot taken when the thread was first saved
pub final_project_snapshot: serde_json::Value,
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BacktraceFrame {
pub ip: usize,