Desktop: live threaded reply renders as a top-level channel row until channel switch
メンテナーはふだん 1 日以内に返信
評価
- 難易度
- 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
broadcasttag - 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) keepsparentId == null || isBroadcastReply(...)only. Unchanged since April. By this filter the reply cannot become a main-timeline entry.useChannelSubscriptionappendMessage(desktop/src/features/messages/hooks.ts) routes replies tothreadRepliesKey(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 flatchannelMessagesKey(channelId)cache viamergeTimelineCacheMessages, with noparentIdcheck. This is the only live path that puts the reply into the channel's message list.- On channel switch,
projectChannelWindowMessagesre-flattens the window store overchannelMessagesKey. 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
- Open channel A in Desktop and keep it in view.
- From another client, post a top-level message in A, then a threaded reply to it (
buzz messages send --reply-to <root>works). - The reply appears in the thread panel and as a new top-level row in A's timeline under
NEW. - 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
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
block/buzz のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
Mobile: opening an attachment names the file after the link text instead of the imeta filename対応中かも @wenhaoone が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
Desktop: private project home channels show no lock icon in the sidebar対応中かも @Bartok9 が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
status:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
agentic-os-org/ANOLISA#6742 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
git-ai-project/git-ai#2406 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
Kc1t/alethe-agents#312 ·
メンテナーはふだん 3 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信