Skip to content

fix(install): clearer firewall step + purge Python from the live path - #1256

Merged
joelteply merged 2 commits into
canaryfrom
fix/firewall-setup-messaging
Jun 18, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/firewall-setup-messaging

Conversation

@joelteply

@joelteply joelteply commented Jun 18, 2026 •

Copy link
Copy Markdown
Contributor

Two install-path cleanups, both UX/correctness — no behavior change to the airc binary itself.

1. Explain the Windows firewall step (and that LAN breaks if declined)

On Windows, Defender blocks inbound from unknown programs by default, so airc's LAN listener is unreachable until a firewall rule exists (signing doesn't help — firewall ≠ SmartScreen). Setup already adds the rule and only UAC-prompts when needed, but it fired the prompt with a one-line aside, so the elevation read as a mystery.

  • Before the prompt, setup now prints a short WHAT / WHY / HOW block — same spirit as an app explaining a notification-permission request.
  • If the user declines/cancels, setup says plainly that LAN connectivity will NOT work and shows the exact command to fix it later.

2. Purge Python from the live path (Rust-only, no fallbacks)

The rust_cutover_guard was red on canary (blocking every PR):

  • integrations/{embedding,generate}-facility/smoke.sh shelled out to python3 to pretty-print a JSON field. Dropped the python branch entirely — single pure sed/tr/grep path that still asserts the array/content and reports exact dim / echoes the text. No degraded "install python3 for…" fallback.
  • install.ps1 Windows-Server fallback told users to choco/scoop install python … jq. Now git gh rust (the real prereqs). jq was never needed — gh api --jq is gh's built-in flag.
  • Collapsed the "we dropped Python (issue Carl install woes — fresh-Mac airc join silent exit 1 (LibreSSL can't do Ed25519) #341)" legacy-archaeology comments in install.sh into plain statements of what IS required.

Guard now green; both installers parse-check clean.

🤖 Generated with Claude Code

joelteply and others added 2 commits June 18, 2026 10:58
…if declined)

The firewall rule is the airc grid's front door on Windows — inbound from
unknown programs is blocked by default, so without it no LAN peer can reach
this node. The setup used to fire the UAC prompt with only a one-line aside,
so the elevation request read as a mystery.

Now setup prints a short WHAT/WHY/HOW block before the prompt (same spirit as
an app asking for notification permission), so it's an informed click. And if
the user declines/cancels the UAC, we say plainly that LAN connectivity will
NOT work and how to fix it later — no silent half-broken state.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
The Rust-cutover guard was red on canary (blocking every PR): the embedding
and generate facility smoke scripts still shelled out to python3 to pretty-
print a JSON field, and install.ps1's Windows-Server fallback still told users
to `choco/scoop install python ... jq`. airc is a Rust binary — nothing here
needs a Python runtime or jq (gh's built-in --jq flag does the JSON).

- smoke.sh (embedding, generate): drop the python3 branch entirely — single
  pure sed/tr/grep path that still asserts the array/content and reports the
  exact dim / echoes the text. No "install python3 for…" degraded fallback.
- install.ps1: Server fallback now says `git gh rust` (the real prereqs), not
  `python git gh jq`; example comments updated off Python.Python.3.12.
- install.sh: collapse the "we dropped Python/openssl/jq (issue #341)" legacy-
  archaeology comments into plain statements of what IS required.

Guard now green; both installers parse-check clean.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@joelteply joelteply changed the title fix(install): explain the Windows firewall step (and that LAN breaks if declined) fix(install): clearer firewall step + purge Python from the live path Jun 18, 2026
@joelteply
joelteply merged commit 91914b5 into canary Jun 18, 2026
11 checks passed
@joelteply
joelteply deleted the fix/firewall-setup-messaging branch June 18, 2026 16:24
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