Repository navigation
docs(install): drop redundant gh auth login + walk to /join - #339
Merged
Merged
Conversation
README told users to run 'gh auth login' as a separate step, but install.sh already detects unauthed gh and runs 'gh auth login -s gist' interactively when there's a TTY. Drop the README line and lean on install.sh, then walk the user through opening their agent and running /join. install.sh: skip the interactive gh auth path when running as root/sudo (the token would attach to root's keyring, but airc runs as the real user and would read an empty token); print an explicit warning instead. Also update the post-install Next block to point at 'claude' (or any other supported agent) and the /join skill, with the raw 'airc join' as the fallback for shell-only users. Joel hit this on a fresh canary install where he was already gh-authed from past work — the README's redundant 'gh auth login' was just noise, and the post-install block didn't tell him to open his agent. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Without a break between install.sh's progress output and gh's device- code flow, the browser popup looks mid-install — user has no signal they're being handed off to a different tool. Match Claude Code's installer convention: bold green '==>' headline, bold action line, explicit Press Enter / Ctrl+C prompt. Honor AIRC_INSTALL_YES=1 for power users who curl|bash repeatedly. Already gated on TTY (the existing elif), so CI / non-interactive installs are unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
joelteply
force-pushed
the
feat/install-readme-clarity
branch
from
April 30, 2026 00:32
843d219 to
c1ba266
Compare
joelteply
added a commit
that referenced
this pull request
Apr 30, 2026
…al command on the user (#352) fix(join skill): auto-trigger gh auth login instead of telling the user Carl on the other tab tried /join, hit 'gh auth invalid', and saw the agent dump 'Run this in the prompt: ! gh auth login -h github.com -s gist' back at them. Joel had to close Claude and re-auth manually. install.sh already does this auto-trigger when stdin is TTY (via #339); the skill just had stale text saying "install + 'gh auth login'" without telling the agent to RUN it. Updated /join SKILL.md section 1: - Spell out the auto-trigger pattern explicitly: agent runs `gh auth login -h github.com -s gist -p https -w` itself via Bash. -h/-p/-w skip every interactive prompt; -w uses browser device code; gh blocks until the user completes auth in the browser → Bash blocks with it → success returns → agent continues to airc join. - Note device-code-line surfacing — Bash output buffering can hide it if the agent isn't deliberately quoting it back to the user. - Add the rate-limit-vs-real-auth pre-flight (mirrors the cmd_connect.sh fix from #344): probe `gh api rate_limit` first; if reachable, the token is fine and gh is misreporting a secondary-rate-limit 403 as 'token invalid'. Tell the user to wait, not re-auth. Doc-only — no code change. The skill text is the agent's runtime prompt; updating it changes behavior on the next /join invocation across every Claude Code session that picks up the new skill. Co-authored-by: joel <[email protected]> Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gh auth loginas a separate step aftercurl | bash. install.sh already detects an unauthedghand runsgh auth login -s gistinteractively when there's a TTY — the README line is redundant noise that made the experience feel heavier than it is. Drop it; lean on install.sh.claude(or any supported agent), then/join. Falls back toairc joinfor shell-only users. Adds a one-line note acknowledging the "already gh-authed" path so thegh token wired into git credential helperline in the install output is expected, not surprising.gh auth loginpath when running as root/sudo. The token would attach to root's keyring, but airc reads as the real user — silently broken. Print an explicit warning instead.Nextblock now points at the agent (claude … /join) before the rawairc join, matching how a real user wraps up the install.Context
Caught on a fresh canary install where
ghwas already authed from past work — the standalonegh auth loginline was redundant, and the post-install hint didn't tell the user to open their agent.Test plan
curl | bashon a machine with noghauth → install.sh launchesgh auth login -s gistinteractively, no separate commandcurl | bashon a machine already gh-authed → install printsgh token wired into git credential helperand skips the auth prompt (the path Joel hit)sudo bash install.shon an unauthed machine → warns "don't auth gh as root", does not launch the auth flowNext — open your agent: claude … /joinblock🤖 Generated with Claude Code