Repository navigation
Done
Labels
ready-for-agentFully specified, ready for an AFK agent
Description
Parent
What to build
Root cause 1 of #1036, for the left panel and hints. Pressing a History row with the mouse opens that session's story, as Enter already does. A hint whose trigger has left the page closes within one prune tick, instead of staying open in the window's top-left corner.
- The left panel's outside press. The panel's outside-press check decides from the event's path captured at dispatch, not from the pressed element's ancestors read after the row's own handler has redrawn the panel. History rows keep selecting on pointerdown, and nothing stops the event's propagation.
- Hints. An open hint that no trigger on the page names closes. Opening a hint queues a prune, and the prune re-queues itself while any hint is open. The check does not read whether the recorded owner or
openTriggeris connected, sincehint()records each new trigger beforepatch()may keep the older node.
The rules are #1036's, "Implementation Decisions", root cause 1.
Acceptance criteria
- Extend the
mapPanelHistorysnap fixture:- with the real pointer, pressing an ended session's row in History opens its story in the left panel and selects the session, with no
selectof a null id after the press; - the row's hint is opened by hovering before the press, and after the press no hint is open, nor any hint placed outside its trigger's box.
- with the real pointer, pressing an ended session's row in History opens its story in the left panel and selects the session, with no
- A press outside the left panel still closes it. The existing
pressClosesPaneltable inui/tests/map.test.mjsstays green. -
ui/tests/hint-redraw.test.mjsgains rows:- an open listener-path hint whose trigger is removed, with no further
hint()call, closes within one prune tick; - an open hint whose trigger
patch()kept across a redraw stays open; - a trigger set aside and put back keeps its hint node.
- an open listener-path hint whose trigger is removed, with no further
-
docs/studio/behaviour/sessions.md:- History rows open a session's story by mouse and by keyboard alike;
- a hint closes when no trigger on the page names it.
-
npm run checkpasses, andnpm run snap -- mapPanelHistory <out.png>passes locally.snap.ymlskips the draft integration PR.
Reading
- Studio: four root causes behind nine QA bugs (press, hints, focus, failures, Esc, top bar, untrusted text) #1036, "Implementation Decisions", root cause 1: the two rules and why the owner check is rejected (critic finding 1, answered in
local-evidence/2026-12-01-qa-root-causes/reports/critic.md). local-evidence/2026-12-01-qa-root-causes/reports/qa-report.md, H2 and L1: the repro, the stack traces and the stranded hint's position.- Map view, the left panel: the light dismiss that Studio: a press outside the left panel closes it #995 added. Its doc line is Docs: the Map view describes #1036's fixes #1050's.
Touches
- Files:
ui/panel.ts,ui/dom.ts,ui/tests/hint-redraw.test.mjs,scripts/snap/fixtures-panel.ts,docs/studio/behaviour/sessions.md - Session: auto mode
- Route: strong · effort high — risky UI: the panel's pointerdown handler across a redraw, and the hint prune's open state across redraws
Metadata
Metadata
Assignees
Labels
ready-for-agentFully specified, ready for an AFK agent
Activity
Studio: a History row opens by mouse, and a hint closes when its trig…
Merge issue-1044-history-press-hints into issue-1036-qa-root-causes (#…
Studio: the final review's fixes to the four root causes (#1036)
danielrispler commentedon Dec 1, 2026
Implemented on the integration branch, PR #1051.
Route outcome: strong·high claude/opus → pass | 13m
Studio: four root causes behind nine QA bugs (#1036) (#1051)
Merge main (#1036's QA fixes) into the UI consistency branch (#1035)