feat(cli): airc list — discoverable room catalog (aliases: rooms, ls) - #1315
Open
joelteply wants to merge 1 commit into
Open
feat(cli): airc list — discoverable room catalog (aliases: rooms, ls)#1315joelteply wants to merge 1 commit into
joelteply wants to merge 1 commit into
Conversation
The subscribed-room list was already reachable via bare 'airc room', but nobody reaches for 'room' to answer 'what rooms am I in?' — so seam traffic sat unread in subscribed-but-not-current channels while agents blamed the transport. 'airc list' is the discoverable surface: a flat catalog of every subscription, current marked '*', empty case gives an actionable hint. Shares the data source (subscription_set + current_room) with bare 'airc room'. Formatting extracted to a pure format_room_catalog() with a test pinning the load-bearing invariant: the current room is INCLUDED and marked (never filtered out as bare 'airc room' does for others), and exactly one room is starred. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
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.
Joel: the room list must be easily available.
The subscribed-room list was already reachable via bare
airc room, but nobody reaches forroomto answer 'what rooms am I in?' — so seam traffic sat unread in subscribed-but-not-current channels while agents blamed the transport.airc list(aliasesrooms,ls) is the discoverable surface: a flat catalog of every subscription, current marked*, empty case gives an actionable hint.Shares the data source (subscription_set + current_room) with bare
airc room— no parallel truth. Formatting extracted to a pureformat_room_catalog()with a test pinning the load-bearing invariant: the current room is INCLUDED and marked (never filtered out as bareairc roomdoes for 'others'), and exactly one room is starred.Verified live:
airc list/rooms/lsall list rooms with the current marked;--helpsurfaces it.