Repository navigation
feat(desktop): close and reopen focused browser tabs with shortcuts - #4836
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
Warden review summary — ClearNative findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (240334 ms), confidentiality-review (254796 ms), desktop-den-sync-review (313194 ms). Blockers
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (0e26d4e61f10cd805880dd9c072a87ebee4afe21). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run
Problem
Cmd+W currently closes the OpenWork window even when a built-in browser page has focus. Closing a page also leaves no way to reopen it from the keyboard.
Change
Existing suspended-tab behavior and native Close outside browser focus are unchanged.
Verification
Verdict: Incomplete — native runtime evidence is not yet available.
Candidate
0e26d4e61f10cd805880dd9c072a87ebee4afe21is rebased ontodev@3f783066f9fa25f020a6cb1972d9c8ac3b9a1aec.Passed on this head:
node --import ../browser-tab-shortcuts-test-resolver.mjs --test --test-reporter=dot apps/desktop/electron/browser-panel.test.mjs apps/desktop/electron/browser-shortcut-focus.test.mjs— exit 0; 79 passed, 0 failed, 0 skipped. The local resolver supplies this candidate's real browser-tabs module and an installed AJV dependency; Electron itself is a test double. In a normally installed workspace, omit the--importoption.node --checkforbrowser-panel.mjs,main.mjs,app-menu.mjs, andpreload.mjs— exit 0.git diff --check origin/dev...HEAD— exit 0.Not run: native macOS/Windows/Linux runtime verification, package build, and whole-app typechecks. The covering journey is
evals/specs/browser-tabs-owned-by-thread.e2e.test.ts; its native shortcut assertion and exact-head runtime evidence remain missing. Target-scoped CDP key dispatch has not been counted as proof of Electron focus and accelerator ordering.Native verification should check webpage and toolbar focus, closing the last tab then reopening, W while the reopened page loads, inactive tab-button focus, unchanged neighboring conversation pages, and ordinary conversation cycling from the composer.
Related work
#4111 (WebMCP) and #4328 (browser allowlist) overlap browser lifecycle files but do not implement these shortcuts. This change uses current dev's WebMCP lifecycle, policy enforcement, suspension, and zoom handling rather than restoring either older branch's implementation.