Repository navigation
fix(ux): cmd_kick accepts @peer; identity link is honest about unlink semantics - #242
Merged
Merged
Conversation
… semantics Two QA bugs from 2026-04-28 pass. ## #7: cmd_kick @-prefix consistency Before: airc kick @alice → ERROR: invalid peer name '@alice' airc kick alice → works airc msg @alice → works After: airc kick @alice → works (@ stripped before validation) Users who write @ for DM naturally write @ for kick. Inconsistency was a pure UX wart. ## #8: identity link/unlink output mismatch Before: airc identity link continuum → " unlinked: continuum" (verb said link but action was unlink, with no acknowledgment of the disconnect) After (no handle, was previously linked): airc identity link continuum → " unlinked: continuum (was: handle; pass a handle to (re)link)" After (no handle, never linked): airc identity link continuum → " no continuum integration to unlink. Pass a handle to link: airc identity link continuum <handle>" After (with handle, replaces existing): airc identity link continuum X → " linked: continuum -> X (was: oldhandle)" Each output now reflects what actually happened to the integrations state, including the "you said link but I unlinked" fork. ## Verification test/integration.sh kick: 12/0 ✓ test/integration.sh identity: 19/0 ✓ Manual: airc kick @x / kick x both work; airc identity link continuum prints the new "no integration to unlink" message. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
Improves UX consistency for peer targeting and clarifies identity link output so users can tell whether an unlink actually occurred.
Changes:
- Allow
airc kick @peerby stripping a leading@before validation. - Make
airc identity link <platform>messaging explicit for relink, unlink, and no-op unlink cases.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| lib/airc_bash/cmd_kick.sh | Strips @ prefix from kick target and updates usage text accordingly. |
| lib/airc_bash/cmd_identity.sh | Updates identity integration link/unlink output to reflect previous state and no-op cases. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+35
to
41
| # Accept @-prefix for parity with `airc msg @peer`. QA pass found | ||
| # the @-rejection inconsistent — users who write @ for DM naturally | ||
| # write @ for kick. Strip BEFORE validation; the rest of the function | ||
| # uses $target (not $1). | ||
| target="${target#@}" | ||
| _validate_peer_name "$target" | ||
| shift || true |
There was a problem hiding this comment.
New behavior accepts an @-prefixed peer name, but the existing kick integration scenario only exercises airc kick <peer> without @. To prevent regressions, add a test case (e.g., in scenario_kick) that kicks via airc kick @kjoiner ... and asserts the peer file + authorized_keys removal still occurs.
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 QA bugs (#7 + #8). cmd_kick now strips @ for parity with msg; identity link's no-handle path is explicit about whether anything was actually unlinked.