Skip to content

test(tab-menu): expect the selection to move to the pane selected before a closed one - #3011

Merged
devswha merged 1 commit into
mainfrom
fix/main-tab-menu
Nov 5, 2026
Merged

devswha merged 1 commit into
mainfrom
fix/main-tab-menu

Conversation

@devswha

@devswha devswha commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Problem

Browser regression (ui-regression) is red on main since #2853 (first failing run at 55b2d39; still red at b01e5e1, run 42040477141):

scripts/tab-menu-regression.ts:49: TimeoutError: waitFor: Timeout 10000ms exceeded.
  - waiting for locator('[data-layout-pane="wG:p1"].is-current') to be visible
  at checkDesktop (scripts/tab-menu-regression.ts:537)

#2853 moves a closed pane's selection the way herdr's TUI moves its focus: to the pane selected before it (src/lib/paneAfterClose.ts). The desktop canvas check still waited for herdr's own focused_pane_id after it closed the third pane. Selecting a pane in the browser never moves herdr's focus, so herdr focused the first pane while the browser correctly selected the second one, which was selected before the split made the third.

Change

Test only: after the close, the check now expects the browser's selection on the second pane. No product code changes.

Validation

…ore a closed one

#2853 moves a closed pane's selection as herdr's TUI focus would: to the pane
selected before it, not to herdr's own focus. The desktop canvas check still
waited for herdr's focused pane after closing the third pane, so it timed out
on main (scripts/tab-menu-regression.ts:49). The browser had selected the
second pane before splitting it, so the selection lands there.
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Summary

Summary by CodeRabbit

  • Tests
    • Updated the pane-close regression check to expect the browser to select the second pane after selection confirmation.

After the selected pane closes, the regression check now expects the browser to select the second pane. The updated comment describes this as matching herdr’s TUI selection behavior.

Changes: Pane-close selection regression

Layer / File(s) Summary
Update selection assertion
scripts/tab-menu-regression.ts
The check now expects the browser to select the second pane after the selected pane closes. The comment describes the expected selection as matching herdr’s TUI behavior.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Other

Possibly related PRs

  • devswha/ovis#2853: Changes pane-close selection behavior that this regression check now expects.

Suggested reviewers: kilhyeonjun

Merge Risk: Minimal · up to 3c440

The test now expects browser selection to return to the second pane after closing the third pane. No actionable merge-blocking risk is established by the supplied evidence.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@devswha

devswha commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

Local merge gate (owner-approved): test-only; tab-menu-regression now expects the selection rule #2853 introduced on purpose (a closed pane's selection moves to the previously chosen pane). Reproduced on main, passes with this change and when #2853's change is reverted; check fast green; omo CLEAR. Merged without waiting for GitHub CI to unblock main's ui-regression job.

@devswha
devswha merged commit 864ac2f into main Nov 5, 2026
10 of 11 checks passed
@devswha
devswha deleted the fix/main-tab-menu branch November 5, 2026 14:57
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