Repository navigation
feat(messaging): manage an app's conversations: mute, rules, block, allow again (#1109) - #1120
Merged
Merged
Conversation
…llow again (#1109) The app's Conversations list in Edit identity sorts entries into Waiting, Active, Muted and Blocked. Mute admits silently, Rules reuses the group reception editor, Block revokes the entry, cancels unsent replies and writes a durable block per Bot, app fingerprint and conversation that survives restart and rebind; Allow again creates a fresh entry with no backfill. New conversations can be admitted automatically or held for the user, and new entries are bounded to 20 per hour and 500 active per app with at most 200 held. Issue: #1109 Agent-Task: claude-code/cloud/session_01WXjBatxGTRyRSxZYeJpqgH Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WXjBatxGTRyRSxZYeJpqgH
7 tasks
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 54 seconds. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (43)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Oct 7, 2026
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.
Requested by Vain · project thread
Closes #1109 · part of #1107 · ADR-0142
Before: an app's Conversations list in Edit identity was read-only. Every new DM or @mention was admitted with no limit, and nothing could mute, tune or shut out one conversation.
After: the list sorts conversations into Waiting, Active, Muted and Blocked, each with row actions. Mute keeps messages in the Inbox without waking the Bot. Rules edits one group's collection and wake. Block asks for confirmation and keeps the conversation out, even after a restart or after unbinding and rebinding. Allow again starts fresh from the next message with no backfill. A new New conversations setting chooses Admit automatically or Ask me first. New conversations past 20 per hour or 500 active per app wait, and the row says why.
How
messaging_conversation_blocksis keyed by Bot, app fingerprint, conversation kind and ID, so a block survives unbind and rebind.messaging_held_conversationskeeps metadata only: name, first and last seen, a capped count and the reason. It holds at most 200 rows per app, pruning the oldest.inbound.ts). For a conversation that has no entry yet:silent, and the runtime neither wakes the Bot nor steers on it.outbound.tsconversation(), bridgemessagingConversation).muteis checked against a separatepreferenceRevision, so the grant revision that fences the Outbox is untouched.blockbumps the revision, ends unstarted intents asgrant-revoked, aborts in-flight file attempts and writes the block.block-heldblocks a waiting conversation.allow(from held or blocked) creates a fresh implicit entry withreceiveAfter = nowand refuses when the app is at 500 active entries.conversation-stale.ExternalConversationscomponent reusesGroupReceptionSettingsfor Rules and confirms Block inline. The New conversations combobox (hidden for WeChat) saves through the identity update.Screenshots
From a real Host with the simulated Lark provider and the real model. All variants, zh/en and light/dark: https://github.com/BotHarness/BotHarness/tree/claude/1109-conversation-list/docs/assets/pr/1109-conversation-list
Tests
messaging-default-traffic.test.tscovers:wake_mode = silentand no run, and it can still be answered. Unmute wakes again.hourly-limit.messaging-conversation-list-migration.test.tschecks the gen-62 upgrade.external-conversations.test.tschecks the groups and that Block needs a confirmation. It also checks that every action sends the right revision-checked command.human-dm-steer.test.ts › folds many short pending…times out in this container on a cleanmaintoo, so it is not caused by this change.Real Host (DSH 0.2.0-rc.1, OpenCode Go model, simulated Lark provider):
silentwith no run.Merge risk
Human verification
🤖 Generated with Claude Code
https://claude.ai/code/session_01WXjBatxGTRyRSxZYeJpqgH
Generated by Claude Code