Context
#18759 / PR #18765 introduced the submenu rest for the pointer, and its docblocks described exactly that. #18780 / PR #18783 then made keyboard focus rest the same way: arrowing onto a parent item starts the same timer, reads the same two configs, and previews the same submenu. The docblocks were not widened with it. @neo-opus-vega noticed cancelRest()'s summary while reviewing #18796 (PRR_kwDODSospM8AAAABN1cAkA). A read of src/menu/List.mjs at 5d375d9722 finds five docblocks with the same gap, two of them public config docs.
The Problem
A consumer reading showSubMenuOnHover learns that a resting pointer shows a submenu. Nothing tells them that arrowing onto a parent previews its submenu too, or that subMenuHoverDelay times both. The protected members describe half of their callers. That is the shape of the #18795 regression: the rest gained a second initiator while its descriptions stayed with the first, so nobody asked what ends a focus rest.
The Architectural Reality
docblock (src/menu/List.mjs at 5d375d9722) |
says |
code |
showSubMenuOnHover config (:123) |
shows a submenu "once the pointer rests on it" |
startRest() (:370) reads it, called from onFocusMove() (:686) and onItemMouseEnter() (:719) |
subMenuHoverDelay config (:147) |
"How long, in ms, the pointer must rest" |
the same timer for both callers |
restTimeoutId member (:185) |
"a pointer rest still pending" |
set by startRest() for both |
cancelRest() (:354) |
"Drops the pointer rest still pending" |
bound to mouseleave (:211), and called by startRest() (:374) and showSubMenu() (:902) for either kind |
onItemRest() (:723) |
"the item the pointer rests on" |
fired by either rest (:380, :383) |
Already accurate: startRest()'s summary (:363) names both inputs, and onItemMouseEnter() (:713) is the pointer path only.
The Fix
Reword the five docblocks so a rest is started by the pointer or by keyboard focus. The two config docs name keyboard focus explicitly, because they are what a consumer reads. Comment lines only.
Acceptance Criteria
Out of Scope
- Renaming
showSubMenuOnHover or subMenuHoverDelay to input-neutral names: a public config change with its own migration cost.
- Rest behaviour itself (#18780, #18795 decided it).
Related
#18759 / PR #18765 · #18780 / PR #18783 · #18795 / PR #18796
Live latest-open sweep: checked the latest 20 open issues at 2026-09-16T13:42:24Z; no equivalent. A2A claim sweep: latest 30 inbox messages, all read states; no claim on menu.List docs. Memory Core rationale sweep: query_raw_memories on the symptom; hits are the #18758–#18760 and #18795 lanes, no decision on this wording. Own-assignment sweep: 5 open, none on menu. Structure-map gate: N/A.
Decision Record impact: none.
Origin Session ID: 0f5a0db0-9f3a-402c-bb4a-aa369ff1efa3
Context
#18759 / PR #18765 introduced the submenu rest for the pointer, and its docblocks described exactly that. #18780 / PR #18783 then made keyboard focus rest the same way: arrowing onto a parent item starts the same timer, reads the same two configs, and previews the same submenu. The docblocks were not widened with it. @neo-opus-vega noticed
cancelRest()'s summary while reviewing #18796 (PRR_kwDODSospM8AAAABN1cAkA). A read ofsrc/menu/List.mjsat5d375d9722finds five docblocks with the same gap, two of them public config docs.The Problem
A consumer reading
showSubMenuOnHoverlearns that a resting pointer shows a submenu. Nothing tells them that arrowing onto a parent previews its submenu too, or thatsubMenuHoverDelaytimes both. The protected members describe half of their callers. That is the shape of the #18795 regression: the rest gained a second initiator while its descriptions stayed with the first, so nobody asked what ends a focus rest.The Architectural Reality
src/menu/List.mjsat5d375d9722)showSubMenuOnHoverconfig (:123)startRest()(:370) reads it, called fromonFocusMove()(:686) andonItemMouseEnter()(:719)subMenuHoverDelayconfig (:147)restTimeoutIdmember (:185)startRest()for bothcancelRest()(:354)mouseleave(:211), and called bystartRest()(:374) andshowSubMenu()(:902) for either kindonItemRest()(:723)Already accurate:
startRest()'s summary (:363) names both inputs, andonItemMouseEnter()(:713) is the pointer path only.The Fix
Reword the five docblocks so a rest is started by the pointer or by keyboard focus. The two config docs name keyboard focus explicitly, because they are what a consumer reads. Comment lines only.
Acceptance Criteria
showSubMenuOnHoverandsubMenuHoverDelaysay so in their own text.Out of Scope
showSubMenuOnHoverorsubMenuHoverDelayto input-neutral names: a public config change with its own migration cost.Related
#18759 / PR #18765 · #18780 / PR #18783 · #18795 / PR #18796
Live latest-open sweep: checked the latest 20 open issues at 2026-09-16T13:42:24Z; no equivalent. A2A claim sweep: latest 30 inbox messages, all read states; no claim on
menu.Listdocs. Memory Core rationale sweep:query_raw_memorieson the symptom; hits are the #18758–#18760 and #18795 lanes, no decision on this wording. Own-assignment sweep: 5 open, none onmenu. Structure-map gate: N/A.Decision Record impact: none.
Origin Session ID: 0f5a0db0-9f3a-402c-bb4a-aa369ff1efa3