You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a134af9
Browse filesBrowse the repository at this point in the historyBrowse files
committed
feat: shared thread titles on NIP-AR artifacts
A thread's title is a kind-45010 artifact with type buzz.thread-title
(the name proposed upstream in #6739):
- d = UUIDv5(namespace, "buzz.thread-title:" + root). Folding the type
into the name means a future type change gets fresh ids, since NIP-AR
never reuses a deleted d.
- h = channel, root = thread root, title tag. The title is also copied
into content for readers that ignore tags; relay search does not index
kind 45010, so titles are not searchable yet. Clearing is op=delete;
setting again after a clear is restore.
The convention lives in buzz_sdk::thread_title (type, namespace, head
selection, write planning, revision builder) so the CLI and the desktop
write byte-identical artifacts.
CLI: `buzz threads title set|clear|get|list`. Writes plan
create/update/delete/restore from the current head and re-read on head
conflicts. `set --if-unset` leaves an existing or cleared title alone.
buzz-acp: when a human's new top-level channel message mentions agents,
the first-mentioned agent is asked to title the thread with --if-unset.
Replies, edits, DMs and agent-authored roots never trigger it.
Desktop, through Tauri commands (artifact queries are HTTP-only on the
relay):
- The thread panel header shows the title with an inline editor (pencil,
Enter saves, Escape cancels, blank clears). Edits carry the revision
they started from, so a concurrent rename is reported, not overwritten.
- The title sits on its own line under the author of a thread root in
the channel (clickable, opens the thread) and on Inbox rows and the
Inbox detail header.
- Titles are looked up per root by their derived d, in batches of 100,
and lookups made in the same tick share one query, so lookups stay
exact however many titles exist. A returned title only counts when its
d matches its root.
- Artifact events in the open channel refresh titles live.
Co-authored-by: Engineer <f79d52bb0d4ab12c7affaf2235c113a7fc797a9da8f9707757123b67cfafa6c6@buzz.matrixsoftwareinc.com>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Jeff Hedlund <[email protected]>
0 commit comments