Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Desktop: live threaded reply renders as a top-level channel row until channel switch

オープン
#7,705 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@UgaTheDev がすでに取り組んでいます。

2026年9月18日 から。

  • #7740 @UgaTheDev による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
desktop

調査の方向性

Start with useLiveChannelUpdates in desktop/src/features/channels/useLiveChannelUpdates.ts, then compare its merge path with useChannelSubscription in desktop/src/features/messages/hooks.ts and buildMainTimelineEntries in desktop/src/features/messages/lib/threadPanel.ts. Reproduce the live threaded-reply steps and trace the final render path; done means non-broadcast replies appear only in the thread panel and remain absent from the main timeline after live delivery.

索引モデルが issue の本文から書いたものです。

説明

Filed from Leo Wandersleb's account by his Buzz agent (Bob) on his behalf; Fable 5.1 helped authoring this issue.

Summary

When a threaded reply arrives live (relay push) in the channel the user is currently viewing, Desktop renders it twice: once in the thread panel (correct) and once as a full top-level row in the channel timeline, under the NEW divider. The root message's thread summary row updates correctly at the same time (1 reply · last reply just now), so the same event is counted as a reply and rendered as a channel row simultaneously.

The extra channel row disappears as soon as the user switches to another channel and back. Reloading history never reproduces it. It is purely a live-arrival artifact.

Observed on Buzz Desktop v0.5.23 (Linux, .deb, "You're on the latest version"), replying agent on buzz-acp/buzz-cli, but the reply event is an ordinary human-shaped kind 9.

What the relay holds (verified)

Raw REQ for all kinds in the channel since the root shows exactly one content event for the reply:

  • kind 9, tags: ["h", <channel>], ["e", <root-id>, "", "reply"], ["p", <root-author>]
  • no broadcast tag
  • identical tag shape to the human replies in the same thread

So this is not a second event and not an "also send to channel" reply.

Rendering tell

In the duplicated channel row the @Name mention renders as plain text; in the thread-panel copy the same mention renders as a mention chip. The two copies are produced by different render paths.

Where I looked (main at 4ab4f7860, identical at desktop-v0.5.23 / b9392d9d7)

  • buildMainTimelineEntries (desktop/src/features/messages/lib/threadPanel.ts) keeps parentId == null || isBroadcastReply(...) only. Unchanged since April. By this filter the reply cannot become a main-timeline entry.
  • useChannelSubscription appendMessage (desktop/src/features/messages/hooks.ts) routes replies to threadRepliesKey(channelId, rootId) and returns early unless broadcast. Correct.
  • useLiveChannelUpdates (desktop/src/features/channels/useLiveChannelUpdates.ts, ~L340) merges every live event, including threaded replies, into the flat channelMessagesKey(channelId) cache via mergeTimelineCacheMessages, with no parentId check. This is the only live path that puts the reply into the channel's message list.
  • On channel switch, projectChannelWindowMessages re-flattens the window store over channelMessagesKey. The window store never received the reply (the subscription path excluded it), so the row vanishes. That matches the observed behaviour exactly.

I could not find the final hop that turns the cached reply into a rendered top-level row (the memoised filter above should drop it), so the duplicate may come from a component I did not read. The useLiveChannelUpdates merge is the strongest suspect and is inconsistent with the subscription path either way.

Repro

  1. Open channel A in Desktop and keep it in view.
  2. From another client, post a top-level message in A, then a threaded reply to it (buzz messages send --reply-to <root> works).
  3. The reply appears in the thread panel and as a new top-level row in A's timeline under NEW.
  4. Switch to channel B and back to A: the extra row is gone.

Expected

A threaded reply without broadcast=1 never renders as a main-timeline row, live or from history.


Filed from Leo Wandersleb's account by his Buzz agent (Bob) on his behalf; Fable 5.1 helped authoring this issue.

主要言語
Rust
スター
35.6k
フォーク
4.7k
平均マージ
2日 4時間
マージ済み PR(30日)
202

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

block/buzz のほかの issue

block/buzz の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。