Skip to content

Preserve sibling splits when deleting window#290

Merged
edwin-zvs merged 1 commit into
mainfrom
tui-delete-focused-split
May 31, 2026
Merged

Preserve sibling splits when deleting window#290
edwin-zvs merged 1 commit into
mainfrom
tui-delete-focused-split

Conversation

@edwin-zvs

Copy link
Copy Markdown
Contributor

Summary

  • fix C-x 0 split deletion so only the focused leaf is removed
  • preserve sibling panes in nested split trees, e.g. [a] [b/c] focused on c becomes [a] [b]
  • add a regression test for deleting the focused nested split leaf

Tests

  • cargo test -p agentd-cli delete_active_window_preserves_remaining_nested_splits
  • cargo test -p agentd-cli set_split_ratio_by_render_order_updates_nested_split
  • cargo check -p agentd-cli
  • cargo build
  • git diff --check

Binaries

Built in this worktree under /Users/moon/agentd/.claude/worktrees/tui-delete-focused-split/target/debug/.
Relevant binary for this PR: agent (crates/cli).

@edwin-zvs
edwin-zvs merged commit 5efadcf into main May 31, 2026
1 check passed
@edwin-zvs
edwin-zvs deleted the tui-delete-focused-split branch May 31, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant