Repository navigation
fix(join skill): pre-flight diagnose runs SILENTLY, not as narrated debug session - #353
Merged
Merged
Conversation
…ebug session Previous fix (#352) added a 'pre-flight diagnose' step that the agent narrated to the user — Carl typing /join saw 'running gh api rate_limit ... token is actually fine ... issue #341 case ... proceeding with join'. That looks like a bug. The diagnose should be a silent gate, not a story the user sits through. Reframed the section: don't pre-flight at all. Just run airc join. If airc itself surfaces a gh-auth message (rate-limited / token invalid / auth invalid), react minimally: - 'rate-limited' → tell user verbatim, do nothing else (airc already disambiguated via #344's cmd_connect.sh pre-flight; re-probing is redundant and chatter) - 'token invalid' → run 'gh auth login -h github.com -s gist -p https -w' silently, surface only the device-code line for the user, then retry - 'gh missing' → install + auth, one short line, proceed The principle stated explicitly: Carl running /join should see airc events + outcomes, not auth-handling internals. Internal disambiguation silent; user-actionable result one short sentence. Joel caught this on the 2-tab cross-machine test minutes after #352 landed — the agent dutifully followed #352's instructions, ran the narrated pre-flight, and produced exactly the "looks like a bug" output Carl shouldn't see. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This was referenced Apr 30, 2026
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.
Caught minutes after #352 landed. The agent dutifully followed #352's "Pre-flight diagnose" instruction, narrated
Bash(gh api rate_limit)+Token is actually fine — gh api rate_limit returns 4860/5000 remaining. gh auth status is misreporting (the issue #341 case). Proceeding with join.to the user, and produced exactly the "looks like a bug" output a Carl typing/joinshouldn't see.What changed in the skill text
Before (added by #352): the agent was told to pre-flight
gh api rate_limitto disambiguate before falling through to "real auth failure" — and to narrate that diagnose. Result: Carl sees what looks like the agent debugging itself.After (this PR): don't pre-flight at all. Just run
airc join. Only react toairc join's OWN auth-message output, and even then react minimally:GitHub rate-limited — retry in 5-15 min (token is fine)gh auth invalid — run 'gh auth login -h github.com' firstgh auth login -h github.com -s gist -p https -wsilently, surfaces only the device-code line, retriesgh CLI not installedThe principle is now stated explicitly in the skill: Carl running
/joinshould see airc events + outcomes, not auth-handling internals. Internal disambiguation = silent. User-actionable result = one short sentence.Why we don't need the rate-limit pre-flight at the skill level
cmd_connect.sh's preflight (added in #344) already does the
gh api rate_limitprobe BEFORE deciding to die. It dies with the right message — either "rate-limited; wait" or "token invalid; re-auth". The skill should trust that and react to the message, not re-do the probe.Caught from
Joel's two-tab cross-machine test on the QA rig — second Claude tab pulled the new skill (#352), ran /join, and surfaced the misreport-debug to the user. Joel: "to a user it looks like a bug."
Test plan
/joinproceeds with nogh api rate_limitchatter; user sees airc join events directly🤖 Generated with Claude Code