Repository navigation
Fix Dock paste routing to selected terminal - #9112
Merged
Merged
Conversation
📝 WalkthroughWalkthroughAdds DEBUG-only regression coverage for selecting and restoring focus to a bottom Dock terminal, verifying that the Dock focus state and window first responder remain associated with the selected terminal surface. ChangesDock focus regression
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 24 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (24 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@cmuxTests/DockTerminalPointerFocusTests.swift`:
- Line 215: Update the test setup before the Dock interaction to initialize and
mount the synchronous main-tree terminal, capture its workspace and panel IDs,
and make its surface first responder. Invoke
noteMainPanelKeyboardFocusIntent(workspaceId:panelId:in:) with those captured
IDs before calling dock.noteKeyboardFocusIntent(window:), mirroring the setup
used in the existing Lines 89-126 flow.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 8eadb13d-4756-4881-956b-45446bf1871d
📒 Files selected for processing (1)
cmuxTests/DockTerminalPointerFocusTests.swift
3 of 6 tasks
This was referenced Aug 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Testing
Closes #9097
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes Dock paste routing so keyboard input always goes to the selected terminal pane. The AppKit first responder now follows Dock selection and is restored to the selected pane after transient focus (e.g., window becomes key) changes.
focusedPaneIdinfocusFirstControl()so Dock selection focuses the intended terminal, not the first pane.Written for commit 42345ff. Summary will update on new commits.
Summary by CodeRabbit