Repository navigation
feat: let people delete their messages and react to messages - #467
Merged
Merged
Conversation
Only a message's author deletes it, leaving "Message deleted" for everyone. A pi context edit
replaces it for later model requests; runs that already read it keep what they learned. Anyone
in the channel can add or remove emoji reactions on people's messages and agents' replies,
using old Ace's flat { from, emoji } shape. Both are live on watches that opt in with `actions`.
Editing stays hidden for now.
Why: packages/channel/src/messages.ts#function remove | only a message's author deletes it, and deletion replaces it in later model context through a pi context edit, never by rewriting or removing entries
Why: packages/channel/src/messages.ts#function react | add and remove name the result rather than toggling, so repeated requests are no-ops; build the list before assigning it into the document, since later mutation is lost
This was referenced Oct 16, 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.
Part of #25: deletion and reactions. Editing stays hidden and is left for later.
ace.deletionentry carries a pi context edit that replaces the message with<author>: [deleted this message]in later model requests. Runs that already read it keep what they learned, and text already folded into a compaction summary stays there.{ from, emoji }shape in a newace.messagesv1 conversation document.reacttakes an explicitremove, as old Ace'schat:reactdid, so repeating a request does nothing.reactanddeleteops. Watches that passactions: truereceivedeletedevents and completereactionssnapshots. Older clients get neither, but replay still drops a deleted message's text. Authors are stamped by the gateway and peer hosts, and hosted channels run the sameChannel.handle. Archived channels refuse both ops.Timelinetoolbar (onReact,onCopy,onDelete,actions),MessageToolbar, andReactionschips inconversation.tsx. Delete asks for confirmation in aDialog, following theDeleteChannelpattern.docs/data.md).Smoke-tested on an isolated host (
ace serve --loopback) with a channel restored from that backup:Not tested: reactions on agent replies (no model was called), hosted channels, and peer hosts.
Built in Ace
Built with Claude Code outside Ace, in a session already running there; no Ace gap involved.