Repository navigation
fix(ui): anchor the thread branches menu to its trigger button - #115352
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 28, 2026 18:03
Contributor
Author
|
Merged via squash.
|
vincentkoc
added a commit
to christian-lallo/openclaw
that referenced
this pull request
Jul 28, 2026
* origin/main: (61 commits) perf(ui): debounce event-driven session list refreshes and right-size child paging (openclaw#115374) feat(talk): support GPT-Live realtime voice over ChatGPT OAuth (openclaw#115226) feat(system-agent): guide gateway configuration in Ask OpenClaw (openclaw#115363) fix(agents): make overflow recovery append-only via branch-and-reappend (openclaw#115271) (openclaw#115310) fix(macos): bound websocket ping so a dropped pong cannot orphan its continuation (openclaw#115362) fix(codex): isolate native hook relay startup (openclaw#115078) fix(ci): stop reviving superseded pull request workflows (openclaw#115378) feat(openshell): add workspace selection (openclaw#114952) fix(skills): persist workshop apply reason; correct Skill Workshop docs (openclaw#114471) fix: agent stops replying when a session transcript has no header row (openclaw#115080) perf(usage): stale-while-revalidate caches for usage.status and sessions.usage (openclaw#115369) fix(discord): reject invalid UTF-8 probe responses (openclaw#111734) feat(gateway): add memory.search operator method (openclaw#115346) fix(android): keep welcome action reachable with large text (openclaw#111747) fix(gateway): validate doctor memory agent ids (openclaw#115365) refactor: harden shell completion and shard Control UI E2E (openclaw#115332) fix(ui): anchor the thread branches menu to its trigger button (openclaw#115352) perf(sessions): incremental snapshot revalidation and shallow list projections (openclaw#115359) refactor(sessions): consolidate entry state (openclaw#115299) feat(ui): swap three plain Lobsterdex palettes for balloon, ascii, and portal (openclaw#115308) ...
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
In the macOS app (and any Control UI host), opening the thread-branches menu in the chat pane header renders the menu pinned to the window's top-left corner — overlapping the Mac traffic lights — instead of dropping down from its trigger button.
Root cause:
wa-dropdownresolves its popup anchor as the first element assigned to thetriggerslot (wa-popuphandleAnchorChange→assignedElements()[0]). The branches menu passed<openclaw-tooltip slot="trigger">, and the tooltip host isdisplay: contents, which reports a zero-size rect at (0,0). Floating positioning then anchors the menu to the viewport origin.Why This Change Was Made
Restructure the branches menu to the shape every other tooltip-wrapped dropdown in the codebase already uses (e.g.
chat-sidebar-editor-menu.ts): theopenclaw-tooltipwraps the wholewa-dropdown, and the plain<button>carriesslot="trigger". The popup now anchors to a real box, and the disabled-reason tooltip still shows (listeners attach to the dropdown host, so it works even while the button is disabled).User Impact
The thread-branches dropdown opens attached to its git-branch button in the chat header instead of the top-left corner of the window. Tooltip behavior ("Thread branches" / branch-switch-disabled reason) is unchanged.
Evidence
node scripts/run-vitest.mjs ui/src/pages/chat/components/chat-pane-header.test.ts— 25/25 pass, including a new regression assertion that the slotted trigger is the button itself (adisplay: contentswrapper would zero the anchor rect again).node scripts/check-changed.mjs— delegated Testbox run green (0 warnings, 0 errors).gpt-5.6-sol, xhigh) clean: "patch is correct (0.99)".