buzz icon indicating copy to clipboard operation
buzz copied to clipboard

Reply forks sub-threads unlike every other messenger, and Inbox/Channels disagree on where replies land

Open Giszmo opened this issue 1 month ago • 3 comments

Summary

Reply means "fork a sub-thread" in Buzz, but in every mainstream messenger it means "reference that message, here". Making it worse, the Channel thread panel and the Inbox handle the reply target differently, and neither shows clearly where a message will land. The result is a confusing, deeply nested conversation tree. This is a design issue, not a bug report with a one-line fix.

How other messaging apps handle Reply

  • WhatsApp, Signal, Telegram, iMessage: Reply puts a quote of the target above your message. The conversation stays flat and in time order. Tapping the quote jumps to the original.
  • Discord: same. Reply is an inline quote with jump-to. A thread is a separate, explicit "Create Thread" action.
  • Element / Matrix: has both, as two separate buttons: "Reply" (quote, flat) and "Reply in thread".
  • Slack: the channel action is labeled "Reply in thread". Inside a thread, nothing nests further.

So users expect Reply to be a reference, and forking to be a deliberate, separately labeled action. A new Buzz user writes:

Alice: Didn't we discuss this already? Bob (Reply on a message further up): Yes, Alice, we did here.

Any other app keeps Bob's answer in line, with a pointer to the old message. Buzz moves it into a new branch under the old message, far from where Alice will look.

How Buzz behaves today (ce3fc78)

Reply always forks

  • In a channel, Reply on a message opens its thread. That's fine, but it's labeled plain "Reply".
  • In a thread, Reply on any message, not just the last one, makes the new message its child. That message renders as an indented branch, collapsed behind an "N replies" row (threadPanel.ts, appendExpandedReplies).
  • A linear back-and-forth (each message replying to the previous one) indents one level per hop and becomes a staircase.
  • To add to an existing branch later, you either Reply on the fork parent (adds a sibling) or Reply on the branch's latest message (one level deeper). There is no way to continue a branch as a branch, and no way to open a branch as its own view.

Flat and nested messages look alike

Same author, a few seconds apart, in one thread:

1             (thread level)
2             (thread level)
3  -> reply to 1
4  -> reply to 3
5  -> reply to 4
2.1           (thread level, plain send)
2.2           (thread level, plain send)

renders as

Leo  1
       3
         4
           5
Leo  2
     2.1
     2.2
  • 2.1 and 2.2 look like a sub-thread of 2, but they are siblings of 2 at thread level. They only look grouped because continuation grouping (hasSameMessageAuthor + isWithinGroupingWindow, 10 minutes, MessageThreadPanel.tsx) hides their headers. That grouping ignores depth, so 3 is also drawn as a header-less continuation of 1.
  • Ordering differs too. A nested reply is pinned under its parent whatever its timestamp, while thread-level messages sort by created_at. Back-dating 3 changes nothing. Back-dating 2.1 moves it above 2, and 2 then renders as 2.1's continuation. A reply back-dated before its own parent still renders under the parent, with its own header and a timestamp older than the message it answers.

Inbox and Channels disagree

Channel thread panel Inbox
Reply target after sending Resets to the thread head (handleSendThreadReply, useChannelPaneHandlers.ts) Stays set until you switch conversations (InboxDetailPane.tsx)
Reply on the current target Toggles back to the thread head, and the banner disappears Toggles the target off, with no visible change
Target when you never hit Reply The thread head The parent of the message you opened, so an answer to an Inbox mention lands beside it, not under it (capturedDefaultParentId)
"Replying to" banner Shown when the target isn't the thread head Hidden when the target is the Inbox item itself
Depth Indented branches Rendered flat. A reply that forked looks like the next message in the thread

So in the Inbox, a second message silently lands in the same branch as the first. In Channels, it goes to thread level. In both views the composer gives no reliable hint which of these will happen.

Even when the banner is shown, it is easy to misread. It leads with the author's name and shows the target only as one truncated grey line. In practice we answered one message and the reply landed under the previous message by the same author, with the banner up the whole time.

Proposed fix

  1. Reply becomes a reference. In a thread, Reply posts at the current level and adds a q tag (NIP-18 quote) for the target. It renders as a compact quoted snippet that jumps to the original. This matches WhatsApp, Signal, Telegram, Discord and Element.
  2. Forking is explicit. A separate "Start sub-thread" action, plus "Reply in thread" as the channel-level label (Slack, Element).
  3. The composer sits where the message will land. Continuing a sub-thread moves the input inline into that branch. Its position shows the destination, so no sticky "Replying to" state is needed. Optionally, a branch can also open as its own view.
  4. Only real structure looks like structure. Continuation grouping must not span different parents or depths. A linear chain must not indent on every hop.
  5. One behavior in both views. The Inbox and the Channel thread panel use the same actions, the same after-send reset and the same depth rendering.

Steps 1, 2 and 5 can ship independently of 3 and 4.

Related

  • https://github.com/block/buzz/issues/2851 asks for more nesting (the opposite direction)
  • https://github.com/block/buzz/pull/7036 inline expansion of a whole thread in the channel timeline
  • https://github.com/block/buzz/issues/7044, https://github.com/block/buzz/issues/7625 other Inbox bugs

Giszmo avatar Oct 21 '26 06:10 Giszmo

I'd like to support this request and extend it explicitly to the main channel timeline, not only replies within an existing thread.

I've just started evaluating Buzz as a Slack alternative and created my own community. Clicking Reply opens a separate thread, which reproduces one of the main reasons I'm looking to move away from Slack.

What I need is a choice between two clearly separate actions:

  • Reply / Quote reply: post the response in the current conversation's main chronological timeline, with a compact reference to the original message. Clicking or tapping the reference should jump back to that message, as in WhatsApp or Discord.
  • Reply in thread / Start thread: deliberately open a separate discussion when that is useful.

The same choice should work in channels and DMs, consistently across desktop, web, iOS and Android. Being able to reply to an older message while keeping the answer visible to everyone following the main conversation is important for our use case.

A per-user or per-channel preference for the default reply behavior would also be useful, while keeping both actions available. Changing the thread panel layout or expanding a whole thread inline would not address the same need.

Is this main-timeline quote-reply behavior within the intended scope of this issue, or would you prefer a separate feature request? For us, it is a significant factor in deciding whether to adopt Buzz.

boesbo avatar Nov 01 '26 12:11 boesbo

We can add tag-level evidence to this, plus a concrete rule.

What happens. In a channel thread, replying to a message inside the thread produces a two-tag event:

reply to a message inside a thread   ["e", <thread-root>, "", "root"]
                                     ["e", <clicked-message>, "", "reply"]    -> depth 2

reply at the thread root             ["e", <thread-root>, "", "reply"]        -> depth 1

So the human's reply forks a branch, while anything answering at the thread root — including an agent that follows the layer-1 rule already documented in the ACP harness — lands beside it at depth 1. The visible result: the human is reading inside the depth-2 branch, the answer sits outside it, and the human concludes that nobody replied. We have seen replies accepted by the relay (accepted=true) that were simply not visible from the branch the user was in.

Where the fork is minted. desktop/src/features/messages/lib/threading.ts, buildReplyTags:

if (parentEventId === rootEventId) {
  tags.push(["e", rootEventId, "", "reply"]);   // depth 1
  return tags;
}
tags.push(["e", rootEventId, "", "root"]);
tags.push(["e", parentEventId, "", "reply"]);   // depth 2

The caller (desktop/src/features/messages/hooks.ts:123) passes the clicked message as parentEventId and computes the thread root separately via resolveReplyRootId(...), but the root is never used as the anchor. The clicked message becomes the parent.

Mobile takes the same path: mobile/lib/features/channels/send_message_provider.dart:243 (_buildReplyTags) and mobile/lib/features/channels/compose_bar/helpers.dart:477.

This contradicts intent already documented in the agent path. From crates/buzz-acp/src/queue.rs:

Human-facing turns are anchored so replies stay readable at layer 1:

  • in a thread → anchor to the thread ROOT (no depth-2 nesting)

Proposal. Inside a thread, anchor at the thread root; the clicked message becomes a quote / jump target, not a parent. Structure stays at one sub-level; pointing is presentation.

For messages already written nested. Key thread children by rootId rather than parentId in threadPanel.ts (buildDirectChildrenByParentId), and attribute descendant stats to the thread head, so existing depth-2 rows render beside their siblings instead of behind a collapsed branch. No data migration needed.

We have this working on both paths, with the desktop test suite green (28/28 across threading.test.mjs and threadPanel.test.mjs). Happy to attach the diff or open a PR if the direction is acceptable.

Tension worth naming. #2851 asks for the opposite — real nested replies for agent-to-agent sub-conversations. We are not asking to remove that capability. We are asking that plain Reply not create nesting by default, so a thread reads as one level unless the user deliberately branches. Cross-referencing so a maintainer can settle the default.

gregb100 avatar Nov 14 '26 18:11 gregb100

Same experience here. In a community with several agents, sub-thread forking makes it very easy to lose track of where a conversation is. Agent↔agent exchanges nest a level per reply, and replies sometimes end up in a different branch than expected. #8841 (per-community flat threads) looks like the right fix. Linking it here for anyone following this issue.

00al avatar Nov 16 '26 13:11 00al