Repository navigation
feat(dms): name blocking agents clearly, leave agents out of DM names, let owners remove their agent - #3744
Conversation
When an agent's add policy refuses a DM open or add, the relay now names the agent (block/buzz#9601). The native and browser hosts pass that refusal on as `policy:<policy> (agent <pubkey>)` instead of the generic retry message, and opening or adding a DM turns it into "Only <Name>'s owner can add it to a DM." or "<Name> can't be added to a DM." Every DM opener and the members dialog already show the error's own words, so they all name the agent. Without a readable name, it says "this agent". Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A DM's name lists its people and never its agents, unless no other person is in it. "+N" counts people only, and member counts and lists still include agents. One shared rule feeds the sidebar, Activity, drafts, search, and link previews. Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The relay can commit an add and its answer be lost. Before reporting the add failed, read the signed roster: if this DM now holds them, or a DM the viewer was not in holds its people and them, the add landed there. Only when the roster shows no such change does it fail, so adding again never resends an add that already landed. Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
wesbillman
left a comment
There was a problem hiding this comment.
🤖 Star Lord
Changes needed at bd27509. Recovery can open the wrong DM or invite another membership write after the first add committed. Reviewed from source.
Guessing from rosters can't be exact: a roster can trail the commit, a superset can match, and refusals were reconciled too. The lost-reply fix returns as a relay change that answers a replayed command with its saved result. This reverts commit bd27509. Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 Carl, Morgan's agent: @wesbillman the lost-reply recovery is reverted (696572a), so this PR is back to the naming rule and the blocking-agent error. Could you re-review? |
## Problem Two follow-ups to growable DMs (#9153), matching desktop block/buzz-app#3744: 1. When an agent's add policy blocks a DM, mobile shows a generic error. The person can't tell which agent blocked it or whose owner to ask. 2. DM names list every member, agents included, so a DM with one person and their agent reads like a group, and "+N more" mixes agents with people. ## Change **Name the blocking agent.** The relay names the agent in that refusal (#9601). Mobile shows the agent's name: "Only Scout's owner can add it to a DM." or "Scout can't be added to a DM.", starting with "Couldn't add them." when adding to an existing DM, and "this agent" when the name can't be read. Against a relay without #9601, the error is the same as before. **Leave agents out of DM names.** A DM's name lists its people and never its agents, unless no other person is in it (just you and agents), when it names the agents. "+N more" counts people only. Member counts and member lists still include agents. The shared DM label feeds the list, headers, details and Activity. Agent means the profile's existing agent flag; a profile that hasn't loaded yet counts as a person until it says otherwise. ## Screenshots Temporary headless renders with test data, not committed. ### Name the blocking agent Add people, refused by an agent's owner-only setting: | | Light | Dark | |---|---|---| | Narrow |  |  | | Wide |  |  | ### DM names without agents Ana alone, Ana with two agents (named "Ana", count still 3), and only the two agents (named by them): | | Light | Dark | |---|---|---| | Narrow |  |  | | Wide |  |  | ## Tests - Blocking agent: an open and an add name the agent, fall back to "this agent", and leave other refusals as they were. - DM names: people and agents, only agents, more than three people and agents, and a profile that hasn't loaded yet. The lost-reply recovery was taken out after review. It comes back as a relay change that answers a replayed signed command with its saved result, so the app can resend the same event instead of guessing from rosters. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
wpfleger96
left a comment
There was a problem hiding this comment.
🤖 Reviewed from source at 696572a2. The refusal readers in Rust and TypeScript match the relay's policy:<policy> … (agent <hex>) wording from block/buzz#9601 (buzz-db store/dm.rs), and the no-owner case can't reach them because that query only returns agents with an owner. dmNamedParticipants gets full profiles at every caller, and the sidebar's cached labels refresh when profiles change, so an agent whose profile loads late drops out of the name. The earlier lost-reply findings no longer apply now that the recovery is removed. No blocking concerns.
An agent's add-policy refusal named the agent by its raw profile name, so two agents called Scout read the same. Name it with the identity label the app uses elsewhere ("Morgan’s Scout", "Alice (agent)"), and name its verified owner as the one to ask: "Only Morgan can add Scout to a DM." Without a verified owner, it reads "Only the owner of Scout can add it to a DM."
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The relay lets an owner remove their own agent from a DM, but members' actions still offered no removal in a DM, left from when a DM could not change. Offer Remove from DM for an agent the viewer owns. No one may remove a person or another's agent from a DM, as the relay decides. Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🤖 Carl, Morgan's agent: pushed two follow-ups (head 5e3e688), so @wpfleger96 your approval needs a fresh look, and @wesbillman too if you have time:
The description and screenshots are updated. |
…nt from a DM (#9921) ## Problem Two follow-ups to growable DMs on mobile, matching desktop block/buzz-app#3744: 1. When an agent's add policy blocks a DM, the message names the agent by display name only, so two agents called "Scout" read the same, and it never says whose owner to ask. 2. Once you add your own agent to a DM, you can't take it out. The relay allows it, but mobile hid Remove in every DM. ## Change **Name the blocked agent clearly.** The refusal now uses the app's identity labels for the agent and its owner: - Only its owner can add it, owner known: "Only Morgan can add Scout to a DM." - Only its owner can add it, owner unknown: "Only the owner of Scout can add it to a DM." - No one can add it: "Scout can't be added to a DM." - When adding to an existing DM, all start with "Couldn't add them." - If the name can't be read, it says "this agent". Labels are compared against the people in the DM, so two same-named agents read as "Morgan's Scout", and an agent that shares a person's name reads as "Scout (agent)". The owner is named only when it is verified from the agent's signed profile. **Let owners remove their own agent from a DM.** On a DM member's profile, an agent you verifiably own now has "Remove from DM", confirmed with "Remove from DM?". People never get Remove in a DM, and admin and role actions stay out of DMs, matching the relay rule. ## Screenshots Temporary widget renders with test data, not committed. The refusal render passes the shared wording a known owner and a disambiguated agent label; label resolution itself is covered by the tests below. ### Blocked agent | | Light | Dark | |---|---|---| | Narrow |  |  | | Wide |  |  | ### Remove from DM | | Light | Dark | |---|---|---| | Row, narrow |  |  | | Row, wide |  |  | | Confirm, narrow |  |  | | Confirm, wide |  |  | ## Tests - Wording for every case, plus opening and adding with a verified owner, two same-named agents, an agent sharing a person's name, and owner unknown. - Remove from DM: the owner removes their agent after confirming; no Remove for another person's agent, an unowned agent, or a person. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> Signed-off-by: Tom Brow <tomb@block.xyz> Co-authored-by: Carl <c217fe6b9d958f41c3a5e030dccc7f626775a923089cb6491305eade75ea1f1b@buzz.block.builderlab.xyz> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Tom Brow <tomb@block.xyz> Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost>
wpfleger96
left a comment
There was a problem hiding this comment.
🤖 Re-reviewed from source at 5e3e6881. The refusal now names the agent through the app's identity-name resolver, so same-named agents and a person with the same name come out distinct. For an owner-only refusal it names the owner from the agent's signed owner attestation, and falls back to "the owner of …" when there's no attestation. Remove from DM is offered only for an agent the viewer owns, which matches the relay's DM rule in side_effects.rs: anyone may leave, and an owner may remove their own agent. The new search and link-preview tests cover the DM-name surfaces that had no test before. No blocking concerns.
…rotect-own-channel-floor * origin/main: (25 commits) feat(navigation): go back and forward with ⌘←/⌘→ from an empty composer on macOS (#4304) fix(messages): keep details dialog scrollbar inside its rounded frame (#4340) fix(communities): mark an inactive community read from its menu (#4338) fix(messages): stack details over an inline thread as panels do (#4313) feat(settings): edit base instructions with the shared editor (#4285) chore(deps): upgrade tailwindcss and @tailwindcss/postcss to 4.3.5 (#4150) docs(perf): refresh native thread-scrolling measurements for 2026-11-24 (#4337) feat(dms): name blocking agents clearly, leave agents out of DM names, let owners remove their agent (#3744) Finder: search your messages with ⌘P (#4167) fix(messages): draw no placeholders while a thread opens (#4312) fix(shortcuts): number only communities in the switcher (#4287) fix(messages): measure upward scroll speed over an 80 ms window (#4329) feat(solo): enrich channel menu actions (#4152) perf(messages): drop the :has() rules that restyled every conversation (#4314) feat(messages): open threads, details, panels and media inline (#4218) feat(conversation): show a page's header actions in the workspace toolbar (#4072) Deliver agent-only DMs to desktop agents (#4065) fix(notifications): keep archived and hidden channels off the Dock dot (#4103) ci: parallelize unread browser journeys (#4296) ci: parallelize independent history-loading journeys (#4289) ... Signed-off-by: Will Pfleger <wpfleger@block.xyz>
Problem
Three follow-ups to growable DMs (#2670):
Change
Name the blocking agent. The relay now names the agent in that refusal (block/buzz#9601). Desktop passes the refusal through and shows the agent's name:
The agent and owner use the app's identity labels, so two agents with the same name read differently ("Morgan's Scout"), and an agent that shares a person's name reads as "Scout (agent)". The owner is named only when the agent's profile carries a verified owner signature.
This is handled once where the app opens and adds DMs, so every DM entry point names the agent with no screen changes. Against a relay without #9601, the error is the same as before.
Leave agents out of DM names. A DM's name lists its people and never its agents, unless no other person is in it (just you and agents), when it names the agents. "+N" counts people only. Member counts and member lists still include agents. One shared rule feeds the sidebar, Activity, drafts, search and link previews. Agent means the profile's existing agent flag; a profile that hasn't loaded yet counts as a person until it says otherwise.
Let owners remove their own agent from a DM. In a DM's member list, an agent you verifiably own now has "Remove from DM", with a "Remove agent from DM" confirmation. People never get Remove in a DM, and admin and role actions stay out of DMs, matching the relay rule.
Mobile match: block/buzz#9875 (names and DM labels), block/buzz#9921 (blocked agent wording and Remove from DM)
Screenshots
Name the blocking agent
New message, refused by an agent's owner-only setting with no verified owner (temporary headless render with test data, not committed):
DM names without agents
Sidebar with three DMs: Alice alone, Alice with two agents (named "Alice Fixture", count still 3), and only the two agents (named by them). Temporary headless render with test data, not committed.
Remove your agent from a DM
DM member list with your verified agent Scout: the actions menu, then the confirmation. Temporary headless render with test data, not committed.
Tests
The lost-reply recovery was taken out after review. It comes back as a relay change that answers a replayed signed command with its saved result, so the app can resend the same event instead of guessing from rosters.
🤖 Generated with Claude Code