From e3b1ef0d843e0639ed82cd4a500626f7c56b6531 Mon Sep 17 00:00:00 2001 From: Tom Brow Date: Sat, 31 Oct 2026 09:46:42 -0700 Subject: [PATCH] docs(agents): mark desktop/ as legacy, not a reference for mobile (#8868) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Agents working on the mobile app have been looking at `desktop/` for implementation and design cues. `desktop/` will soon be superseded by [block/buzz-app](https://github.com/block/buzz-app), while mobile is current, so it should never serve as that reference. - Root `AGENTS.md`: labels `desktop/` as legacy in the repo layout, adds a callout at the top of the Desktop App section, adds the same guidance to the Mobile App section, and drops "matches desktop" from the mobile theme note. Mobile kind constants now sync with `crates/buzz-core/src/kind.rs` (also in the `nostr_models.dart` comment) instead of desktop. - `VISION_MOBILE.md`: replaces the line that allowed the desktop implementation to inform shared mobile rules, so the vision and agent guidance agree. Written intent still takes priority. ### Validation Documentation-only. Reviewed the diff and links. Codex review's one finding (the vision conflict) is addressed. buzz-review-completed 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Tom Brow Co-authored-by: Tom Brow Co-authored-by: Claude Opus 5.5 --- AGENTS.md | 17 ++++++++++++++--- VISION_MOBILE.md | 2 +- mobile/lib/shared/relay/nostr_models.dart | 2 +- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 665ac30312..ec7e7f87cf 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -130,7 +130,7 @@ crates/ buzz-test-client # Integration test client and E2E test suite sprig # All-in-one harness bundling ACP, agent, and dev MCP -desktop/ # Tauri 2 + React 19 desktop app +desktop/ # Legacy Tauri 2 + React 19 desktop app (being replaced by block/buzz-app) web/ # Browser web client (repo browser, served by the relay) mobile/ # Flutter mobile app migrations/ # SQL migrations (run at relay startup when BUZZ_AUTO_MIGRATE is on: binary default off, Helm default on; deployments at scale apply them out of band — see docs/database.md) @@ -619,6 +619,10 @@ description. See [PR #803](https://github.com/block/buzz/pull/803). ## Desktop App +> **Legacy.** `desktop/` will soon be superseded by +> [block/buzz-app](https://github.com/block/buzz-app). Never use it as an +> implementation or design reference for the mobile app, which is current. + The desktop app is Tauri 2 + React 19 + Vite + Tailwind CSS. Features are organized under `desktop/src/features/`. Biome handles linting and formatting. @@ -699,13 +703,20 @@ Key files: The mobile app lives in `mobile/` — a Flutter app using Riverpod + Hooks. +The mobile app is current. Do not use the legacy `desktop/` app as an +implementation or design reference for it: `desktop/` will soon be superseded +by [block/buzz-app](https://github.com/block/buzz-app). This does not relax +cross-client wire compatibility: mobile must keep reading and writing the same +event payloads as other clients (for example the `channel-sort` NIP-78 payload, +which buzz-app also uses), even where a payload is documented only in code. + ### Architecture - **State management:** Riverpod + `flutter_hooks` (`HookConsumerWidget`) -- **Theme:** Catppuccin Latte (light) / Macchiato (dark) — matches desktop +- **Theme:** Catppuccin Latte (light) / Macchiato (dark) - **Features:** Isolated under `lib/features/`, shared code in `lib/shared/` - **Nostr models:** `lib/shared/relay/nostr_models.dart` — event kinds must - stay in sync with `desktop/src/shared/constants/kinds.ts` + stay in sync with `crates/buzz-core/src/kind.rs` ### Rules diff --git a/VISION_MOBILE.md b/VISION_MOBILE.md index c397d05535..8a43969b04 100644 --- a/VISION_MOBILE.md +++ b/VISION_MOBILE.md @@ -17,7 +17,7 @@ When writing a spec or implementing significant changes or tests, check them for Mobile and desktop follow shared rules for behavior such as channel ordering, unread state, and autocomplete. Presentation and interaction should suit each platform. -The desktop implementation is a reference we can use to inform defining those rules, but it contains bugs and unintended behavior and is not itself the specification. Written intent takes priority over implementation precedent. A clearer vision or spec developed for mobile can establish the intended shared behavior for desktop too. +The legacy `desktop/` app in this repository will soon be superseded by [block/buzz-app](https://github.com/block/buzz-app). Never use it as an implementation or design reference for mobile. Written intent takes priority over implementation precedent. A clearer vision or spec developed for mobile can establish the intended shared behavior for desktop too. ## Architecture diff --git a/mobile/lib/shared/relay/nostr_models.dart b/mobile/lib/shared/relay/nostr_models.dart index 19e657fe31..8ed1ba92d6 100644 --- a/mobile/lib/shared/relay/nostr_models.dart +++ b/mobile/lib/shared/relay/nostr_models.dart @@ -6,7 +6,7 @@ import 'thread_reference.dart'; /// Nostr event kind constants. /// -/// Keep in sync with `desktop/src/shared/constants/kinds.ts`. +/// Keep in sync with `crates/buzz-core/src/kind.rs`. abstract final class EventKind { /// Kind:0 user profile metadata. static const profile = 0;