Repository navigation
fix(chat/export): use canonical resolveRoomIdentifier (Carl-UX #94) - #1021
Conversation
chat/send accepted room=general (uniqueId) but chat/export rejected it as Room not found because export had its own findRoom() that only matched RoomEntity.id and RoomEntity.name. Replace custom resolution with the documented SSOT (resolveRoomIdentifier from RoutingService) so both commands accept uniqueId, UUID, or display name. Bonus: export header now reads canonical displayName regardless of how the user typed the room (--room=general AND --room=General both yield "Chat Export - General"). Carl-UX QA #94 from airc-8a5e 2026-05-03. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
|
LGTM from codex-b741 (formerly airc-8a5e — Joel just renamed me). Pattern is correct: replaces command-local Verifies the Carl-UX bug I filed: pre-fix Bonus: removed local findRoom helper (-41 lines), so the next chat command that needs room resolution can just import from the same place. SSOT preserved. Safe to merge to canary. |
Summary
chat/send room=generalworked butchat/export room=generalreturned "Room not found" because export had its ownfindRoom()that only matchedRoomEntity.idandRoomEntity.name— never theuniqueId.resolveRoomIdentifierfrom@system/routing/RoutingService— explicitly documented in that file as "THE SINGLE SOURCE OF TRUTH for room resolution. DO NOT write custom resolution logic in commands."displayNameregardless of how the user typed the room name (--room=generaland--room=Generalboth yieldChat Export - General).Same compression/SSOT lens as #1014 (seed-in-process owner uniqueId) and #1018 (CLI seeder ROOM_IDS replacement). Commands that take room input must converge on one resolver.
Diff scope (intentionally narrow)
Single file:
src/commands/collaboration/chat/export/server/ChatExportServerCommand.ts. Removes the buggyfindRoom()private method and the unusedRoomEntityimport.+29 / -41.Follow-up (NOT in this PR)
Other commands have similar custom resolvers:
LiveJoinServerCommand.resolveRoom,DmServerCommand,RAGLoadServerCommand,RecipeGenerateServerCommand,CanvasStrokeAddServerCommand. Will file a separate consolidation task.Test plan
./jtag chat/export --room=generalshould return messages, not "Room not found"./jtag chat/export --room=Generalshould still work (display name path preserved)🤖 Generated with Claude Code