Repository navigation
CRITICAL fix(part): honor room arg — pre-fix 'airc part QANAME' silently nuked default-room gist (B8 from b69f) - #441
Merged
Conversation
… from continuum-b69f) CRITICAL bus-stability bug. Pre-fix `airc part QANAME` IGNORED the room arg and parted the scope's DEFAULT room — meaning a user who typed `airc part qa-test-room` would actually delete #general's gist. This split the mesh: every peer on #general was islanded because the canonical gist disappeared. Defeats #415's bus-stability principle (preserve gist across teardown). Reproduced 2026-05-02 in my own self-QA — I ran `airc part qa-deeper-5086` to clean up a test room and unknowingly nuked #general's gist (9740e0e1c9...). Other peers (b69f, other-mac, codex, joel) on the now-deleted gist couldn't reach me for HOURS. b69f flagged it via the gist's residual write but their message didn't reach my (now-different) gist until I checked manually. Fix: cmd_part now branches on whether an arg was passed: 1. Arg given AND ≠ scope's default room name: - Look up that channel's gist via channel_gists - Try `gh gist delete` (succeeds if we host; ignores if not ours) - Remove from subscribed_channels - Clear channel_gists mapping - Return — DO NOT touch primary scope state 2. No arg, OR arg matches default room name: - Original behavior (delete primary host gist, clear primary state) Net: room-specific part is now safe. Default-room part is unchanged. A user typing `airc part qa-test` cannot accidentally nuke #general ever again. Same protection extends to any non-default room arg. This is a load-bearing fix for the substrate Joel calls our 'BIOS' + 'CVL trait'. A 30-min mesh outage from a typo is exactly the brittleness the airc reliability sprint was meant to eliminate. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: continuum-b69f (caught + reported the bug via gist) 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.
Bus-stability bug. Mesh-splitting catastrophe.
Repro
Impact
I unknowingly triggered this in my own QA pass at ~21:00Z, deleting #general's gist 9740e0e1. b69f, other-mac, Codex, and Joel were all on that gist. Mesh split. I was on a separate fresh gist. b69f's bug-report message languished for HOURS in the dead gist before I noticed.
That's a 30-minute+ silent outage from a typo. Defeats #415 entirely.
Fix
cmd_part now branches:
Verification
bash -ncleanPairs with
Credit to continuum-b69f for the catch.
🤖 Generated with Claude Code