fix(desktop): enable context menus in the browser - #10670
Conversation
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. |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — The production change is localized to Electron’s existing context-menu path, extending it to embedded browser guests and popups while preserving action targeting and adding lifecycle guards. Optional frame plumbing is backward-compatible, and focused tests cover registration, targeting, duplicate attachment, and closed contents. Notes:
You can add or adjust custom eligibility rules. Learn more. |
There was a problem hiding this comment.
All clear
Posted via Macroscope — Effect Service Conventions
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Limit details: You’ve used all 10 included reviews currently available. 📝 WalkthroughWalkthroughDesktopWindow now installs native context menus for the host renderer, embedded browser guests, and popup windows. Menus focus the triggering contents, guard destroyed contents, preserve edit and copy actions, and forward popup frame context. ChangesNative context-menu support
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to Native context menus now work in embedded browser tabs and sign-in popups, with actions targeted to the originating content and safeguards for closed tabs. The covered behavior is ready to merge. Sequence Diagram(s)sequenceDiagram
participant WebContents
participant DesktopWindow
participant ElectronMenu
participant NativeMenu
WebContents->>DesktopWindow: emit context-menu event
DesktopWindow->>WebContents: focus triggering contents
DesktopWindow->>ElectronMenu: create menu with frame
ElectronMenu->>NativeMenu: open popup
NativeMenu->>WebContents: execute edit or copy action
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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. |
Dismissing prior approval to re-evaluate 63094c6
## What's Changed * fix(web): open proactive panels when entering threads by @maria-rcks in pingdotgg/t3code#10610 * fix(native): wait for the KDE feedback test listener by @juliusmarminge in pingdotgg/t3code#10645 * fix(desktop): resolve local media linked from remote threads by @maria-rcks in pingdotgg/t3code#10619 * fix(web): add bottom padding to project actions header by @flamboh in pingdotgg/t3code#10634 * fix(web): update machines together in auto balance by @maria-rcks in pingdotgg/t3code#10596 * fix(preview): transfer recordings to the agent environment by @maria-rcks in pingdotgg/t3code#10572 * fix(web): navigate markdown images as galleries by @maria-rcks in pingdotgg/t3code#10625 * chore: upgrade to TypeScript 7.0.2 by @juliusmarminge in pingdotgg/t3code#10663 * fix: hide email-bearing account labels in usage limits by @juliusmarminge in pingdotgg/t3code#10668 * fix(web): keep scroll-to-end button close to composer by @Bil0000 in pingdotgg/t3code#10543 * chore(deps): upgrade Effect to rc.112 and Alchemy to beta.76 by @juliusmarminge in pingdotgg/t3code#10652 * chore(refs): sync Effect reference to rc.112 by @juliusmarminge in pingdotgg/t3code#10653 * chore(refs): sync Alchemy reference to beta.76 by @juliusmarminge in pingdotgg/t3code#10654 * fix: generate thread titles with the selected model across connections by @Bil0000 in pingdotgg/t3code#10526 * fix(desktop): enable context menus in the browser by @juliusmarminge in pingdotgg/t3code#10670 * fix(desktop): stop generating declarations during bundling by @juliusmarminge in pingdotgg/t3code#10679 * fix(desktop): restore layout control hit targets by @juliusmarminge in pingdotgg/t3code#10673 **Full Changelog**: pingdotgg/t3code@v0.0.41-nightly.20260908.1377...v0.0.41-nightly.20260908.1387 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.0.41-nightly.20260908.1387
Right-clicking inside an embedded browser tab or sign-in popup showed no native context menu. The menu handler was only installed on T3's main renderer.
Reuse that handler for attached browser contents and their popups. Editing actions focus the page that was clicked, spelling and image actions use its contents, and Electron receives the originating frame. Repeated attachment does not install duplicate handlers, and callbacks tolerate a closed browser tab.
Validation:
CleanShot.2026-09-07.at.21.34.15.mp4
Note
Enable context menus for host and guest contents in
DesktopWindowWeakSet.WebFrameMaintoElectronMenufor native popup calls.Macroscope summarized 267907e.
Summary by CodeRabbit
New Features
Bug Fixes
Model: GPT-6. Harness: Codex.
Closes discussions