Files
buzz/desktop
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7andWill Pfleger 3d8b027ca7 fix(desktop): scope live observer feed to active channel on open
Both openAgentSession and selectAgentSession were calling
setOpenAgentSessionChannelId(channelId ?? null). When the activity-list
opener supplies no explicit channelId, the null propagated into
sessionChannelId, which caused scopeByChannel to skip filtering entirely
(its null fast-path returns all items). Combined with the shared per-pubkey
store, this let every channel's live frames appear in any channel's feed.

Fix: fall back to activeChannelId in both callbacks so opening from within
a channel always resolves a non-null scope key. activeChannelId is already
in the useChannelAgentSessions parameter list; add it to both callbacks'
dependency arrays.

Also fix the archive-load enabled gate: useLoadArchivedObserverEvents was
gated on isLive, so an idle agent's channel showed no archived observer
history. Change the enable condition to Boolean(sessionChannelId) so
archive history loads whenever a channel scope is resolved, regardless of
whether the agent is currently running.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
2026-07-08 15:02:45 -04:00
..
2026-03-09 19:32:56 -07:00
2026-06-11 15:06:24 +00:00

Buzz

Desktop chat shell with:

  • Tauri + React + TypeScript + Vite
  • Tailwind CSS
  • shadcn/ui-ready shared components
  • Biome (lint/format/check)
  • Feature-driven frontend structure

Scripts

  • pnpm dev - run the web frontend
  • pnpm tauri dev - run the desktop app
  • pnpm build - typecheck and build frontend
  • pnpm typecheck - TypeScript checks
  • pnpm lint - Biome lint
  • pnpm format - Biome format (write)
  • pnpm check - Biome check

Structure

  • src/shared - reusable app-wide code (ui, lib, styles)
  • src/features - feature modules (vertical slices)
  • src/app - top-level app composition