fix: emit plugin lifecycle events from ui worktree flows

refs #662
This commit is contained in:
Ogulcan Celik
2026-06-18 16:05:43 +03:00
parent b7a504b35e
commit d74ba8ca9e
12 changed files with 868 additions and 184 deletions
+2
View File
@@ -397,6 +397,8 @@ pub enum EventData {
},
WorktreeRemoved {
workspace_id: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
workspace: Option<WorkspaceInfo>,
worktree: WorktreeInfo,
forced: bool,
},
+1
View File
@@ -504,6 +504,7 @@ fn worktree_lifecycle_events_round_trip() {
event: EventKind::WorktreeRemoved,
data: EventData::WorktreeRemoved {
workspace_id: "w_2".into(),
workspace: Some(workspace.clone()),
worktree: WorktreeInfo {
open_workspace_id: None,
..worktree.clone()