Skip to content

Fix bar/menu freezing after a browser sign-in; calmer, atomic menu sync (0.5.2) - #14

Merged
jeremy-robotsson merged 3 commits into
mainfrom
fix/shell-freeze-during-sign-in
Nov 9, 2026
Merged

jeremy-robotsson merged 3 commits into
mainfrom
fix/shell-freeze-during-sign-in

Conversation

@jeremy-robotsson

Copy link
Copy Markdown
Member

Problem

On an Omarchy 4 laptop, the bar became unclickable and Super+Space stopped opening the menu, until the shell was restarted or the laptop was forced off. Both freezes in the logs happened during a browser sign-in started from the Varlatch panel: at-spi2-registryd flagged the shell (quickshell) as unresponsive, and Hyprland logged its only-ever pixman_region32_init_rect: Invalid rectangle error seconds earlier.

Changes

Browser sign-in closes the panel (Panel.qml)

  • The panel is a full-screen Overlay layer that holds keyboard focus. log in, renew and connect left it open over the browser for the whole passkey sign-in. They now close it through startBrowserLogin(). Reopening the panel still shows the sign-in under way.
  • Device sign-in keeps the panel open, since it shows the code and QR code and no local browser opens.

sync-menu changes (bin/varlatch-menu)

  • The menu rows counted down to the minute, so a live session rewrote omarchy-menu.jsonc and reloaded the menu every minute. They now count whole hours; the panel keeps the minutes.
  • The menu file and the state files (login.json, servers.json) are written to a temporary file and renamed into place, so the shell never parses a half-written file. A symlinked menu file keeps its symlink. A writer that outputs nothing keeps the old file.
  • Runs hold a flock, so overlapping runs after status polls no longer interleave their writes.
  • servers.json is only rewritten when the list of servers changes, since the widget reloads it on every change.

Also: README sign-in paragraph, CHANGELOG, manifest 0.5.2.

Tests

tests/run.sh: 87 passed, 0 failed locally. Five new tests cover hour-level countdowns, leaving servers.json alone when nothing changed, six overlapping sync-menu runs leaving one valid block, no leftover temporary files, and a symlinked menu file. shellcheck isn't installed locally, so it runs in CI only.

🤖 Generated with Claude Code

jeremy-robotsson and others added 3 commits November 9, 2026 10:32
The panel is a full-screen overlay layer that holds keyboard focus. Left
open during a browser sign-in, it covered the browser for the whole
passkey prompt, which is when the bar and the Omarchy menu stopped
responding until the shell was restarted. log in, renew and connect now
close it; reopening the panel shows the sign-in under way. Device
sign-in keeps the panel open, since it shows the code and QR code.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The widget runs sync-menu after every status poll. The menu rows showed
time left to the minute, so a live session rewrote omarchy-menu.jsonc and
reloaded the menu every minute; the write was in place, so the menu could
parse a half-written file, and overlapping runs could interleave writes.

- Runs hold a lock, so they no longer overlap.
- The menu file and state files are written to a temporary file and
  renamed into place (through a symlink, to its target).
- servers.json is only rewritten when the servers change.
- The menu counts whole hours; the panel keeps the minutes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Changelog for the sign-in panel and sync-menu fixes; manifest 0.5.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jeremy-robotsson
jeremy-robotsson merged commit 85c6bbd into main Nov 9, 2026
1 check passed
@jeremy-robotsson
jeremy-robotsson deleted the fix/shell-freeze-during-sign-in branch November 9, 2026 09:35
@jeremy-robotsson jeremy-robotsson mentioned this pull request Nov 20, 2026
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