Skip to content

fix(join): canonicalize scope process detection - #530

Merged
joelteply merged 1 commit into
canaryfrom
codex/scope-canonical-idempotent-join
May 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
codex/scope-canonical-idempotent-join

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

  • canonicalize explicit AIRC_HOME before scope ownership decisions so /tmp and /private/tmp do not split a Mac scope
  • match same-scope process evidence across symlink-equivalent paths when detecting/reaping formatter, bearer, and handshake transport processes
  • treat alive no-room transports as healthy because there is no gist bearer heartbeat to evaluate
  • add a Codex idempotent join regression and harden duplicate-reap cleanup

Validation

  • bash -n airc lib/airc_bash/cmd_connect.sh test/integration.sh
  • ./test/integration.sh codex_join_idempotent_when_healthy
  • ./test/integration.sh codex_join_detaches_transport
  • ./test/integration.sh codex_join_waits_for_duplicate_repair
  • ./test/integration.sh join_reaps_duplicate_scope_transport
  • live Continuum scope: airc join returned already joined; status transport health ok

Notes

This addresses a real same-machine failure mode: one tab/process labels the scope as /tmp/... while another sees /private/tmp/..., causing duplicate transport generations or missed repair.

Copilot AI review requested due to automatic review settings May 6, 2026 15:23
@joelteply
joelteply merged commit ce24de7 into canary May 6, 2026
7 checks passed
@joelteply
joelteply deleted the codex/scope-canonical-idempotent-join branch May 6, 2026 15:24
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