Skip to content

Discord apps never appear in Bind app: pinned dsh-im lacks the checked Discord contract #1123

Closed

Description

@DoodleBears

v1.3 release topology — 2026-10-11

Parent: #1107 (native sub-issue relationship verified). Project #10; target milestone v1.3. The earlier Provider pin/root-cause description below is historical. Recheck current-product account discovery, disabled-with-reason behavior and native checked Discord binding before changing code or declaring this gate solved; #1042 now has this native prerequisite.


Problem

A Discord app connected in DSH Settings → IM bots shows as online, but the Bot's Bind app dialog never offers it. Lark and Slack apps on the same instance are offered and bind fine. So the one-step binding in #1107 / #1112 (PR #1117) does not work for Discord in practice.

Found by real-IM QA on 2026-10-07: cloud DSH from main at 8297ef4, node scripts/dev-instance.mjs --im-provider, a fresh "BotHarness Cloud QA" Discord app.

Cause

scripts/dev-im-provider.mjs pins @xmanrui/dsh-im to DoodleBears/dsh-im#4f4f0a6. In that commit only the WeChat, Feishu/Lark and Slack controllers declare proactive-text-checked (and the other checked capabilities) from describeBot. src/channels/discord/discord-controller.mjs declares none.

createDshImProvider in packages/core/src/messaging/dsh-im.ts drops any account whose describeBot lacks proactive-text-checked (it throws provider-incompatible, and accounts() keeps only fulfilled results). That drop is silent, so the Discord app just disappears from the dialog.

ADR-0128 describes the checked Discord contract (authenticated App/Bot user fingerprint, external-consumer mode, checked replies into channels and existing public threads), but the provider pin doesn't include it. dsh-im has Discord branches (codex/1002-discord-files, codex/1012-discord-ordinary-text) that aren't in the pin either.

Fix

  1. Land the checked Discord controller in the dsh-im fork (checked capabilities from describeBot, exclusive consumer, mentionedAccount, checked replies), then bump qualifiedImProvider (source, runtimeFiles, runtimeSha256) and the product-artifacts pin.
  2. In BotHarness, stop dropping incompatible accounts silently: show a connected but unsupported app in Bind app as disabled with a reason (for example "this IM plugin version can't bind Discord yet; update it"), so it doesn't look like a bug in the dialog.
  3. Re-run the real Discord QA: DM, guild-channel @mention, and unmentioned chatter (should be ignored).

Related: #1107, #1112, #1111 / #1115 (they also need a dsh-im fork release), ADR-0128, ADR-0142.

Activity

  1. self-assigned this
    on Oct 7, 2026
  2. added this to the v1.2 milestone on Oct 8, 2026
  3. modified the milestones: v1.2, v1.3 on Oct 11, 2026
  4. DoodleBears commented on Oct 13, 2026

    @DoodleBears
    ContributorAuthor

    Agent work claim

    • Agent: Codex
    • Task: codex/local/01a1342d-5ce4-7872-9f9e-492a9caee393 (not a DSH Session)
    • Issue scope: Recheck current Provider 20 Discord discovery and disabled-with-reason behavior; fix remaining gaps and qualify checked Discord binding against a task-isolated Host. This is the only remaining open native child of Spec: bind a Bot to an app in one step; DMs and mentions arrive without per-conversation authorization #1107. Native receiver startup requires a fresh exclusive QA window.
    • Branch: codex/1123-discord-binding-qualification
    • Started: 2026-10-13 19:22 UTC
    • State: active
  5. added
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 13, 2026
  6. DoodleBears commented on Oct 13, 2026

    @DoodleBears
    ContributorAuthor

    Continuation of codex/local/01a1342d-5ce4-7872-9f9e-492a9caee393: the Human requested a reusable Discord QA1/QA2/QA3 setup path, matching the existing protected Lark/Slack registry, before entering credentials. This prerequisite is now in scope. Current Provider 20 discovery/unsupported-account and Discord checked-contract regressions pass; a separate three-state UI copy regression caught the unqualified DM promise and is fixed in adc38e3. No Discord receiver has been configured or started; the empty isolated packaged Host was stopped while the credential wizard is prepared. Native qualification and #1107/#1123 closure remain pending.

  7. moved this from Todo to In Progress in Roadmapon Oct 13, 2026
  8. DoodleBears commented on Oct 13, 2026

    @DoodleBears
    ContributorAuthor

    Configuration checkpoint — PR #1618 (draft), exact head 5e55852. The Human-requested Discord QA1/QA2/QA3 setup/list/loader path is ready and documented. The wizard preserves other platforms, hides Token input, retains values on Enter and requires a current-window confirmation; it creates no App or receiver and never rotates a Token itself. 30 focused registry/Client tests pass. Lint, formatting, typecheck, ledger validation and build pass. A full Windows run recorded 4,496 passed / 144 failed / 36 skipped; these failures are not all attributed, so no full-suite pass is claimed. Native Discord discovery/binding/original-channel reply and matched UI captures await local Human Token entry; #1123 and parent #1107 remain open. The empty task-owned Host is stopped.

  9. DoodleBears commented on Oct 13, 2026

    @DoodleBears
    ContributorAuthor

    Native qualification checkpoint

    State: active delivery work; native receiver window ended, with no continuing App lease.

  10. DoodleBears commented on Oct 13, 2026

    @DoodleBears
    ContributorAuthor

    Agent delivery handoff

  11. removed
    agent:activeOne or more coding-agent tasks currently claim this issue; see claim comments for task IDs
    on Oct 13, 2026
  12. moved this from In Progress to Done in Roadmapon Oct 14, 2026
  13. DoodleBears commented on Oct 14, 2026

    @DoodleBears
    ContributorAuthor

    Agent outcome: completed

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

Relationships

None yet

Development

No branches or pull requests

Issue actions