Skip to content

[codex] Fix thread header actions menu drag region#62

Draft
brsbl wants to merge 1 commit into
ymichael:mainfrom
brsbl:codex/fix-thread-header-actions-menu-drag-region
Draft

[codex] Fix thread header actions menu drag region#62
brsbl wants to merge 1 commit into
ymichael:mainfrom
brsbl:codex/fix-thread-header-actions-menu-drag-region

Conversation

@brsbl
Copy link
Copy Markdown

@brsbl brsbl commented Jun 3, 2026

Summary

Fix the thread title/header three-dot actions menu on macOS desktop by keeping the title-area menu trigger out of the frameless-window drag region.

Root Cause

ThreadDetailHeader renders ThreadActionsMenu in the AppPageHeader center/title slot. On macOS desktop, AppPageHeader marks the whole header as app-region: drag, while only the right-side actions slot was marked app-region: no-drag. The title menu therefore lived inside a draggable region, allowing Electron to consume pointer interaction before Radix could open the dropdown. The standard manager timeline path made this especially visible because the menu is the only way to turn that view back off.

Changes

  • Wrap the title-area actionsMenu in MACOS_WINDOW_NO_DRAG_CLASS.
  • Add a ThreadDetailHeader regression test that asserts the title menu is rendered outside the macOS drag region.

Validation

  • pnpm exec turbo run test --filter=@bb/app -- src/views/thread-detail/ThreadDetailHeader.test.tsx
  • pnpm exec turbo run typecheck --filter=@bb/app was attempted, but this checkout currently fails before this patch with Cannot find module '@bb/host-daemon-contract' from packages/server-contract/src/api-types.ts; packages/server-contract/node_modules/@bb is missing that workspace link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant