Skip to content

⌘Z shows the widget it took an answer back from when a closed disclosure hides it #7396

Backlog

Description

@max-sixty

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

Activity

  1. added
    backlog
    etc
    ux
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogetcux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions