Skip to content

fix(desktop): correct macos title bars and drag regions - #18

Merged
nixuuu merged 1 commit into
devfrom
fix/macos-title-bar
Nov 3, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/macos-title-bar

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 3, 2026

Copy link
Copy Markdown
Member

Fixes the macOS window chrome (hiddenInset title bar) found by the Mac Studio diagnoses.

  • Drag regions are only the header strips and the controls inside them. Dialogs, popovers, toasts and animated content no longer get any app-region (Settings body regions 148 → 0), so layout animations stop sending a draggable-regions IPC every frame (the measured cause of extra main/renderer/GPU work in Electron vs Brave).
  • Page headers drag across their full width in every state (sidebar expanded/collapsed, threads, bots list, bot chat + Bot details, settings, drawer); all top strips share 48 px.
  • Only the topmost modal's strip drags (data-window-modal-top from showModal order); popovers/toasts suspend strips; drawer regions no longer cancel each other.
  • Traffic-light clearance is zoom-independent (80px / zoom from main via a validated preload bridge) and removed in full screen; the gateway banner and toasts sit below the native controls.
  • docs/desktop.md updated.

Verified on Linux Chromium 156 with data-canopy-platform=darwin (computed region maps before/after, light/dark, desktop/phone); check:tmp 668 pass / 0 fail, typecheck, gen:check, web build.
Needs confirmation on macOS hardware: native drag/hitboxes, zoom gestures, full screen, and the draggable-regions IPC rate.

@nixuuu
nixuuu force-pushed the fix/macos-title-bar branch from 03ccfda to 6203790 Compare November 3, 2026 16:12
@nixuuu
nixuuu merged commit e1b7070 into dev Nov 3, 2026
2 checks passed
@nixuuu
nixuuu deleted the fix/macos-title-bar branch November 3, 2026 16:17
nixuuu added a commit that referenced this pull request Nov 3, 2026
Lay out overlay panels inside a shared macOS window safe area
(`--window-safe-top` = title strip / zoom on windowed macOS, 0 in full
screen, in the browser and on mobile) so Settings, nested dialogs,
narrow-window sheets, drawers, the command palette and the lightbox
start below the traffic lights at every window zoom. The same boundary
applies to floating collision positioning (popovers, menus, hover cards,
tooltips), toasts, the update banner and the quit-guard layer. Backdrops
still cover the whole window. Removes the Settings internal spacer from
#18 while preserving topmost-modal dragging. Only the sidebar may sit
under the traffic lights.

Checked in Chromium with the darwin platform at zoom 1/0.8, full screen
on/off, light/dark, wide/narrow: no overlay intersects the traffic-light
rectangle; non-macOS rendering unchanged. check:tmp 696 pass / 0 fail.
Needs a real Mac check (native zoom, full-screen transitions, dragging).
nixuuu added a commit that referenced this pull request Nov 4, 2026
Releases no longer need a human: a scheduled workflow promotes soaked
changes.

**Schedule:** every 3 h (`0 */3 * * *`), first next → main, then dev →
next, inside the `release-branch-mutations` concurrency group. Promotion
stays fast-forward only: a continuous prefix of the source branch up to
a cutoff commit C, never backwards, never forced; Release is dispatched
on the target with `expected_sha`.

**Cutoff**
1. Soak: dev → next takes the newest commit on dev for ≥ 24 h; next →
main takes the newest published beta that has been complete for ≥ 72 h
(an older beta stays a candidate while a newer one soaks).
2. Follow-up fixes: a `fix`/`perf`/revert that landed after C and
corrects something in (target, C] holds that change and everything after
it, iterating to a fixpoint. Fixes already soaked are inside the prefix
and ship with their feature.
- Explicit links win: `Fixes: #68`, `Refs: #68` / `Refs: <sha>`,
`follow-up to #68`, the PR template line, standard reverts, GitHub
closing keywords.
- Otherwise line-level attribution (SZZ): `git diff -w -U0 F^ F` gives
the pre-image lines the fix changes, `git blame -w -M -C` (honouring
`.git-blame-ignore-revs`) gives the commits that introduced them; pure
additions use unambiguous adjacent lines. Shared/generated paths are
excluded; 7-day upper bound. Owners already released don't hold
anything.
3. Readiness: a successful Release run for exactly C (prefer a published
nightly), no open `release-blocker`, docs-only / no-version ranges are a
no-op.

**Controls:** repo variable `AUTO_PROMOTION=off` pauses it; label
`promotion-hold` on a merged PR holds it and everything after;
`release-blocker` blocks both paths; manual **Promote** uses the same
selector with a default dry-run and explicit overrides (never skipping
CI, beta, blockers, linked fixes or fast-forward). Job summaries show
C0, C, version, included and held commits with reasons; a history issue
records each promotion; a starvation issue opens when a change has been
held for more than 7 days.

**Manual smoke gates:** `live_smoke`/`update_smoke` stay as dispatch
inputs but no longer gate promotion. They are replaced by green Release
CI (incl. updater tests and the 4-platform binary smoke) plus soak;
stable also requires that verification on the beta. Not covered anymore
by a human: live provider smoke and a full self-update/rollback on a
real installation.

**Convention:** AGENTS.md, docs/contributing.md, docs/release.md and a
new PR template ask for an explicit link in follow-up fixes; commitlint
accepts the footers.

Dry-run on the real history (read-only): nothing to promote yet. #57 is
attributed to #18 by changed lines; with today's state the first beta
would be `0.2.0-beta.1` at #76 in the 2026-11-05 18:00 UTC cycle.

Checks: install, typecheck, lint, format:check, actionlint/shellcheck,
check:tmp (973 pass, 153 skip, 0 fail); promotion tests run against
local git fixtures and a mocked GitHub API.
nixuuu added a commit that referenced this pull request Nov 17, 2026
## Change

Showing an in-app toast disables every desktop title-bar drag region
because the toast has `data-window-no-drag`. Move notifications from the
top centre to the bottom-right and remove that marker, so title bars
stay draggable while a notification is visible.

Use compact cards with theme-aware surfaces, 6 px padding in both axes,
and a dismiss button. Keep existing actions such as `Undo`, notification
lifetimes, and reduced-motion behavior. Long messages wrap, and narrow
screens retain safe-area margins. Update desktop and notification
documentation.

Fixes: #18

## Verification

- Web package typecheck passed (0 errors, 0 warnings).
- Lint and formatting check passed for `Toaster.svelte`; `git diff
--check` passed.
- Checked the final UI in Chromium with sample data: light/dark, desktop
and narrow/phone widths, short and long messages, `Undo`, dismiss, and
reduced motion. Screenshots were reviewed and accepted in the thread.
- Confirmed computed title-bar `app-region: drag` while the toast is
visible. Physically dragging a native macOS window still needs a
hardware check.
- Full repository verification and builds are left to CI.

Copy audit (§8): passed for the new `Dismiss notification` accessible
label and matching tooltip: concise imperative, sentence case, and
explicit meaning without relying on the icon. Existing notification and
action text stays unchanged. No new errors, empty states, jargon, or
humor. Checked short and long text at desktop and phone widths.
nixuuu added a commit that referenced this pull request Nov 18, 2026
Selecting agent text opens the floating **Cite** button. The desktop
title bar treated it as a blocking popover and disabled native window
dragging until it closed. The button stays within the content area, and
its tooltip lets pointer events pass through, so both now preserve the
title bar's drag regions. Menus and dialogs keep their existing drag
handling.

### Verification

- In an isolated Electron 45.2.1 window on Linux, reproduced the blocked
drag with the exception removed. With the fix, dragging moved the window
and preserved the selection. Hovering over **Cite** preserved the drag
region, and clicking it inserted the selected text. The selection
context menu still suspended the drag region.
- Checked the component in Chromium at desktop and phone widths in light
and dark mode.
- Passed the web package typecheck, lint on the edited TypeScript file,
and `git diff --check`. Formatted the edited source files.
- Native macOS behavior remains unverified locally. The full
verification gate runs in GitHub CI.

Fixes: #18
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