Skip to content

fix(core): reserve space for Windows controls after config unlock - #11996

Open
zhangkom wants to merge 1 commit into
Eugeny:masterfrom
zhangkom:codex/honor-window-controls-overlay
Open

zhangkom wants to merge 1 commit into
Eugeny:masterfrom
zhangkom:codex/honor-window-controls-overlay

Conversation

@zhangkom

@zhangkom zhangkom commented Dec 2, 2026 •

Copy link
Copy Markdown

Description

Fixes #11539.

On Windows, Tabby can create a window before it can read the native-frame preference in an encrypted configuration. Electron then draws its minimize, maximize, and close buttons over the page. After unlock, the renderer used the native-frame layout and put toolbar actions underneath those buttons.

When the preference is native, the renderer now checks whether the running Windows window actually has a visible controls overlay. In that case it reserves the existing thin-frame space and drag region. Side and bottom tab layouts use their existing title bar.

I tested the affected Angular template bindings and component logic in Windows Electron 43.7.0 BrowserWindows using the project's startup frame selection, synthetic configuration, and an isolated profile. In a 900-pixel window the overlay began at x=763. Before the change the toolbar button extended to x=900 and the spacer was 0 pixels. After the change its right edge was x=762, the spacer was 138 pixels, and the drag region was active. Eight comparisons covered encrypted and plain configurations, native/thin/full frames, and top/side/bottom tabs. The fixture exercised the persisted configuration shape with a stand-in vault. It did not automate the unlock dialog.

All 95 unit tests and 31 SSH tests passed. Repository lint, the core TypeScript check, and declaration builds for all bundled plugins passed. The core webpack build completed on both the base and this branch with the same 42 warning headings.

AI Usage

  • Fully vibe coded
  • AI-designed, AI-coded, manually checked
  • Human-designed, AI-coded
  • Human-designed, human-coded (includes AI autocompletions and boilerplate gen)

Codex prepared the change and ran the verification.

This branch has not been deployed

No deployments
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.

Windows: native window controls overlap the tab bar when config encryption is enabled

1 participant