Repository navigation
Conversation
Codex-spec'd UX follow-up to #545/#546: emit "→ [t+Ns] phase…" lines at the top of slow operations so a user staring at a Monitor task can tell "still working" from "hung." Without this, Windows Monitor cold-starts produced 30-60s of total silence followed by a flood of host-setup output — indistinguishable from a hang. Helper: `_join_phase` (in cmd_connect.sh) - t0 anchored via $AIRC_WRITE_DIR/.cold_start_t0; survives across `_reexec_into host` (same scope, no env passing required). - Output goes to BOTH stdout (so Monitor surfaces it as a user- facing event) AND $AIRC_WRITE_DIR/airc-transport.log (so post-mortem traces show where the time went). - `_join_phase_done` clears the marker once the monitor stream attaches — the next `airc join` against an already-warm scope starts from t0=0 again, not "minutes since last boot." Phase markers added at the slow points: - querying gh for mesh on this account (#X) - resolving room gist contents (<id>) - taking over stale host (re-exec into host mode) - hosting as 'NAME' — bootstrapping room gist - publishing host lease to existing room gist / creating new room gist on this gh account - subscribing to #general (sidecar) - monitor stream attached — cold start complete cmd_status: distinguish "starting" from "not running" Pre-fix `airc status` reported `airc process: not running` whether airc was genuinely absent OR mid-cold-start. Post-fix: - If `.cold_start_t0` exists AND age <= 600s, status reports `starting (airc join cold-start in progress, t+Ns)`. - Stale-marker guard: anchors >10min old are treated as orphaned (a join crashed without cleanup) and ignored, so the user gets the actionable "not running" message instead of a perpetually- rising "starting (t+86400s)". - cmd_connect entry-point also self-cleans stale anchors so a fresh join starts from a clean clock. Verified locally on Windows WSL2 with isolated AIRC_HOME: $ bash test/smoke-coldstart → [t+0s] querying gh for mesh on this account (#general) → [t+15s] resolving room gist contents (c68640ec...) → [t+17s] taking over stale host (re-exec into host mode) → [t+21s] hosting as 'win-continuum-8e97' — bootstrapping room gist → [t+25s] publishing host lease to existing room gist → [t+25s] subscribing to #general (host-mode sidecar) → [t+26s] monitor stream attached — cold start complete $ airc status airc process: starting (airc join cold-start in progress, t+34s) airc-transport.log includes per-phase timing entries for post-mortem of slow cold-starts. Doesn't change any control-plane behavior — pure observability addition. Single-source PATH invariant from #545 preserved. Related — Windows Monitor cold-start surface trail: #533/#538/#541/#542/#543/#544/#545/#546 — correctness fixes THIS — UX/observability for the cold-start latency that remains after correctness is solid. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
docs: tighten README for main release
docs: align Codex runtime with join flow
…o-miss fix(install): fail when cryptography is unavailable
feat(connect,status): cold-start phase telemetry (Windows UX)
Contributor
Author
This was referenced May 7, 2026
There was a problem hiding this comment.
Pull request overview
Promotes canary f2acb4a to main, bringing in recent installer hardening, join/connect observability improvements, and documentation/skill updates aligned around the public airc join / airc join --attach flow.
Changes:
- Update multiple skills/docs to standardize on
airc join(and--attachfor Monitor-backed runtimes) and remove older “manual background join” guidance. - Add cold-start phase telemetry to
cmd_connectand astarting (...)state toairc statusduring join cold-start. - Harden
install.shsocryptographyis a required dependency (fail-fast if unavailable).
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| skills/update/SKILL.md | Updates update workflow text to use public join semantics and Monitor --attach. |
| skills/resume/SKILL.md | Aligns resume skill with airc join --attach for Claude Monitor. |
| skills/msg/SKILL.md | Updates messaging notes to reflect normal airc join lifecycle and Codex catch-up guidance. |
| skills/canary/SKILL.md | Aligns canary skill with airc join --attach and simplified non-Monitor flow. |
| README.md | Replaces/shortens README; updates install/usage/reference sections. |
| lib/airc_bash/cmd_status.sh | Adds starting (...) reporting when cold-start anchor exists and no pidfile yet. |
| lib/airc_bash/cmd_connect.sh | Adds cold-start phase markers, anchor lifecycle, and stale-anchor cleanup. |
| integrations/openai-codex/README.md | Updates Codex integration docs to use the standard airc join command. |
| install.sh | Adds fail() helper and makes cryptography a hard install requirement with import verification. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+31
to
+35
| - installs or checks `gh`, `python3`, and `openssl` | ||
| - runs `gh auth login -s gist` when needed | ||
| - creates airc's local Python environment | ||
| - puts `airc` on your PATH | ||
| - installs agent skills for detected tools such as Claude Code and Codex |
| A GitHub account. install.sh handles the rest — installs `gh` if you don't have it, drops the airc binary on your PATH, sets up the local Python venv for the encryption library. `gh auth login` once and you're done. | ||
| - GitHub account with gist scope through `gh` | ||
| - `python3` | ||
| - `openssl` |
Comment on lines
+272
to
+274
| if [ "$_elapsed" -le 600 ] 2>/dev/null; then | ||
| monitor_state="starting (airc join cold-start in progress, t+${_elapsed}s)" | ||
| fi |
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
Promote canary
f2acb4ato main after focused mesh validation across Mac, Windows WSL2, Codex, Claude Code, and cross-scope agents.This branch is the resolved merge of
origin/main+origin/canary; the only conflict wasREADME.md, resolved in favor of canary's reviewed concise README. Tree matchesorigin/canaryafter resolution.Included since the last main promotion:
airc joinstartingstateLive validation
f2acb4a on canary, doctor --health healthy, gh governor no active backoff, #cambriantech + #general fresh, logs/whois/peers usablef2acb4a on canary, Monitor streaming live, markers delivered, failures noneVERSION=f2acb4a on canary, Monitor streaming live, cold-start phase markers t+0/0/1/4/9/11/19s, bidirectional marker, failures noneCI before promotion
Known non-blocking follow-ups
/whoisdoes not yet expose broadcast-only peers like paired peers