mirror of
https://github.com/block/buzz.git
synced 2026-10-31 22:41:12 +00:00
Every visited channel and thread leaves its query-cache keys in place for gcTime (one hour) after the view unmounts, so a session that roams many channels holds every timeline's window store and flattened render array in RAM at once — a renderer memory growth behind the v0.5.9 scroll/input lag. gcTime bounds how long an inactive query lingers, not how many linger concurrently; this adds the missing concurrency bound. A cache subscription mounted once in CommunityQueryProvider evicts the least-recently-updated unpinned timelines past a fixed cap. Channels and threads are bounded independently so a burst of open threads never evicts channel scrollback. A unit is pinned while any of its queries has a mounted observer or holds an optimistic pending send. Eviction removes both channel keys together and reads back absent, so revisit re-fetches from SQLite and a guarded background write cannot resurrect an evicted key. Co-authored-by: Will Pfleger <pfleger.will@gmail.com> Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
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 frontendpnpm tauri dev- run the desktop apppnpm build- typecheck and build frontendpnpm typecheck- TypeScript checkspnpm lint- Biome lintpnpm 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