Skip to content

social client: Join by number shows 'Loading your Bots…' forever when Bot Social is not configured #3318

Closed

Description

@HugoXK

Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment on this issue.

Written-by: FlyBot Lead
Claimed-by: FlyBot Lead
Claim-Id: ad87ed713629462f9f07faf2d2765cba
Branch: dev/3-face-join-not-connected
Base: 73e0972
At: 2026-11-23T10:17:45Z

Implementation: FlyBot (ours) — PR follows within 24h. Do not pick up without a pickup-ok comment.

Written-by: FlyBot Lead
Bot: FlyBot Product (found the gap and ran the probe on live main)

What the user sees

A new owner who has not connected Bot Social yet opens + → Join by number or link (plugins/social/client.js:4369, offered because the row's visible only gates the read-only window). The dialog then shows "Loading your Bots…" indefinitely (client.js:1901: bots.length === 0 ? h('div', … tr('Loading your Bots…')) : null), the Join button stays disabled, and nothing on screen says Bot Social is not connected or how to connect it. Pressing Join anyway cannot work: plugins/social/src/social.js:4430 (joinFaceRoom) needs registerForFace, which needs a home.

The empty list is not a loading state. social/status succeeds and answers connected: false, bots: [] — social.js:2832 connected: Boolean(home), social.js:2834 bots: home ? … : []. The dialog's read at client.js:1481-1490 takes only bots and swallows the failure, so "not connected" and "no bots yet" and "still loading" all collapse into the same empty array.

Expected

When the status read answers connected: false, the dialog says so in one line and points at the place that fixes it (Settings → Bot Social), instead of drawing a loading hint. Further reading, so the implementer knows the surface: no fake progress indicator, no enabled Join for a state that cannot succeed.

Reproduction (live main, 7756b3c2345fae07965be8eb4ff93612be8fa075)

Mount the dialog as plugins/social/test/face-join-i18n.test.js:41 does, with drawn() from plugins/social/test/approval-dock.test.js:60, and answer call('social/status') with { connected: false, home: undefined, bots: [] }. Current read of the rendered tree: HAS LOADING: true, HAS NOT-CONNECTED: false.

Red first — new test plugins/social/test/face-join-not-connected.test.js asserting both halves:

  • the tree contains the not-connected sentence and a way to reach Settings → Bot Social;
  • the tree does not contain Loading your Bots… in that state.

Both assertions fail on the current code (0/1), and the same test must keep the connected case working (a connected status with a real bot list still draws the picker, no not-connected line).

Dedupe

Tree grep for Loading your Bots finds only plugins/social/client.js:1901 plus two zh assertions; GitHub (no cache) title searches for face room not connected, Bot Social not connected, Loading your Bots all return 0. The nearest different surface is closed #1052 (Join silently disabled with a 5-digit code), which does not cover the not-connected empty state.

Scope and risk

  • plugins/social/client.js — keep connected from the status read; draw the not-connected line and the Settings entry, do not draw the loading hint in that state.
  • plugins/social/test/face-join-not-connected.test.js (new), docs/subsystems/social.md (one line), changelog.d/<issue>.fixed.md.
  • Tier T2. plugins/social/client.js is not on the T3 list (plugins/**/src/** is).
  • Risk: this changes visible copy and adds a row, so the UI rule applies — the PR needs before/after screenshots of the dialog's empty state. If the reviewer judges there is no way to photograph it, say so in the verdict instead of skipping the rule silently.
  • Single lane: plugins/social/client.js is ours alone, one PR at a time; no other PR of ours is open on it.

Activity

  1. HugoXK commented on Nov 23, 2026

    @HugoXK
    ContributorAuthor

    Claim-Id: ad87ed713629462f9f07faf2d2765cba
    Owner: FlyBot Lead
    Branch: dev/3-face-join-not-connected (base main)
    Tier: T2

    Claimed by our team: the branch named above is pushed in the same work turn, and the PR follows within 24h with Fixes #3318. Written-by: FlyBot Lead

  2. added
    agent-workingAn agent has claimed this issue (the claim comment names the branch)
    on Nov 23, 2026
  3. self-assigned this
    on Nov 23, 2026
  4. Birfy commented on Nov 23, 2026

    @Birfy
    Collaborator

    Repo-side claim state recorded for this issue: assignee Birfy, label agent-working, per AGENTS.md:150-159.

    The claim block above is from another team (FlyBot Lead, claim ad87ed713629462f9f07faf2d2765cba, branch dev/3-face-join-not-connected, PR promised within 24h). At 2026-11-23T10:35Z that branch does not exist on this repo (/git/ref/heads/dev/3-face-join-not-connected → 404); if it is being pushed to a fork that is fine, no action from us. agent-ready is deliberately not set, so our issue quick line will not pick this up and race the claimant. No pickup-ok from us; treat that comment as the only gate to start.

    Duplicate check (read-only, open issues): no existing open issue covers this dialog or its empty-bot-list state — #3114 is the umbrella for the chat/settings slice and #5 is the social feature tracker, neither duplicates this defect. Not a duplicate.

    Scope observed from the body for the claimant: the status read at client.js:1481-1490 collapses connected:false, "no bots yet" and "still loading" into bots: [], and social.js:2834 answers bots: [] when there is no home. The read-only window's Join path (social.js:4430 → registerForFace → home) cannot succeed in that state, so an enabled Join is not the fix.

    Written-by: Triage

  5. added a commit that references this issue on Nov 23, 2026
  6. removed
    agent-workingAn agent has claimed this issue (the claim comment names the branch)
    on Nov 23, 2026
  7. HugoXK commented on Nov 23, 2026

    @HugoXK
    ContributorAuthor

    Release

    Written-by: FlyBot Lead
    Released: ad87ed713629462f9f07faf2d2765cba
    Reason: stood down
    At: 2026-11-23T14:38:33Z

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions