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 b1532f6
Browse filesBrowse the repository at this point in the historyBrowse files
Merge origin/main into mobile pairing confirmation
Bring the pairing confirmation branch current with main after the branch-skew
check detected overlapping mobile documentation changes.
Co-authored-by: Carl <c7ebe626f000404285d3686e1dc74cc07cc60a9754a150041ba132e14bd3e2ec@buzz.block.builderlab.xyz>
Signed-off-by: Wes <[email protected]>
and fast unit tests in parallel (Rust, desktop JS, Tauri Rust, mobile Flutter)
126
+
— no overlap with pre-commit. Builds are CI-only. Run `just fix-all` to auto-fix
127
+
all formatting in one shot. Run `just ci` for the full local gate. Run `just
128
+
hooks` to re-install hooks after env changes. Before agents run Git or hooks,
129
+
activate the repo's Hermit environment (`. ./bin/activate-hermit`); do not
130
+
rewrite hook commands to compensate for an unconfigured shell `PATH`.
130
131
131
132
**Commit with `git commit -s`.** The required **DCO Check** fails any PR with a commit missing a `Signed-off-by` trailer, and `just hooks` installs a `commit-msg` hook that adds it to commits you create locally (`git rebase` and `git cherry-pick` still need `--signoff`) — if you build commit commands programmatically, include `-s` every time. To repair a branch that already has unsigned commits: `git rebase --signoff main`, then force-push.
Desktop E2E: `cd desktop && pnpm test:e2e:smoke` for mock-bridge smoke
240
+
coverage, or `pnpm test:e2e:integration` for relay-backed coverage. These
241
+
scripts build the required E2E bridge before running Playwright.
239
242
240
243
See [TESTING.md](TESTING.md) for the full multi-agent E2E guide.
241
244
@@ -446,11 +449,10 @@ description. See [PR #803](https://github.com/block/buzz/pull/803).
446
449
447
450
1.**Kind `39000` for channel metadata, not `41`** — kind 41 is NIP-01 (unused). All kinds defined in `buzz-core/src/kind.rs`.
448
451
2.**Relay queries must specify `kinds`** — omitting `kinds` triggers the p-gate (403). Always include explicit kind filters.
449
-
3.**`messages search`must include `--kinds`** — an open-ended search (no kinds) hits the relay p-gate and returns 403. Pass at least `--kinds 9,45001,45003` to scope the query.
452
+
3.**`messages search`chooses its own supported kinds** — do not add a `--kinds` option; the current command does not accept one. This differs from raw relay filters, which still need explicit kinds.
450
453
4.**Worktrees: `cd` in the same command** — shell CWD doesn't persist between tool calls. Use `cd /path && cargo build` as one command.
451
454
5.**Desktop crate excluded from root workspace** — `cargo test` at repo root does NOT run desktop tests. Use `cargo test --manifest-path desktop/src-tauri/Cargo.toml` explicitly.
452
-
6.**Desktop Tauri fmt fails in worktrees and blocks commits** — the pre-commit hook runs `just desktop-tauri-fmt`, which fails in git worktrees because `cargo fmt` resolves workspace paths relative to the worktree root. Run `just desktop-tauri-fmt` from the main checkout to apply the fix, then re-stage and commit. CI is unaffected.
453
-
7.**React render perf: `React.memo` is all-or-nothing** — it only skips a re-render when *every* prop is reference-stable; one unstable prop (inline arrow/JSX, or a hook returning a fresh `{}`/`[]`/`Map` each render) defeats it. Two repeat offenders: (a) React Query results (`useMutation`/`useQuery`) are a **new object each render** — depend on the stable method (`mutation.mutateAsync`), not the object; (b) derived `Map`/array state that recomputes on a version bump — wrap in a content-equality ref cache (`shared/hooks/useStableReference.ts`). When chasing interaction lag, **measure with DevTools closed and no perf probes** (an open Web Inspector + per-keystroke `console.log` inflate the numbers), and isolate by removing one suspect at a time rather than guessing.
455
+
6.**React render perf: `React.memo` is all-or-nothing** — it only skips a re-render when *every* prop is reference-stable; one unstable prop (inline arrow/JSX, or a hook returning a fresh `{}`/`[]`/`Map` each render) defeats it. Two repeat offenders: (a) React Query results (`useMutation`/`useQuery`) are a **new object each render** — depend on the stable method (`mutation.mutateAsync`), not the object; (b) derived `Map`/array state that recomputes on a version bump — wrap in a content-equality ref cache (`shared/hooks/useStableReference.ts`). When chasing interaction lag, **measure with DevTools closed and no perf probes** (an open Web Inspector + per-keystroke `console.log` inflate the numbers), and isolate by removing one suspect at a time rather than guessing.
454
456
455
457
---
456
458
@@ -511,27 +513,12 @@ class instances, cached promises) survive across remounts. Every community-scope
511
513
singleton needs a reset function wired into `resetCommunityState()` in
0 commit comments