diff options
| author | Season Saw <season.saw@gmail.com> | 2026-07-27 07:25:29 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-07-27 02:25:29 +0300 |
| commit | a79b3d558026d0703f848882d652bb5db65df26e (patch) | |
| tree | 8287cd9eb2d9884b544899c28e0e415c8f9000d0 /docs/next | |
| parent | 7e96b1b7e8d3dcc1c12ae538598e5a955ac58c87 (diff) | |
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
Diffstat (limited to 'docs/next')
| -rw-r--r-- | docs/next/website/src/content/docs/cli-reference.mdx | 2 |
1 files changed, 1 insertions, 1 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 <tab_id> <label> herdr tab close <tab_id> ``` -A tab is another terminal layout inside a workspace. Without `--workspace`, `tab create` uses the active workspace and fails if none exists. Its JSON response exposes `.result.tab.tab_id` and `.result.root_pane.pane_id`. +A tab is another terminal layout inside a workspace. Without `--workspace`, `tab create` uses the active workspace and fails if none exists. Its JSON response exposes `.result.tab.tab_id` and `.result.root_pane.pane_id`. Closing a workspace's last tab also closes the workspace, matching the TUI close-tab action; when `confirm_close` is enabled and that would also close a whole worktree group, `tab close` returns a `confirmation_required` error instead. Workspace and tab creation, and pane splitting, leave focus unchanged by default. `--focus` selects the new layout; `--no-focus` states the default explicitly. Without `--cwd`, new terminals follow the configured `terminal.new_cwd` policy, which follows the source pane or workspace by default. Each `--env KEY=VALUE` adds or replaces that variable in the new root shell. |
