Skip to content

[Bug] Hermes Desktop: right-sidebar file-tree refresh button disappears when cursor moves onto it #45894

Closed

Description

@chatpongs

Description
In the right sidebar's Filesystem panel, the refresh button is revealed when hovering the project label. Because the button relies on peer-hover/project-label but has no self-hover rule, it disappears as soon as the cursor leaves the label and enters the button area, making it impossible to click.

Affected version
Observed on builds after the v0.16.0 release (2026-06-05). The regression was introduced by commit d62979a6f ("feat(desktop): composer status stack, live subagent windows, editable prompts", 2026-06-12) on main. The About panel may still display "0.16.0" in builds from this window because the version label was not bumped after the release tag (see commit 16beab421).

Steps to reproduce

  1. Open Hermes Desktop and load any folder in the right sidebar file tree.
  2. Hover the project label in the Filesystem header — the refresh button appears.
  3. Move the cursor from the label toward the refresh button.
  4. The refresh button vanishes before the click registers.

Expected behavior
The refresh button should remain visible and clickable while the cursor is over it.

Actual behavior
The button disappears when the cursor leaves the project-label hover zone because its visibility is tied only to peer-hover/project-label, not to its own hover state.

Root cause
In apps/desktop/src/app/right-sidebar/index.tsx, commit d62979a6f changed the header reveal from group-hover/project-header to peer-hover/project-label. The new HEADER_ACTION_LABEL_REVEAL constant sets pointer-events-none opacity-0 as the base state and only reveals the refresh button via peer-hover/project-label. Once the cursor enters the button itself, the peer hover is lost, so the button flips back to hidden/non-interactive.

Suggested fix
Add self-hover rules to HEADER_ACTION_LABEL_REVEAL so the refresh button stays visible and interactive while hovered:

-const HEADER_ACTION_LABEL_REVEAL = `${HEADER_ACTION_CLASS} pointer-events-none opacity-0 transition-opacity focus-visible:pointer-events-auto focus-visible:opacity-100 peer-focus-visible/project-label:pointer-events-auto peer-focus-visible/project-label:opacity-100 peer-hover/project-label:pointer-events-auto peer-hover/project-label:opacity-100`
+const HEADER_ACTION_LABEL_REVEAL = `${HEADER_ACTION_CLASS} pointer-events-none opacity-0 transition-opacity hover:pointer-events-auto hover:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100 peer-focus-visible/project-label:pointer-events-auto peer-focus-visible/project-label:opacity-100 peer-hover/project-label:pointer-events-auto peer-hover/project-label:opacity-100`

Related

Activity

  1. added
    type/bugSomething isn't working
    comp/tuiTerminal UI (ui-tui/ + tui_gateway/)
    P3Low — cosmetic, nice to have
    on Jun 14, 2026
  2. chatpongs commented on Jun 29, 2026

    @chatpongs
    Author

    This is fixed as of 9d2ec8d3 (#46244 — merged 2026-06-15, thanks @skyc1e!). The refresh button's reveal is now tied to the whole header via group-hover/project-header + group-focus-within/project-header instead of the buggy peer-hover/project-label, so it stays visible and clickable while moving the cursor from the project label onto the button itself. The regression commit d62979a6 no longer reproduces the issue.

    Rather than the self-hover (hover:) approach suggested above, the maintainer went with the broader header hover-group, which also keeps the button reachable via keyboard focus — a bit more robust.

    Closing as completed. Thanks everyone for the triage and the duplicate reports.

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

    P3Low — cosmetic, nice to havecomp/tuiTerminal UI (ui-tui/ + tui_gateway/)type/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions