Repository navigation
Conversation
egdev6
left a comment
There was a problem hiding this comment.
@ludevdot thanks, this is a clean, well-scoped fix, and the native macOS reproduction (before ~0.5 s 3/3, after ~8 s 3/3, focus kept by the active app) is exactly what we asked for in #309.
What looks good:
beginShortcut()+awaitingEntryindetail-presence.tsis the right mechanism: outside samples are ignored only until the first entry, then the ordinary rules apply.- The sampling effect only calls
reset()when there is noproviderId, so it does not undo the shortcut state. beginShortcut()runs after thepanel.anchoredguard, so a pinned detail stays untouched, and no focus is requested.- Test-first evidence and the 7 new integration cases cover lifetime, both surfaces, native exit and repeated shortcut.
One change needed before merge:
In applyHover (src/Widget.tsx), if (event.kind === 'enter') presenceRef.cursor(event.surface, true); runs for every hover on every OS, not only during the shortcut grace. On Windows and Linux the native tracker was unused (the sampling effect returns early outside macOS). It now receives DOM entries but never DOM leaves, so inside stays true from then on and the first entry calls cancelClose. I don't see a visible bug, but it changes ordinary hover state on platforms this PR did not validate, and the PR states that ordinary hover is preserved. #278 will build on this presence model, so it is worth not leaving stale state there.
Please scope the forwarding to the grace window, for example only while awaitingEntry is active (or only on macOS), and add a test showing that ordinary hover outside the shortcut grace leaves the presence tracker unchanged.
With that, this is ready to merge once macOS CI is green.
|
@egdev6 Thanks for catching the ordinary-hover tracker state. Addressed in eb4704d, with the generated inventory refreshed separately in 2628928.
Validation: 1,258 Vitest tests and 329 Node tests passed, along with typecheck, |
Related issue
Refs #309
ODD: not applicable; focused bug fix under the approved issue scope.
Scope
Preserve the existing eight-second lifetime of a shortcut-opened detail while the pointer has never entered either the widget or the detail. The first DOM or native entry ends that initial exception: remaining inside holds the detail open, and leaving both surfaces restores the normal close delay. Native cursor sampling still recovers missed DOM leave events.
Preserve ordinary hover, click pinning, the already-pinned shortcut guard, focus handling, highest-usage provider selection and repeated-shortcut behavior. No explicit focus requests were added.
Exclusions: #278, a shortcut pin toggle, global Escape/outside-click handling, and a presence-model redesign.
src/Widget.tsxsrc/lib/detail-presence.tssrc/lib/auto-hide.test.tsdocs/i18n-inventory.mdCoordination
ODD-specific checklist: N/A.
Contributor: @ludevdot
Acceptance and validation
Criteria satisfied
Automated checks actually run
npm test: passed, 1,248 Vitest tests and 329 Node tests.npm run typecheck: passed.npx biome ci: passed, 231 files; 224 warnings and 31 informational diagnostics, no fixes applied.cargo fmt --manifest-path src-tauri/Cargo.toml --check: passed; the installed pre-push hook additionally runs the repository's--all -- --checkcommand.node scripts/i18n-inventory.mjs --check: passed after the generated hash refresh.npm run app:build:mac -- --debug --no-bundle: passed; produced a native debug executable. An unused-variable warning in unchangedsrc/providers/nan.rsremains.git diff --check: passed.Controlled native macOS validation
Environment: macOS 26.7.1 (25G241), arm64, MacBook Air M4 with its single integrated display; widget at the right edge, vertically centered; shortcut Option+Control+I.
Before: installed Quorb v0.9.1 (exact installed build identifier unavailable), detail initially closed/unpinned and pointer stationary outside both surfaces. One shortcut opened the detail and it disappeared after approximately 0.5 seconds in 3/3 attempts. The previously active application retained focus.
After: local native debug build from the implementation commit, without installing a bundle:
All native durations above are manual approximations, not frame-count measurements. The precise 280 ms close boundary and missed-DOM-event fallback are covered by deterministic tests; ordinary native pointer movement does not prove that a DOM event was missed.
Checks not run and remaining limitations
An open PR does not mean integration. Release, secrets and signing operations require separate authorization.