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
Discord apps never appear in Bind app: pinned dsh-im lacks the checked Discord contract #1123
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
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.
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.
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.
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.
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.
Current Discord QA1 window was freshly confirmed by the Human. The installed Client offered and bound BotHarness Cloud QA without a saved delivery target or manual conversation grant.
The original DeepSeekBot Cloud QA / 常规 channel displayed complete BH_1123_DISCORD_AT_20261014_OK. Native REST confirmed exact content, Bot author and request reference; canonical Source/Admission/Outbox records agree.
Unmentioned BH_1123_DISCORD_UNMENTIONED_20261014_MUST_IGNORE had no Source Event, Admission, Outbox intent or reply during the observed window.
Initial editor submission contained only @; its BH_1123_OK reply is not counted as marker matching. The Human explicitly authorized one supplemental complete request. Both positive exchanges are retained in the evidence totals.
Exact task receiver stopped, listening port absent and QA1 released. No permission changes, Token reset or additional Discord messages.
32 focused tests and lint/format/typecheck/bilingual ledgers passed. Full Windows suite still has 144 failures not fully attributed; branch has no verify workflow run.
Native qualification: actual one-step Discord binding, original-channel full BH_1123_FINAL_AT_20261014_OK reply, and unmentioned negative with zero Source/Admission/Outbox/reply. Final canonical counts: one Source, one handled Admission, one accepted Outbox/receipt, one implicit Grant.
Matched UI evidence: 12 base/head pairs, all three states, zh/en and light/dark. All 26 PR images load in GitHub.
Main integration preserved the current design-system dialogs. The existing bundle-test config-discovery race was reproduced on base/head and fixed without weakening checks. Historical Windows full-suite failures are not all reclassified as baseline; full Linux/official CI and native Windows acceptance are separate verified results.
Exact task receiver stopped at 2026-10-13 21:20:57 UTC; process and port absent. No permissions changed or new Provider publication.
Exact-head CI passed lint, format, typecheck, tests, build and docs. Package qualification and native Discord evidence record the full matching @ reply and ignored unmentioned case; all task-owned receivers were stopped after acceptance.
Activity
Add #1123 Bind app screenshots
fix(messaging): show apps the IM plugin can't serve as greyed out in …
DoodleBears commentedon Oct 13, 2026
Agent work claim
codex/local/01a1342d-5ce4-7872-9f9e-492a9caee393(not a DSH Session)codex/1123-discord-binding-qualificationDoodleBears commentedon Oct 13, 2026
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.
DoodleBears commentedon Oct 13, 2026
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.
fix(dev): ask only for the Discord token after agent setup
docs: record Discord packaged binding and reply qualification
DoodleBears commentedon Oct 13, 2026
Native qualification checkpoint
codex/local/01a1342d-5ce4-7872-9f9e-492a9caee39314cd83a46d8667b10a9e6853c58a0ab18d9a0dad.BH_1123_DISCORD_AT_20261014_OK. Native REST confirmed exact content, Bot author and request reference; canonical Source/Admission/Outbox records agree.BH_1123_DISCORD_UNMENTIONED_20261014_MUST_IGNOREhad no Source Event, Admission, Outbox intent or reply during the observed window.BH_1123_OKreply is not counted as marker matching. The Human explicitly authorized one supplemental complete request. Both positive exchanges are retained in the evidence totals.State: active delivery work; native receiver window ended, with no continuing App lease.
merge: preserve current design-system dialogs and Discord binding scope
test(client): isolate the inline bundle build from workspace configs
docs: complete matched Discord UI evidence and final qualification
DoodleBears commentedon Oct 13, 2026
Agent delivery handoff
codex/local/01a1342d-5ce4-7872-9f9e-492a9caee3936c4c68c8b6ab5917e98b4d415d268b96928096f3.BH_1123_FINAL_AT_20261014_OKreply, and unmentioned negative with zero Source/Admission/Outbox/reply. Final canonical counts: one Source, one handled Admission, one accepted Outbox/receipt, one implicit Grant.DoodleBears commentedon Oct 14, 2026
Agent outcome: completed
codex/local/01a1342d-5ce4-7872-9f9e-492a9caee393