Repository navigation
Make attach mode own UI only - #514
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR reworks airc join --attach so that Claude/WSL Monitor acts as a UI-only stream while a scope-local background airc join process owns transport lifetime, improving reliability on Windows/WSL where the wrapper shell can disappear.
Changes:
- Updates the Claude
/joinskill contract to invokeairc join --attachexplicitly. - Implements attach mode that spawns a background scope transport (
AIRC_BACKGROUND_OK=1,AIRC_NO_ATTACH=1), verifies liveness, then execs a local log tail UI attach stream. - Adds an integration scenario intended to prove attach mode starts verified background transport and keeps the UI stream alive.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
lib/airc_bash/cmd_connect.sh |
Adds the attach-mode background transport spawn + liveness verification before attaching the UI stream. |
airc |
Exports AIRC_SELF so attach mode can re-invoke the airc script reliably. |
skills/join/SKILL.md |
Changes required Claude Monitor invocation from airc join to airc join --attach. |
test/integration.sh |
Adds attach_starts_background_transport scenario to validate the new attach behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| local seen=0 status_out="" i | ||
| for i in $(seq 1 20); do | ||
| status_out=$(AIRC_HOME="$home" "$AIRC" status 2>&1 || true) | ||
| if echo "$status_out" | grep -qE 'airc process:\s+AIRC background process running for scope'; then |
| Monitor(persistent=true, description="airc", command="airc join") | ||
| Monitor(persistent=true, description="airc", command="airc join --attach") | ||
| ``` | ||
| Keep `description="airc"` — the headline shown in the UI is built from it. Plain `airc join` creates the live AIRC stream for the scope. |
This was referenced May 5, 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.
Summary
/joininvokeairc join --attachexplicitly instead of relying on parent-chain detection across WSLAIRC_BACKGROUND_OK=1, verifies liveness, then execs the local UI attach streamAIRC_NO_ATTACHfor the internal child transport so it cannot recursively attachThis is a follow-up for #511 after Windows showed that the Claude Monitor
wsl bash -lc airc joinwrapper can disappear and leave no WSL-side airc/python processes alive. The new model makes the Monitor process UI-only; the transport is a project-scope airc process managed byairc quit/airc teardown, not an OS daemon.Tests
airc join --attach --no-room --no-gist=> status reportedAIRC background process running; teardown cleaned itWindows retest
After merge to canary:
airc update --channel canary airc join --attach airc version airc status airc msg --channel general "windows ops-ok $(date -u +%FT%TZ)"Expected:
airc statusshows an AIRC process running even if the Claude Monitor wrapper would otherwise disappear, andairc msgdoes not refuse with monitor down.