Skip to content

revert(channels): stop creating #general from the owner's client - #3702

Draft
matt2e wants to merge 1 commit into
mainfrom
jitter/remove-owner-general-stopgap
Draft

matt2e wants to merge 1 commit into
mainfrom
jitter/remove-owner-general-stopgap

Conversation

@matt2e

@matt2e matt2e commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Reverts #2904 (902644b25), which had the owner's client create an open #general for 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 in ChannelWorkspace
  • the ChannelQueries.anyChannel probe in the relay store and contract
  • their tests (first-channel.test.tsx, the anyChannel cases in store-discovery.test.ts)
  • the paragraphs describing this in docs/communities.md and docs/buzz-help.md

Not cleaned up: the first-channel view-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 #general was created by this stopgap need no migration. The relay adopts an existing eligible general as the landing channel.

Testing

  • git revert of 902644b25 on main. The only conflict was the docs/buzz-help.md paragraph, which later edits had reflowed.
  • tsc --noEmit and biome check --error-on-warnings . pass.
  • Full vitest run at 63fb37d8c: 22,548 passed and 5 failed, in turns.test.ts, codex-sh.test.ts and vite-config.test.mjs. None of those touches channels or the relay store. Re-running them alone, a different single turns.test.ts case failed, and turns.test.ts also failed once in two runs on main (4d1cba02f), so I read these as load flakes, not regressions.
  • Browser suite left to CI.
  • Not run against a live relay. The behavior to check after WIP feat(relay): community landing channel and welcome message buzz#9108 is deployed: create a community, open Messages, and #general (created by the relay) opens. No client-side creation request appears in the relay log.

🤖 Generated with Claude Code

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant