Skip to content

docs(install): drop redundant gh auth login + walk to /join - #339

Merged
joelteply merged 2 commits into
canaryfrom
feat/install-readme-clarity
Apr 30, 2026
Merged

joelteply merged 2 commits into
canaryfrom
feat/install-readme-clarity

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • README told users to run gh auth login as a separate step after curl | bash. install.sh already detects an unauthed gh and runs gh auth login -s gist interactively 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.
  • README now walks the user through the next step explicitly: open claude (or any supported agent), then /join. Falls back to airc join for shell-only users. Adds a one-line note acknowledging the "already gh-authed" path so the gh token wired into git credential helper line in the install output is expected, not surprising.
  • install.sh: skip the interactive gh auth login path 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.
  • install.sh: post-install Next block now points at the agent (claude … /join) before the raw airc join, matching how a real user wraps up the install.

Context

Caught on a fresh canary install where gh was already authed from past work — the standalone gh auth login line was redundant, and the post-install hint didn't tell the user to open their agent.

Test plan

  • Fresh curl | bash on a machine with no gh auth → install.sh launches gh auth login -s gist interactively, no separate command
  • curl | bash on a machine already gh-authed → install prints gh token wired into git credential helper and skips the auth prompt (the path Joel hit)
  • sudo bash install.sh on an unauthed machine → warns "don't auth gh as root", does not launch the auth flow
  • Post-install output shows the new Next — open your agent: claude … /join block

🤖 Generated with Claude Code

joel and others added 2 commits April 29, 2026 19:32
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
joelteply force-pushed the feat/install-readme-clarity branch from 843d219 to c1ba266 Compare April 30, 2026 00:32
@joelteply
joelteply merged commit 3733b82 into canary Apr 30, 2026
6 checks passed
@joelteply
joelteply deleted the feat/install-readme-clarity branch April 30, 2026 00:39
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]>
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