You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
⌘Z shows the widget it took an answer back from when a closed disclosure hides it #7396
backlogAn item on Leaf's prioritised backlog (TODO.md says how to query it)etcBacklog priority: waits for the trigger it statesuxTheme: what the user reads and does on a page
After ⌘Z takes back an answer to a widget the user has since hidden in a closed disclosure, the disclosure stays shut. The answer is withdrawn and the notice names it, but the widget it changed stays out of sight, so the user can't see what came back, and the tint lands on a node nobody can see.
To reproduce (Chromium and Firefox, main at 338b74d): open a disclosure, answer the options inside it, close the disclosure, press ⌘Z. The disclosure stays closed and focus stays on its summary. This happens with the disclosure on the page and inside an agent's message.
Cause, confirmed for the page case: a node inside a closed <details> keeps a laid-out box, since the platform hides the disclosure's content with content-visibility: hidden. The widget measured 1424 × 182 px at its place, with checkVisibility() false. Undo's seen (browser/runtime/records/undo.js) reads only that box, so the press counts the widget as in view and never runs show(), the route whose arrival opens what hides an element.
A likely fix, not tried: seen also asks checkVisibility(), so the press reveals the widget on the page. In a message, show() opens the message rather than the widget, so that route would also need to arrive at the element after opening the message, as openThreadSubject in browser/runtime/records/thread/destination.js does.
This path is rare: the user answers, closes the disclosure themselves, then undoes. A redesign of how undo places the user, one proposed in the undo.js header, would replace this check rather than patch it.
This was written by Claude Code on behalf of max-sixty
backlogAn item on Leaf's prioritised backlog (TODO.md says how to query it)etcBacklog priority: waits for the trigger it statesuxTheme: what the user reads and does on a page
Activity
Name the simpler undo placement in undo.js's header (#7398)