Repository navigation
Conversation
When the floating workspace is focused, digit tab/workspace jump chords were still intercepted in the main process and applied to the main workspace. Mirror full floating-panel focus (not only xterm input) so main skips jumpToWorktreeIndex/jumpToTabIndex and the panel remaps workspace.selectByIndex to its own tabs. Also defer tab.close to the terminal pane handler when a floating terminal has split panes, so Cmd/Ctrl+W closes only the focused pane. Closes stablyai#10288
|
Warning Review limit reached
Next review available in: 30 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (10)
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. Comment |
|
Hey @innocarpe — thanks for picking this up! Looks like we landed on the same fix independently and ended up duplicating effort here. Wanted to flag #10280 so we can consolidate rather than split the work. Quick context:
The two PRs are essentially the same approach. Both:
The main-process guard, the preload/web-preload signatures, and the Proposal — happy with whichever keeps us to one PR:
Either way works for me — just want to make sure we don't lose one of the two contributions. What do you prefer? cc @AmethystLiang @nwparker |
Summary
Root cause
before-input-eventalways dispatchedjumpToWorktreeIndex/jumpToTabIndexandpreventDefault’d the key, so the floating panel’s capture handler never saw it.floatingTerminalInputFocusedonly skipped sidebar toggles and only tracked xterm focus—not tab-bar/chrome focus.tab.closehandler always calledcloseFloatingItem()(whole tab) withstopImmediatePropagation, so the split-pane close path never ran.Fix
ui:setFloatingPanelFocusedIPC so main knows when any floating panel focus exists (chrome or terminal).workspace.selectByIndexin the floating panel capture handler to activate floating tabs.tab.closeto the terminal pane handler when the active floating terminal layout is a split.Test plan
jumpToWorktreeIndex/jumpToTabIndexwhen floating terminal input is focusedshouldDeferFloatingWorkspaceTabCloseToPaneonly true for split terminal + terminal inputFloatingTerminalPanel/createMainWindowsuites passpnpm typecheckpassesPlatform notes
Cross-platform: uses existing keybinding matchers (Cmd on macOS, Ctrl/Alt elsewhere). No platform-specific branching beyond existing shortcut tables.