Repository navigation
Conversation
Reverts 902644b (#2904). The relay now owns the community's landing channel (block/buzz#9108): it adopts or creates `general` for a new community and joins new members to it, so the owner's client no longer needs to create one. Removes `useFirstChannel`, `ensureFirstChannel` and the `ChannelQueries.anyChannel` probe with their tests, and the matching paragraphs in docs/communities.md and docs/buzz-help.md. Co-authored-by: Jitter <2b2e6415e748c35180847a37aadae06a11e30dddc76b784e7fd9354c4eb42e7a@buzz.block.builderlab.xyz> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reverts #2904 (
902644b25), which had the owner's client create an open#generalfor a community with no channels, as a stopgap until the relay provides a landing channel.The relay change block/buzz#9108 takes that over. It adopts the community's
general, or creates one when there isn't one, at provisioning and on each human sign-in, and joins new members to it. Companion client: #2623.Removed:
useFirstChannel/ensureFirstChannel(src/bundled/channels/first-channel.ts) and its call inChannelWorkspaceChannelQueries.anyChannelprobe in the relay store and contractfirst-channel.test.tsx, theanyChannelcases instore-discovery.test.ts)docs/communities.mdanddocs/buzz-help.mdNot cleaned up: the
first-channelview-state marker that devices already saved. Nothing reads it any more, and it's a few bytes per community.Merge order
Do not merge until block/buzz#9108 is deployed to every production relay. On a relay without it, the owner of a brand-new community goes back to an empty Messages page ("Select a channel to read it.").
Communities whose
#generalwas created by this stopgap need no migration. The relay adopts an existing eligiblegeneralas the landing channel.Testing
git revertof902644b25on main. The only conflict was thedocs/buzz-help.mdparagraph, which later edits had reflowed.tsc --noEmitandbiome check --error-on-warnings .pass.vitest runat63fb37d8c: 22,548 passed and 5 failed, inturns.test.ts,codex-sh.test.tsandvite-config.test.mjs. None of those touches channels or the relay store. Re-running them alone, a different singleturns.test.tscase failed, andturns.test.tsalso failed once in two runs on main (4d1cba02f), so I read these as load flakes, not regressions.#general(created by the relay) opens. No client-side creation request appears in the relay log.🤖 Generated with Claude Code