<command-message>superpowers:using-superpowers</command-message>…
Private research annotation
Sign in to add a private research label or note.
- User
superpowers:using-superpowers /superpowers:using-superpowers
Assistant
Ready to help with tuicraft. What would you like to work on?
- User
superpowers:brainstorming /superpowers:brainstorming Implement ignore list feature. Users should be able to /ignore and /unignore to suppress chat messages from specific players. The ignore list should persist in the config file. Ignored players messages should be silently dropped in both TUI and daemon mode. Include /ignorelist to show current ignores.
Assistant
Using brainstorming skill to design the ignore list feature before implementation.
Assistant
Good context gathered. The codebase already has partial protocol support for ignoring —
CMSG_ADD_IGNORE,CMSG_DEL_IGNOREopcodes are defined,SocialFlag.IGNOREDexists, andparseContactList()already parses ignored contacts. The friend system is a near-perfect template.One key question before proposing approaches:
Assistant
Server-side it is. That keeps the pattern consistent with how friends already work.
Next question:
Assistant
Flat commands, matching WoW's native syntax. Good.
Assistant
Good — silent drop, server-side storage, flat WoW-native commands. Here are the approaches:
Approach 1: Full IgnoreStore (Recommended)
Create a new
IgnoreStoreclass mirroringFriendStore. It holds ignored GUIDs/names, emits events, and plugs intoWorldHandlewithaddIgnored(),removeIgnored(),getIgnored(),onIgnoreEvent(). The contact list handler (handleContactList) already parses ignored contacts — we just need to stop filtering them out. Message filtering happens indeliverMessage()by checking the sender GUID against the store.Pros: Consistent with friend system, cleanly separated, testable in isolation. Cons: More files/code, but follows the established pattern exactly.
Assistant
Full IgnoreStore it is. Let me present the design section by section.
Design Section 1: Data Model & Storage
IgnoreStore (
src/wow/ignore-store.ts) mirrors FriendStore:codeIgnoreEntry = { guid: bigint, name: string } IgnoreEvent = | { type: "ignore-list"; entries: IgnoreEntry[] } | { type: "ignore-added"; entry: IgnoreEntry } | { type: "ignore-removed"; guid: bigint; name: string } | { type: "ignore-error"; result: number; name: string } class IgnoreStore: - private ignored: Map<bigint, IgnoreEntry> - onEvent(cb): void - set(entries): void // bulk replace from contact list - add(entry): void - remove(guid): void - all(): IgnoreEntry[] - has(guid): boolean // fast lookup for message filteringThe
has(guid)method is the key addition over FriendStore — it enables O(1) message filtering. Ignore entries are simpler than friends (no status/level/class/area fields).Assistant
Design Section 2: Protocol & Client Integration
WorldConn gets a new
ignoreStore: IgnoreStorefield (alongside existingfriendStore).handleContactList (
world-handlers.ts) — currently filters toSocialFlag.FRIENDonly. We add a second pass extracting contacts withSocialFlag.IGNOREDand callingignoreStore.set().New handlers for server responses:
- Ignore add/remove reuse the same
SMSG_FRIEND_STATUSopcode the server sends for friend operations (the server uses the same response packet for both friend and ignore actions — theresultbyte distinguishes them). The existinghandleFriendStatusneeds to check for ignore-specific result codes and route toignoreStoreinstead offriendStore.
WorldHandle gets four new methods:
getIgnored(): IgnoreEntry[]addIgnored(name: string): void— sendsCMSG_ADD_IGNOREpacket
- Ignore add/remove reuse the same
Assistant
Design Section 3: Commands & UI
UI Commands (
src/ui/commands.ts):/ignore <name>→{ type: "ignore"; target: string }/unignore <name>→{ type: "unignore"; target: string }/ignorelist→{ type: "ignorelist" }
Replace the existing
unimplementedcase for/ignore.IPC Commands (
src/daemon/commands.ts):IGNORE <name>//ignore <name>→{ type: "add_ignore"; target: string }UNIGNORE <name>//unignore <name>→{ type: "del_ignore"; target: string }IGNORELIST//ignorelist→{ type: "ignore_list" }
Dispatch behavior:
add_ignore: calls , writes
Assistant
Now let me commit the design doc and transition to implementation planning.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.