From a79b3d558026d0703f848882d652bb5db65df26e Mon Sep 17 00:00:00 2001 From: Season Saw Date: Mon, 27 Jul 2026 07:25:29 +0800 Subject: [PATCH] fix: close workspace when api closes its last tab (#1899) herdr tab close on a workspace's only tab returned tab_close_failed, while the TUI close-tab action on the same tab closes the tab and cascades to closing the workspace. Cascade in the API too, emitting tab.closed then workspace.closed. When the cascade would close a whole worktree group, return confirmation_required instead, matching pane.close and the TUI prompt. refs #1760 --- .../src/content/docs/cli-reference.mdx | 2 +- src/app/api/tabs.rs | 97 ++++++++++++++++--- 2 files changed, 86 insertions(+), 13 deletions(-) diff --git a/docs/next/website/src/content/docs/cli-reference.mdx b/docs/next/website/src/content/docs/cli-reference.mdx index 19a7ec23..a49a4212 100644 --- a/docs/next/website/src/content/docs/cli-reference.mdx +++ b/docs/next/website/src/content/docs/cli-reference.mdx @@ -156,7 +156,7 @@ herdr tab rename