Repository navigation
Fix browser paste routing with terminal text box beta (#6380) - #16560
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 seconds. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
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 |
|
All contributors have signed the CLA ✍️ ✅ |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
There was a problem hiding this comment.
1 issue found and verified against the latest diff
You’re at about 90% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="cmuxTests/AppDelegateShortcutRoutingTests.swift">
<violation number="1" location="cmuxTests/AppDelegateShortcutRoutingTests.swift:6062">
P1: This test asserts Cmd+V is routed browser-first, but the routing policy has no paste case. `BrowserDocumentEditingCommandEquivalent` (Sources/App/ShortcutRoutingSupport.swift) covers only copy, cut, selectAll, italic, and `git diff pr-base HEAD --stat` shows this PR changes only the test file — the PR description's claimed production change is absent. `shouldRouteBrowserDocumentEditingCommandEquivalentThroughWebContentFirst` returns false for Cmd+V (no matching case), so `XCTAssertTrue` fails and issue #6380 is unfixed. Add the production change (e.g., a `.paste` case with key "v", keyCode 9, mirroring `.copy`) in the same PR; if this is intended as a red-test-first commit, the follow-up fix is not part of this PR.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| ) | ||
|
|
||
| XCTAssertTrue( | ||
| shouldRouteBrowserDocumentEditingCommandEquivalentThroughWebContentFirst(event), |
There was a problem hiding this comment.
P1: This test asserts Cmd+V is routed browser-first, but the routing policy has no paste case. BrowserDocumentEditingCommandEquivalent (Sources/App/ShortcutRoutingSupport.swift) covers only copy, cut, selectAll, italic, and git diff pr-base HEAD --stat shows this PR changes only the test file — the PR description's claimed production change is absent. shouldRouteBrowserDocumentEditingCommandEquivalentThroughWebContentFirst returns false for Cmd+V (no matching case), so XCTAssertTrue fails and issue #6380 is unfixed. Add the production change (e.g., a .paste case with key "v", keyCode 9, mirroring .copy) in the same PR; if this is intended as a red-test-first commit, the follow-up fix is not part of this PR.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At cmuxTests/AppDelegateShortcutRoutingTests.swift, line 6062:
<comment>This test asserts Cmd+V is routed browser-first, but the routing policy has no paste case. `BrowserDocumentEditingCommandEquivalent` (Sources/App/ShortcutRoutingSupport.swift) covers only copy, cut, selectAll, italic, and `git diff pr-base HEAD --stat` shows this PR changes only the test file — the PR description's claimed production change is absent. `shouldRouteBrowserDocumentEditingCommandEquivalentThroughWebContentFirst` returns false for Cmd+V (no matching case), so `XCTAssertTrue` fails and issue #6380 is unfixed. Add the production change (e.g., a `.paste` case with key "v", keyCode 9, mirroring `.copy`) in the same PR; if this is intended as a red-test-first commit, the follow-up fix is not part of this PR.</comment>
<file context>
@@ -6048,6 +6048,22 @@ final class AppDelegateShortcutRoutingTests: XCTestCase {
+ )
+
+ XCTAssertTrue(
+ shouldRouteBrowserDocumentEditingCommandEquivalentThroughWebContentFirst(event),
+ "Cmd+V must be routed through web content first while a browser pane is focused"
+ )
</file context>
There was a problem hiding this comment.
1 existing issue remains and no new issues found across 2 files
You’re at about 90% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.
Re-trigger cubic
|
Merge receipt for |
Dogfood tours of
|
0bfd027 test(cloud): fix the Cloud header and moved-panel focus tests that never ran (manaflow-ai#16539) c5c4345 localization: accept numbered placeholders in any order (manaflow-ai#16376) 456edeb fix(settings): replace custom sidebar mockups with real previews (manaflow-ai#16569) 98dc3ab Prototype: cmux Cloud as a remote MCP server (manaflow-ai#16568) 6c22525 test(remote): isolate tmux stale-surface fixture (manaflow-ai#16566) 3ec9918 Re-land "fix(coderouter): initialize Cloud VM account pools (manaflow-ai#16397)" (manaflow-ai#16572) 2b895a5 Fix browser paste routing with terminal text box beta (manaflow-ai#6380) (manaflow-ai#16560) 2bd3455 localization: check Swift defaultValue literals against their catalog en value (manaflow-ai#16396) c43086e test(cli): expect --mark-read to mark every listed inbox message (manaflow-ai#16537) fcda4f0 test(feed): wait for zero-wait Codex permission acceptance before checking attention (manaflow-ai#16536) 7d57a03 fix(remote): evict stale persistent SSH bridge leases (manaflow-ai#16558) d630cb8 docs: add protected-folder diagnostics for tmux sessions (manaflow-ai#12219) 7dceaac test: create cwd fixtures that new terminals now resolve on disk (manaflow-ai#16538) 28cc575 docs: cover surface resume binding CLI contract (manaflow-ai#16473) 5c7dca1 Fix idle zsh PR probes triggering chpwd hooks (manaflow-ai#16553) # Conflicts: # .github/workflows/ci-guards.yml
Focused browser paste routing currently omits Cmd+V from the browser-first document editing allowlist. With the text-box beta enabled, the terminal text box can claim paste before the focused browser pane.
This PR adds a regression test first, then adds Cmd+V to the browser-first routing policy so WebKit receives it before cmux's text-box fallback.
Validation: hosted app-host unit tests cover
AppDelegateShortcutRoutingTests.— Waffle g1 🍂
Run: run_worker_20261002_5ef2bc19
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Fixes browser paste routing so Cmd+V reaches focused web content before the terminal text box can claim it when the text-box beta is enabled.
Written for commit c321854. Summary will update on new commits.