Repository navigation
card staging stops re-running airc's submodule init (card 84d3bcd8) - #5181
Merged
joelteply merged 1 commit intoOct 19, 2026
Merged
Conversation
airc's ensure_card_clone (pinned 44478af, #1591) initialises submodules on every clone it creates or migrates: bounded by run_bounded, borrowing each submodule's objects from its own mirror. stage_for_card then ran a second `git submodule update --init --recursive` under a tokio timeout that abandoned the child instead of killing it. The second pass reached only those two outcomes plus a linked worktree that migration kept (initialised when it was made): an existing card clone returns Ready earlier, through checkout_path_for. So it was duplicate work with an unkillable child. An airc init failure already arrives as stage "worktree"; nothing matches on stage "submodules" (git grep). source-hygiene: BASELINE_SPAWN_SITES 125 -> 124, measured by its ratchet. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
commented
Oct 19, 2026
joelteply
left a comment
Contributor
Author
There was a problem hiding this comment.
PASS. Review of #5181 at 530becb by Fable (M5), 2026-10-19. Claim verified by reading airc at the pinned rev 44478af (Cargo.lock on canary): crates/airc-lib/src/work_worktree.rs:700 runs git submodule update --init --recursive bounded inside ensure_card_clone for every clone it creates or migrates. So stage_for_card's second pass is a duplicate, and the one whose tokio timeout abandoned the child instead of killing it. Removing it removes a leak and a duplicate owner (-37/+10).
joelteply
deleted the
84d3bcd8/card-staging-duplicates-airc-s-submodule
branch
October 19, 2026 17:18
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.
airc's ensure_card_clone (pinned 44478af, #1591) initialises submodules on
every clone it creates or migrates: bounded by run_bounded, borrowing each
submodule's objects from its own mirror. stage_for_card then ran a second
git submodule update --init --recursiveunder a tokio timeout thatabandoned the child instead of killing it.
The second pass reached only those two outcomes plus a linked worktree that
migration kept (initialised when it was made): an existing card clone
returns Ready earlier, through checkout_path_for. So it was duplicate work
with an unkillable child. An airc init failure already arrives as stage
"worktree"; nothing matches on stage "submodules" (git grep).
source-hygiene: BASELINE_SPAWN_SITES 125 -> 124, measured by its ratchet.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE