Skip to content

fix(app): restore top edge dragging with vertical tabs - #48619

Closed
tianhaotian wants to merge 1 commit into
anomalyco:devfrom
tianhaotian:vertical-drag
Closed

tianhaotian wants to merge 1 commit into
anomalyco:devfrom
tianhaotian:vertical-drag

Conversation

@tianhaotian

@tianhaotian tianhaotian commented Sep 12, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #48422

Rebased onto current dev (b474b842595c) on 2026-10-14. The main shell still lacks this drag region; the linked issue remains open.

Type of change

  • Bug fix

What does this PR do?

Vertical tabs hide the macOS titlebar, leaving the empty top edge above the main content without a drag region. Cover the existing 8px shell inset with a native drag region for desktop macOS windows using vertical tabs outside fullscreen. The layout stays unchanged, and the shared CSS disables dragging when a modal hides the root.

How did you verify your code works?

  • bun run test in packages/app: 749 unit tests and 173 browser-condition tests passed on the rebased head (2026-10-14).
  • Root bun run check passed lint and all 36 typecheck tasks. Prettier and git diff --check passed.
  • Original validation with real App components in an isolated Electron 42.10.1 window (not repeated for this behavior-preserving rebase): the top region changes from none to drag, measures 1000×8px, and leaves the content below unchanged. Checked horizontal tabs, other platforms, fullscreen, and the modal visibility guard.
  • Physical window movement remains unverified: native mouse automation repeatedly returned noWindowsAvailable. Please manually drag the empty top edge on macOS with vertical tabs to confirm.

Screenshots / recordings

Before and after show the unchanged layout; the change is the top edge's native hit region.

Before After
Before After

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@tianhaotian

Copy link
Copy Markdown
Author

Rebased onto current v2 (0621ea9); updated head: bd9b926.

Resolved the shell conflict while preserving upstream's current Titlebar API and the macOS vertical-tabs drag region.

Validation: root bun run check passed (lint and 36 type-check tasks). Native macOS window dragging still needs an interactive desktop check; this update does not claim that manual validation.

@thdxr
thdxr changed the base branch from v2 to dev October 10, 2026 19:07
@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Desktop v2 beta: window is undraggable with "Tabs: Vertical" (only the sidebar clearance strip works)

1 participant