Skip to content

feat(desktop): developer mode display style — prompt-first UI with pinned/recent channel list, palette, and split-pane side chats - #3459

Draft
joahg wants to merge 141 commits into
block:mainfrom
joahg:joah/dev-mode-display-style
Draft

joahg wants to merge 141 commits into
block:mainfrom
joahg:joah/dev-mode-display-style

Conversation

@joahg

@joahg joahg commented Jul 29, 2026

Copy link
Copy Markdown
Member

Adds a developer mode display style to the Buzz desktop app (AGNTOPS-354): a prompt-first, keyboard-driven, Amp/Claude-Code-style surface layered on the existing channel structure.

Core flow

  • One monospace composer. Tab / Shift+Tab cycles the target between plain human chat and every available agent (managed + shared relay agents). The default target is the first managed (local) agent — chat mode is only the default when no agents exist.
  • Enter on a fresh prompt spawns a new channel, attaches/tags the selected agent, and sends the prompt there. Agents are not limited to a single channel.
  • Agent-directed prompts carry an @Agent prefix on the wire (plus the mention tag) so the standard UI and other clients see who a prompt is for — but dev mode lifts it out of the message body and renders it as a small “to Agent” line (in the agent's chat color) under the author name. The composer shows its Tab-cycled target the same way: a “to Agent” line at the top of the chat box (no more bordered pill), with “chat” / “working…” for the other states.
  • Prompts render as cards in the channel (borderless until ↑/↓ selects one); agent replies land in the card's thread on the same indent as the prompt. ↑/↓ (empty composer) walk cards with zero layout shift; Enter on a card opens a split-screen side chat scoped to that prompt's thread.
  • Kind-7 reactions render as chips on prompts and replies — agents react while working, so the chips double as a working/loading indicator without any architecture change.
  • Every prompt card shows the leading run of agent replies inline in the channel — everything the agent said before a human responded, no matter how old the prompt; from the first human reply onward, messages collapse into a "… N more replies" affordance that opens the thread pane (replaces the old newest-three auto-expand model).

Channel list: pinned chats, recency order, unread indicators

  • The channel list is always visible on the left; it dims while a channel is focused. The composer covers only the channel pane — full width when creating a new session or navigating the channel list.
  • Per-channel pin toggle (hover a row → pin/unpin): pinned chats render in their own pinned section at the top; all other chats sit beneath. Pins are device-local (localStorage) — the channel protocol has no pin field.
  • Both sections auto-order by last activity, newest first; new channels start unpinned near the top of the lower section.
  • Unread indicators: unread channels render with a brighter, bold name plus a dot. Dev mode tracks unread channel-level posts only — a new top-level prompt lights the dot, unopened thread replies don't. Opening a channel marks its top-level timeline read (same passive NIP-RS path the standard channel screen uses); standard UI unread behavior is unchanged.
  • Draggable channel-list width: a vertical divider on the list's right edge (pointer + keyboard, clamped 200–480px, persisted per device); the top bar's columns track the width live while dragging.
  • from the fresh composer highlights/previews channels (transcript previews behind), Enter opens, Escape backs out; Escape inside a channel returns to the list. Clicking a channel row opens it immediately on the first click — keyboard navigation stays preview-first.

Command palette

  • ⌘K anywhere (or / on an empty composer) opens an Amp-style palette: channel search across all sessions, agent configuration, appearance/profile/notifications settings, a keyboard shortcuts pane, switch to standard UI, and a name-color picker.
  • With a channel focused or previewed, the palette offers add someone to # channel (searches people & agents; local managed agents are attached with a running harness, others added with the right role), leave # channel (archives instead when you're the last human member, since the relay refuses to remove the last owner), archive # channel, and pin/unpin. While typing, an action verb typed literally ("archive", "leave", "pin"…) ranks first, then matching channels, then incidental action matches.
  • Archiving or leaving a chat lands on the most recently active non-pinned chat (fresh composer only when none remain).

Window chrome & focus

  • Developer mode replaces the shared top chrome: its gray surface stretches to the top of the window, with fixed-px clearance so the title never sits under the macOS traffic lights (~32px residual clearance when the 56px community rail absorbs most of their footprint).
  • The top bar is two columns aligned with the panes below: "buzz · developer mode" sits over the channel list and the active/previewed channel name + member summary sit left-aligned over the transcript — tracking the navigator divider live while it's dragged. The transcript itself carries no duplicate channel name/topic header.
  • No key hints in the UI: the composer hint footer, navigator footer, and top-bar shortcut labels are gone. Typing ? in an empty composer (or the palette's "keyboard shortcuts" entry) opens a shortcuts pane listing every dev-mode binding.
  • Refocusing the window restores the last-focused input; clicks on dead space never blur the active composer.
  • Prompt-card selection is keyboard-only (↑/↓ + Enter); clicking a card or message never selects it or steals focus — message text stays drag-selectable, and a click that ends without a selection returns focus to the composer. While a card is selected the caret leaves the message box entirely (typing is disabled); the shell drives ↑/↓/Enter/Escape, and clicking the box clears the selection to resume typing.

Split-pane side chat

  • Channel and side-chat composers sit side by side; draggable divider (pointer + keyboard, clamped 25–75%, persisted per device).
  • Both composers auto-grow upward with their content (wrapped lines included), capped at 40% of the window before scrolling internally; the top border doubles as a drag handle (pointer + keyboard) that sets a persisted minimum height.
  • Inactive pane dims; ←/→ on an empty composer switches panes.
  • ⌥↑/⌥↓ steps through the visible channel list (pinned then recent) directly from the composer — the caret never leaves the textbox, works mid-draft, and from the fresh composer ⌥↑ opens the nearest channel.
  • ⌘N jumps to the fresh composer to start a new channel from anywhere in dev mode. ⌘T opens a draft side chat in the open channel: the pane opens before any thread exists; the first send posts a root message to the channel (exactly like the main composer) and the pane attaches to that new thread for follow-ups.

Channel naming

  • Channel names are generated by an agent: a new buzz-acp complete subcommand runs a bounded one-shot ACP prompt through the tagged agent's own harness (same command/model/env resolution as agent spawn), bridged by a generate_agent_completion Tauri command. The exchange is a private subprocess — it never appears in any channel.
  • Channels are created instantly under a neutral unique new-session placeholder and renamed asynchronously when the title arrives; a lingering placeholder makes naming failures visible instead of masquerading as generated titles.
  • Falls back to the mesh LLM node's OpenAI-compatible endpoint when no managed agent completion is available.

Color

  • Deterministic per-author name colors hashed from pubkey into a curated palette, with a device-local hex override settable from the palette (a synced profile color field would need schema/event changes).
  • The composer's “to Agent” line and caret wear the selected agent's chat color.
  • Conservative keyword highlighting rendered as React spans: inline code, @mentions. Mentions matching one of the message's p-tag members render as plain colored text in that author's chat color (no box); multi-word agent names like amp (local) are matched longest-first. On human-authored messages, a leading mention is treated as direction, not prose — stripped from the body (side-chat header preview included) and shown as the “to Agent” line. Agent-authored messages keep their mentions inline in the body as normal colored text.
  • #channel references: typing # in either composer autocompletes known channel names (↑/↓ select, Tab/Enter insert, Esc dismiss); accepted references serialize as plain #channel-name text (the same format the standard UI links), and known references in the transcript render as clickable links that open that channel without stealing composer focus. Multi-word names match longest-first, same as mentions.
  • URLs render as clickable Slack-style links (link icon + fetched page title when available, else the scheme-stripped URL truncated at 64 chars) opening in the system browser; a new generic fetch_page_title Tauri command (https-only, 4s timeout, 256KB cap) resolves og:/twitter:/<title> titles.

Layout containment

  • Chat content can no longer push the layout past the right edge of the window: the dev-mode shell (a flex item) now has min-w-0 so nowrap content (truncated link labels, thread-header previews) can't inflate its intrinsic width, and the transcript/side-chat scroll viewports clip residual horizontal overflow. Long unbroken words and link labels wrap inside their pane.
  • New Playwright regression test (dev-mode-overflow.spec.ts, smoke project) sends a long unbroken message, opens the side chat, and asserts nothing extends past the window.

Markdown rendering

  • Agent markdown renders as rich formatting in dev-mode transcripts: a block-level layer (fenced code blocks, headings, bullet/numbered lists with hanging indents, blockquotes, horizontal rules) over the existing span-based inline highlighter, which now also handles bold, italic, strikethrough, and [label](url) links (labeled links render via the Slack-style link component using the written label, skipping the title fetch). Emphasis delimiters are strict so snake_case and arithmetic stay plain prose; everything renders as React nodes — never HTML — and plain human chat renders exactly as typed.

Channel members & join/leave narration

  • The top bar shows who is in the chat at any scale: small channels (≤4 members) list every name in its author color; larger ones collapse to a compact N members count read straight off the channel record — a 1000-member channel never fetches its roster just to render the header. Both refresh live off the same membership invalidation the standard UI uses.
  • Clicking the member summary (or the palette's view members action) opens a searchable member browser in the command palette: colored names with role/agent details, filtered as you type, rendering capped at 40 rows with a "type to narrow" overflow hint so huge rosters stay responsive.
  • Member joins/leaves render in the channel: kind:40099 membership system messages (already fetched in the channel timeline) now render as muted narration rows (→ alice joined, ← bob left, removed by …) interleaved chronologically with the prompt cards. Card ↑/↓ navigation skips them.
  • Departed members no longer appear in the member list, so their names resolve through a batch profile lookup fallback in useMemberNameResolver.
  • New Playwright regression test (dev-mode-members.spec.ts, smoke project) plus unit tests for the 40099 payload parser.

@user mentions

  • Typing @ in either dev-mode composer autocompletes users: current channel members rank first, then relay-wide search_users results (self excluded). ↑/↓ select, Tab/Enter insert @Display Name , Esc dismisses — same keyboard contract as #channel autocomplete.
  • Accepted mentions stay as plain text in the message; at send time any accepted @Name still present emits a ["p", pubkey] tag (multi-word names match longest-first; editing a mention away drops its tag; user@example.com never triggers).
  • Mentioning a non-member best-effort adds them to the channel (mirroring how the targeted agent is auto-attached); a failed add never blocks the send — the p tag still goes out.
  • New Playwright regression test (dev-mode-mentions.spec.ts, smoke project) plus unit tests for mention extraction.

Notes

  • Monospace text renders in JetBrains Mono (bundled via @fontsource-variable/jetbrains-mono, wired into Tailwind's font-mono stack with the system stack as fallback).
  • Display style persisted in localStorage (⌘⇧D toggles); standard UI untouched.
  • Validation: pnpm typecheck, pnpm check, pnpm test (3826 pass), cargo test -p buzz-acp (639 pass), pnpm build all green.

Linear: AGNTOPS-354

Parent & sub-channels (agent sessions)

  • Channels can now have sub-channels, identified purely by naming convention — parent-slug--sub-slug, one nesting level — so the relay is completely untouched and existing clients keep working.
  • Only main channels appear in the left navigator; a parent row aggregates its whole family's latest activity and unread state. Opening a channel shows tabs across the top (main, then each sub's suffix, unread dots, + sub) — horizontally scrollable and built off a single-pass parent/child index, so parents with hundreds of subs stay cheap.
  • + sub (tab strip or palette "new sub-channel" action) drafts a prompt; Enter creates the child (inheriting the parent's visibility/type), sends the prompt there, posts a spawn announcement in the parent, and records the relationship + report-back contract in both channels' canvases. Children get LLM-generated names via the same naming path as new channels (renaming only the suffix); sanitizeChannelName now guarantees generated names can never contain --.
  • Membership invariant: every sub-channel member must belong to the parent (parent members need not join every child). Enforced client-side — the palette's add-member search inside a child only offers parent members, the selected agent is added to the parent first, and mentioned non-parent users are skipped from auto-add.
  • Renaming a parent cascades to all children (suffixes preserved) with bounded concurrency; partial failures warn without rolling back the parent rename.
  • CLI/agents: buzz channels create --parent <channel> mirrors the same contract — parent resolution by id or name, caller-membership check, slug sanitization, no nested children, inherited type/visibility, spawn announcement + canvas updates. The ACP base prompt documents how agents spawn sub-channels and report completion back to the parent.
  • New Playwright suite (dev-mode-sub-channels.spec.ts): children hidden from the navigator + exposed as tabs, + sub creation with parent announcement, palette action.

Tabs UX: keyboard cycling & terminology

  • User-facing "sub-channel" copy is now "tab" — the tab strip button reads + tab (test id dev-mode-new-tab), and the palette action is "new tab in # channel" with a ⌘⇧T hint. Internal naming (parent--sub slug convention, canvas metadata, CLI --parent) is unchanged for relay compatibility.
  • ⌘⇧T starts a new-tab draft; ⌘[ / ⌘] cycle backward/forward through a channel's tabs (main + subs), wrapping at the ends.
  • New-tab drafts get an obvious visual treatment: a highlighted banner above the composer ("new tab in # channel · esc cancels") plus a tinted composer background, instead of only a placeholder change.
  • Window-level dev-mode shortcuts (⌘K, ⌘N, ⌘T, ⌘⇧T, ⌘[/⌘]) are consolidated into a new useDevModeShortcuts hook.
  • E2E coverage extended: draft banner + Escape cancel, palette "new tab" search, ⌘⇧T, and ⌘[/⌘] wrap-around cycling.
  • Palette rename: "rename # channel" switches the palette into a rename mode — type the new name, Enter applies. Names are sanitized to kebab-case and de-duped. Renaming a tab edits only its suffix (the parent-- prefix is the parent link); renaming a main cascades to its tabs via the existing useUpdateChannelMutation plan, with an active channel-list refetch so the family stays intact in the mounted dev-mode UI.

Contextual unread indicators that bubble up

  • Unread state bubbles up the hierarchy: a main channel's navigator row lights up when any of its tabs has an unread post or any thread in the family has unread replies — not just for top-level posts in the main channel. Channel-level and thread-level read state stay distinct (topLevelUnreadChannelIds vs. full unread set).
  • Contextual indicators at every level: tabs keep their unread dot while a nested thread inside them is unread (even the active tab); prompt cards show a thread-unread dot; the collapsed "… N more replies" affordance gets unread styling when hidden replies are unread.
  • Attention routing: opening an unread channel from the navigator (click or Enter) routes directly to the unread tab. The newest unread thread's side chat auto-opens only when its unread replies are collapsed (a human already responded in the thread); unread replies that render inline in the main chat view — the leading agent run — are marked read just by viewing the channel, so no side chat is forced open for them. Direct destinations stay exact — tab clicks, palette opens, ⌘[/⌘], and ⌥↑/⌥↓ never reroute.
  • Precise read advancement: rendering a card's inline replies advances thread read state only through the visible run (shared selectInlineVisibleCount helper) — collapsed replies stay unread until the side chat is actually opened. Channel previews from the navigator never clear read state.
  • New projection helpers (unreadThreads.ts: selectUnreadThreadRoots / findUnreadFamilyTarget) with unit tests, a useUnreadRouting hook resolving families via the existing single-pass SubChannelIndex, and a new Playwright suite (dev-mode-unread.spec.ts) covering bubbling, routing, and read-state distinctions. Shell focus/refocus logic extracted to useShellFocusGuards to keep DevModeShell under the file-size limit (no behavior change).

Included from PR #3335

Media attachments

  • Paste an image or video into either composer (main channel or side chat) to attach it: pending attachments render above the composer with image previews / video filename labels, per-file upload progress, error state, and remove buttons. Enter is gated while uploads are in flight; failed sends restore both text and attachments.
  • Sends use the existing pipeline — useMediaUpload + buildOutgoingMessage with NIP-92 imeta tags plus standalone markdown media lines — so attachments are fully compatible with the standard UI and other clients.
  • In both transcript panes, imeta-tagged media and standalone ![alt](url) lines render through the shared Markdown renderer: images open in the standard lightbox, videos get native controls, and everything stays constrained to pane width. Media-only sends work inside an existing channel (a brand-new channel still needs prompt text for naming).

Palette: join channels you haven't joined

  • Palette search now includes open channels the user hasn't joined (already returned by get_channels): they surface only while typing (a relay can have hundreds), labeled "not joined · enter to join", ranked below joined channels. Enter joins and opens in one step. Foreign parent--sub tabs stay hidden unless you're a member of the parent (membership invariant). The left navigator still shows joined channels only.

Developer-mode community rail

  • The community picker (multi-community rail) gets a developer variant when dev mode is active: flat squared monospace tiles with border-based active/hover states, squared unread badge/dot, dashed-border add button, and the dev shell's gray background — no Discord-style rounding or color pop. Standard mode is untouched, and all behavior (switching, drag-reorder, context menu, unread indicators) is shared between variants.

Authenticated link labels (Slack, Google) + copyable link URLs

  • Slack permalinks and private Google files sit behind auth walls, so the generic title fetch showed "Sign in to Block". A new fetch_agent_link_label Tauri command resolves labels through the locally installed sq agent-tools CLI first: Slack channel messages label as author in #channel, DM messages as author with partner, bare channel links as #channel, and Google Docs/Drive/Sheets/Slides show their real file title. Everything is best-effort — missing sq, CLI errors, and timeouts fall back to the generic page-title path, and CLI errors never surface in the UI.
  • The generic HTML title extractor now rejects auth-wall titles ("Sign in…", "Log in…", "Login…") so an unauthenticated fallback renders the bare URL instead of a login page title.
  • Copying a selection containing a transformed link now keeps the URL: dev-mode links carry a data-dev-link marker, and a shell-level copy handler rewrites text/plain so each link serializes as its href (surrounding text preserved) while text/html keeps the pretty labels for rich paste targets. Previously copying a link title could paste as nothing.
  • Native text selection includes links: the link anchor previously rendered as an atomic inline-flex box with a truncating span, so double-click-drag / triple-click selection skipped it entirely. It now flows as plain inline text (labels wrap with the message instead of truncating), so system selection gestures pick up the link — and the copy handler puts its URL on the clipboard.

Per-channel composer drafts

  • Message drafts are scoped per channel instead of following you across channels (AGNTOPS-396, requested in #buzz-dev-mode--per-channel-message-drafts): an in-memory draft map keyed by channel ID stashes the composer text when you switch away and restores that channel's own draft when you return. The fresh/new-session composer keeps its own separate draft slot.
  • Sending consumes the origin channel's draft; a failed send restores the prompt to the channel it was sent from, even if you've navigated elsewhere meanwhile. Switching channels mid-e edit preserves the pre-edit channel draft rather than leaking the abandoned edit buffer.
  • Drafts survive display-style toggles (module-level store, not component state) but intentionally do not persist across app restarts.

joahg and others added 2 commits July 28, 2026 22:34
Prompt-first, terminal-style UI toggled in Settings > Appearance or
Cmd/Ctrl+Shift+D. Tab cycles the composer between chat and agent modes;
Enter on a fresh prompt spawns a stream channel named from the prompt,
attaches the selected agent, and mentions it so it starts working there.
Arrow keys navigate recent session channels.

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Each prompt in a session channel renders as a card containing the
agent's threaded response. With the input empty, Up/Down selects cards;
Enter opens the selected card's thread in a 50/50 split side chat with
its own composer, so follow-up questions carry that thread's context.
Escape unwinds side chat, card selection, then channel.

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
@joahg joahg changed the title feat(desktop): add developer mode display style feat(desktop): developer mode display style with prompt cards and split-screen thread side chat Jul 29, 2026
…e polish (AGNTOPS-354)

- Amp-style command palette (Ctrl+O or / on empty composer): channel search
  across all sessions, settings/agent-config entries, standard-UI switch,
  and a name-color picker
- Explicit channel navigation: up from the fresh composer slides a channel
  navigator out from the left with live preview; enter opens, escape backs
  out; escape inside a channel returns to the navigator
- LLM channel naming via the mesh LLM node's OpenAI-compatible endpoint
  when running, with async rename and slug fallback
- Split-pane side chat: draggable (and keyboard-resizable) divider with
  persisted split, inactive-pane dimming, left/right arrows switch panes
- Deterministic per-author name colors with device-local hex overrides,
  conservative keyword highlighting (inline code, URLs, mentions)
- Square corners on prompt cards, pills, and channel rows

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
@joahg joahg changed the title feat(desktop): developer mode display style with prompt cards and split-screen thread side chat feat(desktop): developer mode display style — prompt-first UI with command palette, channel navigator, and split-pane side chats Jul 29, 2026
joahg and others added 2 commits July 28, 2026 23:26
…split view

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…rome polish in dev mode (AGNTOPS-354)

- Channel list is always visible, dimmed while a channel is focused;
  composer covers only the channel pane, full width only for new sessions
- Device-local channel categories with per-row assignment menu;
  uncategorized/new channels always render below all categories
- Remove the shared top chrome bar in developer mode; dev-mode gray
  reaches the window top with macOS traffic-light clearance
- Window refocus restores the last-focused input; dead-space clicks
  no longer blur the composer
- Kind-7 reactions render as chips on prompts and replies (doubles as
  the agent working indicator)
- Agent replies align with the prompt's indent; selection hint is
  absolutely positioned so up/down navigation causes no layout shift
- Composer mode pill and caret match the agent's chat name color
- Agent-directed prompts carry a visible @agent prefix

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
@joahg joahg changed the title feat(desktop): developer mode display style — prompt-first UI with command palette, channel navigator, and split-pane side chats feat(desktop): developer mode display style — prompt-first UI with categorized channel workspace, palette, and split-pane side chats Jul 29, 2026
joahg and others added 12 commits July 29, 2026 00:42
Channel names now come from the tagged agent's own harness instead of a
prompt slug. buzz-acp gains a 'complete' subcommand (bounded one-shot
ACP prompt returning JSON text); the desktop bridges it through a new
generate_agent_completion Tauri command that resolves the managed
agent's effective harness command/model/env exactly like spawn. Channels
are created under a neutral unique 'new-session' placeholder and renamed
asynchronously when the title arrives, so naming failures stay visible
instead of masquerading as generated titles. Mesh inference remains the
fallback when no managed agent completion is available.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…-style

* origin/main:
  fix(acp): per-runtime env defaults at spawn — isolate Hermes from configured MCP startup (block#3420)

Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Both the channel and side-chat composers now size to their content —
wrapped lines included, not just hard newlines — growing upward to 40%
of the window before scrolling internally. The top border doubles as a
drag handle (pointer + keyboard) that sets a persisted minimum height.

AGNTOPS-354

Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Transcript URLs were blue-underlined spans you couldn't click. They now
render as links — link icon plus the page's og:/twitter:/<title> title
when a new generic fetch_page_title command can fetch it (https-only,
4s timeout, 256KB cap), falling back to the URL without its scheme,
truncated at 64 chars. Clicks open the system browser via the opener
plugin. Trailing sentence punctuation stays in the prose instead of
breaking the href.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…ocus

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…t search

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Pinned chats render in their own section at the top of the channel list;
all other chats sit beneath. Both sections order by last activity, newest
first, with unread dots + bold names driven by the shared useUnreadChannels
state from AppShell.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
@joahg joahg changed the title feat(desktop): developer mode display style — prompt-first UI with categorized channel workspace, palette, and split-pane side chats feat(desktop): developer mode display style — prompt-first UI with pinned/recent channel list, palette, and split-pane side chats Jul 29, 2026
joahg and others added 9 commits July 29, 2026 07:11
Message @mentions whose name matches one of the event's p-tag members
(e.g. the @agent prompt prefix) render as a bordered pill in that
author's chat color — visually matching the composer's mode pill.
Multi-word agent names like "amp (local)" are matched longest-first;
unknown mentions keep the generic highlight.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
The channel name already renders in the app top bar; the in-transcript
duplicate wasted space and repeated the first prompt's text as topic.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…elected

Selecting a card with ↑ now blurs the message box (readOnly while
inactive) so typing can't land in it; the shell owns ↑/↓/Enter/Escape
through a window listener until the selection clears. Clicking the box
clears the selection and resumes typing. Window-refocus and
click-on-message focus restoration skip the composer during card
selection so they can't silently re-arm it.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
⌘N jumps to the fresh composer to start a new channel. ⌘T opens a draft
side chat in the open channel: the pane opens with no thread yet, the
first send posts a root message to the channel exactly like the main
composer, and the pane attaches to that new thread for follow-ups.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
The gutter layout (time · name · content on one line) produced ragged
content columns. Every message now renders a header line — author name
in its chat color, timestamp, reaction chips — with the content on its
own line at the left edge, Slack-style.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…-style

* origin/main:
  feat(agent): fix Anthropic prompt caching with Databricks (+ MCP proxy/TLS passthrough) (block#3463)
  Fix mobile attachment and gallery polish (block#3370)

Signed-off-by: Joah Gerstenberg <joah@squareup.com>
AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Typing # in either composer suggests known channels; Tab/Enter inserts
a plain-text #channel-name reference (the same wire format the standard
UI renders as channel links). Known references in the transcript render
as clickable links that open the channel without stealing composer
focus.

AGNTOPS-354

Amp-Thread-ID: https://ampcode.com/threads/T-019fabca-7cdc-777d-9ccd-ed829c1e60f0
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
joahg and others added 13 commits July 31, 2026 22:12
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Buzz-Channel: 944c169c-89c7-4b9a-96df-f2245d153778
Buzz-Message: buzz://message?channel=6f9e6bb7-7b2b-4361-820b-8e3f7f8941d0&id=bc655460529f07170422d8bd7ced2e54329e751bba396992ba3bc2fa604461b8
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Animate developer-mode channel labels from the unified agent working signal across the navigator, tab strip, and top bar. Bubble sub-channel work to the parent navigator row and respect reduced-motion preferences.

Buzz-Channel: 4049efc7-3dc1-4dfe-9a75-04bf95c8d826
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Buzz-Message: buzz://message?channel=4247131f-72eb-456e-94f3-49ff525141c0&id=6faff3b61a6d861f3e358032835cf131b8145bace0bd118709b6558c8cb6daad
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Buzz-Message: buzz://message?channel=01762161-b85b-4f41-955d-7d9a26aa8af2&id=6d56c1846b874600dfb67693c685f34e7b772fa6b707ad00f54d783a6619cc35
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Buzz-Message: buzz://message?channel=676aa4c0-8813-4797-800f-c3069088fe33&id=34e3cac4802e55388ed90e1b448767ce56762814943e6840cb70a93b7ac13e6c
Co-authored-by: Joah Gerstenberg <me@joahg.com>
Signed-off-by: Joah Gerstenberg <me@joahg.com>
Text typed into the dev-mode composer used to follow the user across
channel switches. The shell now stashes the draft per scope (channel id,
or the fresh composer) on exit and restores it on return; a send
consumes the origin scope's draft and a failed send restores its prompt
to the channel it was sent from. Switching away mid-`e`-edit abandons
the edit buffer and keeps the pre-edit draft, matching Escape.
In-memory only: drafts survive display-style toggles, not app restarts.

Reported in [#buzz-dev-mode--per-channel-message-drafts](buzz://message?channel=125f8109-1b00-41cb-a859-4d3bf4412104&id=aaeb6f582c91a763471e638bf39072d4f1ef9d744f9b2a96c5bd034d43cc4db5)

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019fbdef-4c11-755c-9c6c-01545566fcc5
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…-style

* origin/main:
  fix(relay): allow open relays to set their NIP-11 workspace icon (kind:9033) (block#3998)
  docs: note that addressable channel events scope by d, not h (block#4103)
  docs: fix stale kind count, quick-start numbering, and empty Further Reading (block#2613)
  fix(desktop): keep thread-open affordance in archived channels (block#4012)

Signed-off-by: Joah Gerstenberg <joah@squareup.com>
The stopped_by_app_shutdown field (afcc2ec) grew seven over-limit Rust
files by one line each (types.rs by seven), tripping the desktop file-size
ratchet against main in Desktop Core CI. Reclaim the lines by splitting
packed use groups into rustfmt-stable single-line statements and rewrapping
doc comments to the 100-column budget. No code changes.

Amp-Thread-ID: https://ampcode.com/threads/T-019fbdef-4c11-755c-9c6c-01545566fcc5
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…-style

* origin/main:
  docs(chart): fix ArgoCD example for native OCI sources (full artifact repoURL + path) (block#3426)
  docs(readme): clarify which release asset to download per platform (block#3481)

Amp-Thread-ID: https://ampcode.com/threads/T-019fbdef-4c11-755c-9c6c-01545566fcc5
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>

# Conflicts:
#	README.md
joahg and others added 15 commits August 3, 2026 10:02
The buzz:// deep-link protocol has no channel-only form (id is required
end-to-end), so the new palette entry links the channel's newest root
message, which opens the channel — same convention as manual Slack links.
Hidden for empty channels.

Amp-Thread-ID: https://ampcode.com/threads/T-019fc81d-56dc-73bb-96af-32d13c8bab30
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…-style

* origin/main:
  Polish mobile composer and messaging UI (block#3918)
  ci(linux): enable mesh-llm feature in Linux release and canary builds (block#4524)
  fix(desktop): stop the create-agent provider config probe from erasing keystrokes (block#4411)
  fix(mobile): recover and pace live subscriptions (block#3053)
  feat(acp): deliver system prompt via _meta.systemPrompt for claude-agent-acp (block#4395)
  fix(security): bump nostr crates for RUSTSEC-2026-0225..0232 + default sprig image to published digest (block#4392)
  fix(desktop): back/forward via keyboard chords, mouse X1/X2 buttons, and swipe gestures (block#3778)
  feat(k8s): Kubernetes backend plugin + desktop deploy path (block#4289)
  fix(git): allow deleting the default branch (block#4297)
  feat(projects): add buzz projects CLI commands (NIP-MP kind:30621) (block#4020)
  docs: formal spec for remote agents and their management (block#3748)
  fix(nip-oa): accept raw Nostr tag form in parse_json_array (block#4203)
  perf(relay): serve relay-membership checks from the read replica (block#4124)
  chore(deps): bump nostr-relay-pool for RUSTSEC-2026-0224 (block#4139)
  docs(nostr): document #h requirement for live reaction subscriptions (block#3487)

Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019fccee-fa22-7145-95bc-a3aa0c10a174
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…-style

* origin/main: (25 commits)
  Polish mobile inbox and media flows (block#4512)
  feat: ship Buzz Term (block#4347)
  feat(mobile): sync per-group channel sorting (block#4231)
  feat(mobile): add channel scroll navigation (block#4239)
  feat(desktop): redesign the Huddle experience (block#4281)
  feat(mobile): bring channel menus to desktop parity (block#3940)
  feat(agents): model-tuning parity in global Agent Defaults editor (block#4578)
  Polish Share Compute settings (block#3735)
  fix(reactions): wrap long popover names (block#3834)
  fix(desktop): clarify inherited agent parallelism (block#4010)
  feat(desktop): make onboarding model defaults skippable (block#3968)
  ci: add guarded desktop release cache prewarm (block#4575)
  fix(mobile): recover stale relay sessions (block#4372)
  chore(release): release Buzz Desktop version 0.5.4 (block#4562)
  test(mobile): assert follow boundary semantics (block#4559)
  docs(release): align desktop handoff instructions (block#3988)
  fix: report agent usage per provider round, not once per turn (block#4545)
  fix(desktop): harden Windows installs against Defender block and orphaned Node (block#4382)
  feat(desktop): improve channel template discovery (block#4549)
  fix(desktop): save key backups to authorized path (block#4022)
  ...

Amp-Thread-ID: https://ampcode.com/threads/T-019fccee-fa22-7145-95bc-a3aa0c10a174
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>

# Conflicts:
#	desktop/package.json
#	desktop/src-tauri/src/commands/agent_config.rs
#	desktop/src/app/AppShell.tsx
#	desktop/src/features/channels/hooks.ts
#	desktop/src/features/channels/unreadReadMarker.test.mjs
#	desktop/src/features/channels/useUnreadChannels.ts
#	desktop/src/features/sidebar/ui/CommunityRail.tsx
#	desktop/src/main.tsx
#	pnpm-lock.yaml
Tab strip labels and channel navigator rows render per-character wavy
text while an agent has an active turn (or typing fallback) in that
channel, reading from the unified agentWorkingSignal. Characters are
inline-block spans with staggered animation delays; reduced-motion
disables the animation.

Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019fccf7-a1b2-76d8-9cf1-be6e81fb26aa
The relay's admission control (block#1917) counts EVENT/REQ/COUNT
frames per pubkey at 50 per 5s window. The client opened two REQs per
member channel (~159 for a 72-channel identity), so cold start and
reconnect blew the budget, got the connection rate limited, and replay
re-triggered the limiter on every reconnect.

- Batch live channel-event and mention subscriptions into multi-channel
  "#h" filters, 25 channels per REQ (2N REQs -> ~2*ceil(N/25)).
- Resolve h-less reactions/deletions to their channel via the referenced
  event in loaded timeline caches, mirroring the relay's server-side
  channel resolution (replaces the per-channel withChannelTagFallback).
- Allow reconnect history paging for multi-channel "#h" filters.
- Raise REPLAY_INTER_BATCH_DELAY_MS 50ms -> 1000ms so replay stays at
  8 REQs/sec, under the relay's 10/sec average budget.

AGNTOPS-418

Buzz-Message: buzz://message?channel=0c02d73d-f174-4c5f-99a3-cf67ea3d456f&id=19db0642f1adf65a15c7db646a06f0722d11bf3501bd84c78e8916fd0176b9f7
Amp-Thread-ID: https://ampcode.com/threads/T-019fca69-36c1-71d8-b85d-4099ffea48f1
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…-style

* origin/main:
  docs(acp): explain per-channel session model in base prompt (block#4729)
  docs(nip-am): normative amendment — cache SHOULD/MUST + pricingIdentity + consumer cost guidance (block#4632)
  Remove blur from Welcome composer guidance (block#4691)
  Refine desktop timeline activity presentation (block#4582)
  Defer desktop media uploads until send (block#4522)
  fix(desktop): stop clipping focus ring on channel intro action cards (block#2392) (block#4374)

Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019fcd5d-4e57-7288-a0cb-2dc6275be659
Co-authored-by: Amp <amp@ampcode.com>
Buzz-Message: buzz://message?channel=59c4e3cb-6047-4dd3-8557-7f0bebc4c967&id=5476ed95e45464e0713fcdb302d752a84b7ecb431b693bd3c7a9de20eb405d7b
The command palette offered "archive" on every channel even when the
relay would refuse it. Gate the entry on the same owner/admin capability
check the standard UI's context menu uses (canManageChannel from
useChannelModerationCapabilities). When archiving isn't possible, the
entry is hidden and "archive" matches the leave action instead via a new
aliases field on palette entries, so the typed verb still resolves to
the closest available action.

Linear: AGNTOPS-419

Buzz-Message: buzz://message?channel=01aea2b0-d1fe-4ea8-9db6-5d6ecce822a9&id=cfa61a2ba65f9fddf0f189cac73d2d61f5c7a82c4ed4b9aeaaf14d4c0d647266
Amp-Thread-ID: https://ampcode.com/threads/T-019fcd67-9927-71b8-9a8c-63b537facf13
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…-style

* origin/main:
  Polish sidebar unread hierarchy (block#4573)
  fix(desktop): show cached display names on startup (block#3317)

Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Buzz-Message: buzz://message?channel=d9adb465-5b09-4928-b30d-10c5c65550a0&id=e51e5ee08c0cebdd2f8ac8e418c96665151479f49abf9427c7e0285676ffc0c4
Amp-Thread-ID: https://ampcode.com/threads/T-019fcd5c-7e19-766f-aeb9-f6770ea5e9c4
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
Upstream changed session_new_full to take SystemPromptTransport; the
fork-only `buzz-acp complete` caller still passed Option<&str>. Field
transport preserves the previous bare systemPrompt behavior. Hooks
never caught it because just test-unit only compiles core/auth/voice.

Buzz-Message: buzz://message?channel=d9adb465-5b09-4928-b30d-10c5c65550a0&id=e51e5ee08c0cebdd2f8ac8e418c96665151479f49abf9427c7e0285676ffc0c4
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…ease script

Upstream bundle-sidecars.sh now requires it.

Buzz-Message: buzz://message?channel=d9adb465-5b09-4928-b30d-10c5c65550a0&id=e51e5ee08c0cebdd2f8ac8e418c96665151479f49abf9427c7e0285676ffc0c4
Amp-Thread-ID: https://ampcode.com/threads/T-019fcd5c-7e19-766f-aeb9-f6770ea5e9c4
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…nels

Replace the per-character translateY wave on working channel names with a
color spotlight: an animated mask dims the label except for a bright band
that sweeps back and forth. Mask-based so the label's inherited color
(default/warning/destructive) is preserved.

Buzz-Message: buzz://message?channel=fdeaf775-3890-4f4d-8049-2af53924a82c&id=a48d5acafb76037b0c30b68df8c2d69d88a88fe3d8b0d995dbc43db873ea1018
Amp-Thread-ID: https://ampcode.com/threads/T-019fd92b-309b-7574-917f-51fec54c803d
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…failure markers

- A mention lights the channel/tab name itself in the warning accent
  (orange), not just the unread dot; blocked outranks mention in red.
  The dot follows the same palette (--primary is near-white in dark
  mode, so the old text-primary dot never stood out).
- The navigator dims to 70% opacity instead of 45% while a channel is
  focused.
- A failed/timed-out send now flags its channel: a red ! renders in the
  navigator row (aggregated to the parent for sub tabs) and on the tab
  strip until the channel is reopened or a send lands there. The failed
  prompt was already stashed in that channel's per-channel draft slot;
  the marker makes the failure findable after switching away.

Buzz-Message: buzz://message?channel=c18a7451-1809-4190-abd1-e3f11b297311&id=a1a0c60944821590fcaee4438cba122a9b4c35c9b2ec71b2acee864c8866b049
Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-019fd922-995c-74ed-8781-3c469ce2132f
Signed-off-by: Joah Gerstenberg <joah@squareup.com>
…ndicator

Agent harnesses react 👀 (queued) / 💬 (working) onto prompts they serve.
Dev mode no longer renders those as emoji reaction chips: agent-published
status reactions are split out per message and shown as a dim 'queued'
label or a spotlight-swept 'working…' label naming the agents. The same
emoji from humans still render as ordinary chips. Display-only — the
harness protocol and relay behavior are unchanged.

Buzz-Message: buzz://message?channel=8058a8d8-f6f6-403f-a1c4-0ddcb4a291d6&id=ea0d209353ec9aab7dfa37770afe9c6002b15ae7ca1384637d07384b75e90af0
Amp-Thread-ID: https://ampcode.com/threads/T-019fd936-5fc6-7481-bc08-e22aaaa90c0d
Co-authored-by: Amp <amp@ampcode.com>
Signed-off-by: Joah Gerstenberg <joah@squareup.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