Skip to content

fix(native): align minimap tooltip timing and dismissal - #177

Merged
rynfar merged 4 commits into
nativefrom
nw/70-minimap-motion
Nov 3, 2026
Merged

rynfar merged 4 commits into
nativefrom
nw/70-minimap-motion

Conversation

@rynfar

@rynfar rynfar commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Minimap navigation labels can remain visible after a press, and pending hover opens can survive scrolling. This slice of #70 ports their timing and dismissal state into core while keeping TV-MINIMAP partial.

The port follows TimelineMinimap.tsx, ui/tooltip.tsx, and the installed Base UI 1.9.0 hover/focus/dismiss and delay-group rules:

  • Hover waits for 600ms of mouse rest. Mouse entry alone starts no delay; the first mousemove starts it, and even tiny movements restart a cold trigger. A previously active reference ignores sub-threshold jitter while waiting. Unchanged focus cannot bypass re-arming after a press or Escape.
  • Only a new keyboard-visible focus opens a label, instantly. Hover leave closes even if focus remains. Blur uses the close path too, blocking mouse-move reopening until a new pointer entry. Re-entry during that label's own 150ms hover-close transition reverses the fade. Each trigger owns its close deadline, so neighbor blur, opening, dismissal and overlapping fades preserve its re-entry state. Outside presses cancel open/pending roots; reduced motion ends both close fades. The minimap has no TooltipProvider, so a cold neighbor also waits; there is no provider grace period here.
  • Previous/Next arbitrate one open label. Arbitration closes the displaced label and opens the incoming label instantly. Reference presses and Escape close instantly, including held Left, Right and Middle presses. Only Left explicitly focuses the trigger and prevents its default action. The reference-press reason overrides an earlier outside-press capture close. Ordinary hover fades remain finite, use the existing 150ms cubic-bezier easing, and respect reduced motion. No idle animation timer is added.
  • Capture-phase presses survive consuming preview children. Actual transcript list offset changes dismiss unfocused hovered labels. Wheel intent at a boundary does not dismiss. A pending-only Escape cancels warm-up and continues to the thread's other Escape handlers.

Focus is sampled from the window using GPUI's keyboard modality, so opening does not depend on focus-event delivery. Repeated samples preserve dismissal. A reference press latches its acquired focus before dismissing. Both navigation focus states are synchronized before painting either tooltip.

Shared tooltip primitives and their existing callers are unchanged. Snapshot-only --gesture-wait, --pause, and held --press make short interaction sequences reviewable with --motion-frames.

Remaining gaps in #70: smooth jumps through unmeasured rows; one selection spanning both preview paragraphs; arbitration with tooltips elsewhere in the app; dismissal on actual scrolling of descendant scrollers (the transcript list offset is observed, but GPUI has no DOM-like captured scroll event); the safe-polygon trigger-to-popup corridor; exact popup slide/scale transitions. The pinned GPUI exposes no subtree scale transform. Corridor behavior is deliberately left for follow-up.

Validation: failing-first core regressions for cold/warm rest, focused re-arming, pending-only Escape and instant transitions; a failing-first GPUI boundary-wheel regression; GPUI keyboard/pointer focus, held Left/Right/Middle press/capture wiring, retained-hover blur blocking, independent close fades, overlapping transitions, reduced-motion cleanup and actual list-offset observer checks. Native workspace Clippy with warnings denied, all 1,239 workspace tests, snapshot build, theme/parity/conformance checks, and vp run check:changed fork/native pass. Rebased onto native a0a68b0f52, which includes the SSH fixture fix in #181.

Local evidence (factory policy: no uploads), using the copied smoke home and existing thread on 14658:

  • Original before captures, the previous head's images, and preview cross-paragraph selection attempt: /private/tmp/native-factory-2f5f764a/evidence-70-motion/.
  • Prior review fixes and --motion-frames sequences: /private/tmp/native-factory-2f5f764a/evidence-70-motion/review1/.
  • Prior before/after focus and held press, hover rest/grace, and hover close/Escape video: review1/tooltip-review.mp4 (four one-second frame sequences at 8 fps; core tests assert the timing). Left/right: before/after focus, before/after press, rest/grace, hover close/Escape.
  • Instant focus and dismissal: review1/after-focus/00.png, review1/after-held-press/00.png and 07.png, and review1/after-escape/00.png.
  • Rest, reentry and finite fade: review1/warmup/, review1/grace/, review1/hover-close/, and review1/focused-rearm/.
  • Actual scrolling, focus preservation and the remaining selection gap: review1/after-scroll.png, review1/focused-scroll.png, and review1/selection-gap.png. boundary-wheel.png records wheel input without a scroll offset change.
  • Prior blur and Right-press before/after PNGs, motion frames and the two-second blur-and-right.mp4: /private/tmp/native-factory-2f5f764a/evidence-70-motion/review2/. Left/right video columns are before/after; the first second shows blur with retained hover, the second shows Right press. after-blur-reentry.png shows a new entry opening again.
  • Prior review local gates and failing-first regressions: review2/clippy.log, tests.log, build.log, theme.log, parity.log, conformance.log, check-changed.log, failing-first.log, and nonleft-failing-first.log. Middle held press is verified through the GPUI harness.
  • Current cross-trigger before/after PNGs, eight-frame sequences and one-second cross-trigger.mp4: /private/tmp/native-factory-2f5f764a/evidence-70-motion/review3/. Left is before, right is after: focus Previous, hover/leave Next, Tab to the rail, then re-enter Next during its close fade.
  • Current local gate logs and failing-first cross-trigger/overlapping-fade regressions are in review3/ (clippy.log, tests.log, build.log, theme.log, parity.log, conformance.log, check-changed.log, and failing-first-audit.log).
  • Prior failing-first evidence: review1/core-reviewed-failures.log and review1/wheel-failing-first.log, and review1/press-order-failing-first.log.

The prior idle comparison recorded 12 minimap and 12 transcript renders in both this branch and unchanged d7026d2e09; existing owner notifications prevent a whole-window zero-idle measurement. The preceding head’s settled capture records 20 row-owner notifications, 20 minimap renders and 20 transcript renders (review1/settled-counts.json), with no extra minimap-only redraws. Repeated offscreen readback sometimes omits cached transcript glyphs on both builds; minimap labels remain readable.

Unverified: OS reduced motion in a real window, clipboard writes, new streaming turns, actual embedded MCP resize/close, and the nonpersistent side-chat gutter. No turns were sent. No server, contract, provider, web/mobile, or shared tooltip primitive changes.

Built with GPT-6.1 Sol in Codex

@rynfar
rynfar force-pushed the nw/70-minimap-motion branch from fc869bd to 0c38744 Compare November 3, 2026 22:04
@rynfar rynfar changed the title fix(native): dismiss minimap tooltips on scroll and press fix(native): align minimap tooltip timing and dismissal Nov 3, 2026
@rynfar
rynfar force-pushed the nw/70-minimap-motion branch from cf034c0 to 949faa8 Compare November 3, 2026 22:58
@rynfar
rynfar merged commit 6e9ce35 into native Nov 3, 2026
@rynfar rynfar mentioned this pull request Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant