Repository navigation
Check connectivity against ping.omacom.io and fix the captive portal sign-in flow - #16186
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…to a portal Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
[Medium impact] The latest change appears safe to merge and addresses the previous launch-failure finding. SummaryThe PR moves connectivity checks to
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The classification of this pull request is unsettled, so it carries no class label yet and waits on the maintainer. Claude Opus 5.5 read it as a Because the class is unsettled, nothing was run on a worker and no full review was done this pass. Two things were checked:
|
The registry check counted every omarchy-* Worker in the account as a language edition. omarchy-ping, created on 2026-10-21 to serve ping.omarchy.org for omacom/omarchy#16186, is not one, so every translation run since 18:53 UTC has stopped at this step and no edition has deployed. Count a Worker as an edition only when its name is omarchy- plus a code that check-translations.mjs accepts (two or three letters, then any subtags), lowercased the way deploy-locale.mjs names it. Against the live account that still audits all 37 edition Workers, skips only omarchy-ping, and fails as before when a deployed edition is dropped from locales.json. The keys pending in open PRs (kk, ru, ka, pt-BR, azb) also stay covered.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Looked at this again at
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hat maps late Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Looked at this again at
|
… at once Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Fixed in the latest commit: |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Looked at this again at
|
|
Your |
|
Looked at this again at
|
The network panel's captive-portal flow leaned on Arch's connectivity endpoint, couldn't actually reach a sign-in page, broke with a Tailscale exit node, and showed noise while signed out. This moves the check to Omarchy's own endpoint and fixes the flow.
etc/NetworkManager/conf.d/omarchy-connectivity.confpoints NetworkManager athttp://ping.omacom.io/nm-check.txtwith an emptyresponse=, overriding Arch'sping.archlinux.org. The panel's sign-in button ("Sign into network") opens the same URL, and a test keeps the two in sync. A migration reloads NetworkManager's config on existing installs and stays pending if the reload fails.omarchy-network-captive-portal <url>. If an exit node is active, it pauses it through tailscaled's own toggle (set-use-exit-node-enabled, the one Tailscale's apps use, which remembers the node,auto:anyincluded). It then opens the portal in a floating web app window (900×760, centered, like macOS's sign-in sheet; rule indefault/hypr/apps/captive-portal.lua) and asks NetworkManager to re-check every 2s for 5 minutes, then every 15s, until connectivity is full. At that point it closes the window, so a portal's post-login advert page never lingers, and restores the exit node. Each exit-node step sends a notification with the Tailscale mark, which is newly added to the Omarchy icon font at U+E90F; the menu's Install and Remove Tailscale entries use it too, in place of a generic cube. Toasts now draw glyphs in U+E900–E9FF with theomarchyicon font, as the menu does withiconFont: the Nerd Font's devicons cover U+E700–E958, so without that every Omarchy mark rendered as a devicon. A second click only reopens the portal while the first keeps the pause. With the exit node on, the portal's sign-in page was going into a tunnel the portal blocks, and the panel's own 10s timer made finishing feel slow.network.captivePortalHelpstring is removed from every locale and the translation manifest.Why omacom.io
A captive portal can only intercept plain HTTP, so the button's URL must never be upgraded to HTTPS by the browser:
includeSubdomains. Every major browser has therefore always forcedping.archlinux.orgto HTTPS, so the button as shipped today can't show a sign-in page in any browser.includeSubDomains(180 days), so any browser that has visited it would forceping.omarchy.orgto HTTPS too.learn.omacom.iosendsincludeSubDomains, but that only covers its own subdomains, notping.omacom.io. The drop-in notes that omacom.io must never turn HSTS on.ping.omacom.io (already live, not in this repo)
A Cloudflare Worker (
omarchy-ping) on a custom domain. NetworkManager gets an empty204withX-NetworkManager-Status: online. A browser that reaches it (once a portal lets you through, often by sending you back to this URL after sign-in) is redirected to https://omarchy.org/, so nobody sees a blank page or "NetworkManager is online". omacom.io's zone needed no changes. The zone changes tried on omarchy.org for an earlierping.omarchy.orgare fully reverted.Known gaps
omarchy.cnisn't on Cloudflare, so there's no China-specific endpoint yet, and everyone usesping.omacom.iofor now.omarchy-settings, so until that release the notifications and menu entries show no icon on installed systems.Testing
network-test.sh,network-captive-portal-test.sh, the newnetwork-captive-portal-command-test.sh(stubbed Tailscale, NetworkManager, browser and notifications) and./test/clipass.NetworkManager --print-configshows the drop-in overriding Arch's URI.portalthrough ping.omacom.io, the button paused the Tailscale exit node (tailscaled loggedInternalExitNodePriorset), the sign-in page loaded, and 16 seconds later NetworkManager reportedfulland the same exit node was restored. That run used a browser tab; the floating window was then checked separately on the desktop (floats centered at 900×760, closes by class).i18n-check; they now go throughomarchy-i18nwithtailscale.exitNode*keys incli.json, andscripts/i18n-sync.py extract-scan --checkpasses. It found the endpoint references consistent, no leftovers from earlier iterations, and the migration, icon-font wiring and locale cleanup correct../test/allhas failures in unrelated suites (agent usage, backgrounds, default apps, provisioning, t3code, andi18n-test.shon a Danish menu key that's already broken on quattro).🤖 Generated with Claude Code