Repository navigation
Distinguish AIRC process from Claude Monitor - #496
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces an “attach” mode for airc join so Claude Code can create a persistent, visible Monitor stream even when a background/daemon AIRC process already owns transport for the scope. It also updates user-facing status terminology to distinguish the AIRC process from underlying transport health, and adjusts docs/skills/tests accordingly.
Changes:
- Add
airc join --attach, which tails the localmessages.jsonl(display-only) instead of spawning duplicate transport/bearers. - Rename
airc statusoutput terminology from “monitor / monitor health” to “airc process / transport health”. - Update join/resume skills plus integration tests to match the new terms and attach behavior.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
lib/airc_bash/cmd_connect.sh |
Adds --attach flag handling and local-stream attach exec path. |
lib/airc_core/log_tail.py |
New Python module to tail local messages.jsonl for attach sessions (display-only). |
lib/airc_bash/cmd_status.sh |
Renames status labels and health header to “airc process” and “transport health”. |
lib/airc_bash/cmd_doctor.sh |
Updates one doctor health fix hint to reference “AIRC process”. |
skills/join/SKILL.md |
Updates Claude Code Monitor wrapper to use airc join --attach and terminology. |
skills/resume/SKILL.md |
Updates wording to match renamed “AIRC process” terminology. |
test/integration.sh |
Updates integration assertions/sections to match renamed status output. |
test/integration_smoke.sh |
Updates smoke scenario to assert “airc process … running” instead of “monitor … running”. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| --attach|-attach) | ||
| # UI attach mode: if a daemon/background airc process already | ||
| # serves this scope, keep that single transport owner and attach | ||
| # this terminal/Claude Monitor to the local messages log. |
| import json | ||
| import os | ||
| import secrets | ||
| import sys |
Comment on lines
+77
to
+80
| channel = str(msg.get("channel") or "").lstrip("#") | ||
| subscribed = _read_channels(config_path) | ||
| if subscribed and channel and channel not in subscribed: | ||
| continue |
Comment on lines
+42
to
+55
| def run(home: str, my_name: str) -> int: | ||
| log_path = os.path.join(home, "messages.jsonl") | ||
| config_path = os.path.join(home, "config.json") | ||
| nonce = secrets.token_hex(4) | ||
| contract_printed = False | ||
| inode = None | ||
| f = _open_at_eof(log_path) | ||
| try: | ||
| inode = os.fstat(f.fileno()).st_ino | ||
| except OSError: | ||
| pass | ||
|
|
||
| print("airc: attached to local message stream for this scope", flush=True) | ||
| while True: |
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
airc join --attachso Claude Code/airc:joincreates a real visible Monitor stream when a background/daemon AIRC process already owns transportmonitor/monitor healthtoairc process/transport healthairc_core.log_tail, so it tails localmessages.jsonlwithout spawning duplicate bearers or owning transportValidation
bash -n airc lib/airc_bash/cmd_connect.sh lib/airc_bash/cmd_status.sh lib/airc_bash/cmd_doctor.sh.venv/bin/python -m py_compile lib/airc_core/log_tail.pygit diff --checkAIRC_HOME=/Users/joelteply/Development/cambrian/continuum/.airc ./airc statusAIRC_HOME=/Users/joelteply/Development/cambrian/continuum/.airc ./airc joinAIRC_HOME=/Users/joelteply/Development/cambrian/continuum/.airc ./airc join --attachstayed alive as local display stream./airc doctor --tests solo_mesh_warns./airc doctor --tests inbox./test/integration_smoke.sh status_agrees_with_send./airc doctor --tests monitor_liveness_process_evidence./airc doctor --tests status(skipped local-pair-only scenario as expected post-feat(bearer): Phase 3c — drop SshBearer + Tailscale wholesale (#269) #281)Note
I initially ran several shell integration scenarios in parallel and
monitor_liveness_process_evidencefailed because the harness cleanup races on/tmp/airc-it-*. Rerunning that scenario alone passed. The serial result is the meaningful one for this harness.