Skip to content

Context menu from a background right-click closes before its items can be pressed #227

Closed

Description

@iamnbutler

Seen 2026-10-29 with Desktop Tools 0.18.0 on macOS 27 (Darwin 27.0.0), driving Build Dev (a SwiftUI/AppKit app, iamnbutler/build) in the background while testing its thread sidebar, a SwiftUI List with Set selection.

Observed: a background right-click (kind: "right") on a list row returned completed, and the row's .contextMenu opened, but it had closed by the next desktop_inspect, so none of its items could be pressed. The menu seems to close when the app stays inactive or focus goes back to the frontmost app.

Expected: a way to open a context menu and press one of its items in one step, like desktop_menu does for the menu bar, for example desktop_click with kind: "right" plus a menu_path. Or, failing that, say in the result that the menu closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions