Repository navigation
fix: resolve retry + host bootstrap find-first (auto-resync) - #324
Merged
joelteply merged 1 commit intoApr 29, 2026
Merged
Conversation
…cture) Two complementary changes for substrate convergence: 1. channel_gist.resolve() retries find_existing 3× with backoff (1.5s, 3s) to bridge gh's gist-listing eventual-consistency window. A peer reconnecting moments after another peer hosted previously missed the canonical because gh's listing hadn't propagated yet, resulting in a 3rd duplicate gist. Retry with backoff catches the propagation. AIRC_RESOLVE_NO_RETRY=1 opts out for callers that don't want to wait. 2. cmd_connect host bootstrap calls channel_gist.resolve before creating a new gist (#321 follow-up). Previously the host path bypassed find_existing and unconditionally created a new gist; if a canonical already existed on the gh account from a prior session, the host created a duplicate. Now adopts existing canonical when found. Test scenario stale_config_auto_resyncs (introduced PR #323) documents the regression class — pre-seeded bogus channel_gists must be replaced on bounce. Currently red because of an orthogonal bug (orphan subshells survive teardown and re-write airc.pid, blocking the next spawn via #292 stomp guard) that needs its own fix. The auto-resync mechanism is correct; the test harness needs better orphan cleanup. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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.
Two complementary fixes for substrate convergence: channel_gist.resolve retries with backoff to bridge gh's gist-listing eventual consistency; cmd_connect host bootstrap consults find_existing before creating a new gist (was unconditional create → duplicates). Closes the auto-resync gap from #321 follow-up. Test scenario stale_config_auto_resyncs (#323) documents the regression class — currently red on an orthogonal teardown-orphan bug that's tracked separately.