From f7a7da03fc27cc6fe4e6a44dabddcd303f939bb9 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Fri, 12 Jun 2026 19:07:07 +0300 Subject: fix: stabilize public pane and tab ids refs #569 --- src/app/api/workspaces.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/app/api/workspaces.rs') diff --git a/src/app/api/workspaces.rs b/src/app/api/workspaces.rs index 92b41486..e1966adf 100644 --- a/src/app/api/workspaces.rs +++ b/src/app/api/workspaces.rs @@ -146,14 +146,13 @@ impl App { if self.state.workspaces.get(index).is_none() { return workspace_not_found(id, &target.workspace_id); } + let workspace_id = self.public_workspace_id(index); self.state.selected = index; self.state.close_selected_workspace(); self.shutdown_detached_terminal_runtimes(); self.emit_event(EventEnvelope { event: EventKind::WorkspaceClosed, - data: EventData::WorkspaceClosed { - workspace_id: target.workspace_id, - }, + data: EventData::WorkspaceClosed { workspace_id }, }); encode_success(id, ResponseResult::Ok {}) -- cgit v1.2.3