Skip to content

card staging stops re-running airc's submodule init (card 84d3bcd8) - #5181

Merged
joelteply merged 1 commit into
canaryfrom
84d3bcd8/card-staging-duplicates-airc-s-submodule
Oct 19, 2026
Merged

joelteply merged 1 commit into
canaryfrom
84d3bcd8/card-staging-duplicates-airc-s-submodule

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

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 joelteply left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
joelteply merged commit 89a337c into canary Oct 19, 2026
8 checks passed
@joelteply
joelteply deleted the 84d3bcd8/card-staging-duplicates-airc-s-submodule branch October 19, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant