Skip to content

feat(threads): add a Threads page listing titled threads - #3774

Closed
jhedlund wants to merge 2 commits into
block:mainfrom
jhedlund:threads/2-page
Closed

jhedlund wants to merge 2 commits into
block:mainfrom
jhedlund:threads/2-page

Conversation

@jhedlund

@jhedlund jhedlund commented Nov 17, 2026 •

Copy link
Copy Markdown

Draft. This builds on #3772; only the second commit is new (feat(threads): add a Threads page listing titled threads). A fork can't stack a PR on another PR, so the diff below includes #3772's commit as well. Once #3772 merges, I'll rebase and this becomes one commit.

Part of #3455.

2-threads-page

Behaviour

  • Where to find it: a Threads page, below Activity in the Messages sidebar, or Cmd/Ctrl+Shift+H.
  • What it lists: titled threads across your joined channels, ordered by newest reply or title change.
  • Rows: a row opens its thread. The list can be filtered by channel, and Rename edits or clears a title in place, with the same conflict check as feat(threads): show shared thread titles in channels and on thread tabs #3772.
  • Unread and working: a row shows unread replies in a thread you follow (Mark read clears them), and how long agents have been working in the thread. Both come from the session's existing thread-activity and agent-activity state. The sidebar entry shows a dot while a titled thread is unread, or how many have agents working.

Scope checkpoint

  • Production budget (second commit only): about 1,050 lines. Tests add about 1,110 lines and docs about 20.
  • Files:
    • ThreadsPage.tsx, Threads.module.css, ThreadsBadge.tsx, thread-signals.ts and icon.png
    • thread-activity-store.ts
    • the activity half of thread-titles.ts
    • page and shortcut registration, and src/app/shell/presentation.ts
  • Relay reads:
    • One #e read per titled channel's roots (in batches of 100, four at a time) when the page first opens.
    • One read per newly titled thread after that. If a read fills its 500-event page, it reads again the roots it left out.
    • None on reopen or reconnect: live replies, including the reconnect replay, keep it current.
    • Refresh repeats the first-open reads.
  • The store stays on for the session once started. It stops, and forgets what it read, when Named threads is switched off.
  • If this is too big: thread-signals.ts and ThreadsBadge.tsx (the unread and working indicators) can come out without affecting the rest.
  • Non-goals: pin and done ([threads/3-marks](https://github.com/jhedlund/buzz-app/tree/threads/3-marks)), agent naming, search across titles, and changes to the relay or to FOUNDATION files.

Verification

🤖 Generated with [Claude Code](https://claude.com/claude-code)

jhedlund and others added 2 commits November 16, 2026 15:48
Read and write the shared thread titles Buzz 0.x, agents and the `buzz`
CLI already set (NIP-AR kind 45010, type `buzz.thread-title`): a titled
thread shows its title under its first message in the channel and on its
thread tab, and renaming a thread tab sets the title for everyone in the
channel. A rename that can't be saved stays on that tab on this device.

One title store per relay session reads joined channels' current titles
and re-reads only channels a live title revision touched. Writes compare
against the revision last seen and report a conflict rather than
overwriting.

Provided by a new optional Named threads plugin (`buzz.threads`), on by
default. While it is off, nothing reads titles and renaming a thread tab
stays device-local, as on main. Channels can't see another plugin's
state, so the plugin turns titles on through a counted switch in the
title store (`enableThreadTitles`, from a `ctx.effect`); counting keeps
titles on when a reloaded plugin's old instance is disposed after the
new one starts.

Part of block#3455.

Co-authored-by: Engineer <f79d52bb0d4ab12c7affaf2235c113a7fc797a9da8f9707757123b67cfafa6c6@buzz.matrixsoftwareinc.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jeff Hedlund <jhedlund@gmail.com>
A Threads page (below Activity in the Messages sidebar, Cmd/Ctrl+Shift+H)
lists titled threads across joined channels, newest reply or title change
first. Rows open the thread, can be filtered by channel, and rename or
clear a title in place; a stale revision reports a conflict instead of
overwriting.

Rows also show unread replies in threads you follow (Mark read clears
them) and how long agents have been working in a thread, from the
session's existing thread-activity and agent-activity state; the sidebar
entry shows a dot or a working count.

Reply times come from one `#e` read per titled thread when it first
appears, then live replies (including reconnect replay), so reopening the
page reads nothing. It stops, and forgets what it read, when the plugin is
switched off. A read that fills its page reads again the roots it left out.

Part of block#3455.

Co-authored-by: Engineer <f79d52bb0d4ab12c7affaf2235c113a7fc797a9da8f9707757123b67cfafa6c6@buzz.matrixsoftwareinc.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Jeff Hedlund <jhedlund@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant