[Bug]: Telegram can never satisfy the coordinator (Bunny) creator gate — every direct message is rejected
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- devtools
調査の方向性
Start in node_modules/@mavis/local-runtime-v2/dist/service/channel-system/composition/wire.js, where checkCoordinatorCreator routes only wechat and feishu, then compare with transport/feishu/feishu-store.js and transport/telegram/telegram-store.js. Reproduce by binding a Telegram bot to bunny and sending a direct message; the rejection comes from ingress/coordinator-inbound.js. Done when a Telegram owner's direct message reaches the bunny session, which needs a persisted creator proof in the Telegram store and a platform-aware rejection message.
索引モデルが issue の本文から書いたものです。
説明
Product or interface: Desktop app
Version: 3.1.19 (build 3.1.19.229)
Platform: macOS
OS version and architecture: macOS 27.3 arm64
Issue area: MCP / OAuth / integration (Telegram IM channel)
Desktop log upload ID: not available — the evidence below is read from the installed build
Steps to reproduce
- Create a Telegram bot via @BotFather.
- In MiniMax Code Desktop, bind it to the built-in coordinator agent
bunnyvia the Connect IM / 接入 IM → Telegram flow (paste the Bot Token → Connect). - The binding is created successfully —
telegram-channel.yamlgetsclientId: telegram:bunny,agentName: bunny,connected: true,enabled: true,mode: sdk— and the poller starts (Telegram poller status changed {"status":"polling","agentName":"bunny","clientName":"telegram:bunny"}). - Send a direct message to the bot.
- The bot replies with the rejection sentence quoted below, and no inbound message ever reaches the Bunny session (
currentSessionIdon the binding stays empty).
Expected and actual behavior
Expected: a direct message from the bot's owner reaches the coordinator's main conversation, exactly as it does on WeChat and Feishu.
Actual: every direct message is refused permanently, and the refusal points at a "Bot creation authorization on Desktop" step that does not exist for Telegram. The condition is unsatisfiable on this build, so the feature cannot be used.
Redacted error summary
Bunny only accepts its verified Bot creator. Legacy or unverified bindings require Bot creation authorization on Desktop.
Screenshots
None — the rejection text is quoted verbatim above; the underlying evidence is the installed build's own code, cited below.
- I have searched existing issues.
- I have included my version and removed sensitive information.
Bug report — MiniMax Code Desktop: Telegram can never satisfy the coordinator (Bunny) creator gate
Product: MiniMax Code (Desktop)
Build: 3.1.19.229 (macOS, CFBundleVersion 3.1.19.229, installed 24 Nov 2026)
Impact: A Telegram bot bound to the built-in coordinator agent bunny rejects every inbound message with "Bunny only accepts its verified Bot creator. Legacy or unverified bindings require Bot creation authorization on Desktop." — but no such authorization flow exists for Telegram in this build, so the condition is unsatisfiable.
Summary
checkCoordinatorCreator is wired with only two branches — wechat and feishu. telegram falls into the feishu branch, whose checkCreator() returns false for any context whose platform !== 'feishu'. Separately, the Telegram binding store has no creator-proof concept at all: no checkCreator() method, no registrationCreator field, no creatorChatId.
Net effect: Telegram is hard-wired to always fail the coordinator admission gate. The error message points users at a "Bot creation authorization on Desktop" step that exists for WeChat (QR scan) and Feishu (app registration) but has no Telegram equivalent, so the message is misleading and the feature is unusable.
Steps to reproduce
- Create a Telegram bot via @BotFather.
- MiniMax Code Desktop → the
bunnyagent → Connect IM / 接入 IM → Telegram → paste the Bot Token → Connect. - The binding is created successfully:
telegram-channel.yamlgetsclientId: telegram:bunny,agentName: bunny,connected: true,enabled: true,mode: sdk. The Telegram poller starts and logsTelegram poller status changed {"status":"polling","agentName":"bunny","clientName":"telegram:bunny"}. - Send a direct message to the bot.
- The bot replies: "Bunny only accepts its verified Bot creator. Legacy or unverified bindings require Bot creation authorization on Desktop."
- No inbound message ever reaches the Bunny session. The bound physical binding's
currentSessionIdstays empty.
Expected
A direct message from the bot's owner reaches the coordinator's main conversation, exactly as it does on WeChat and Feishu.
Actual
Every direct message is refused, permanently, with no user action able to change it.
Root cause
1. The creator check is wired to the wrong store for Telegram
node_modules/@mavis/local-runtime-v2/dist/service/channel-system/composition/wire.js
channelBridgeInfra.checkCoordinatorCreator = (ctx, mode) => ctx.platform === 'wechat'
? channelApis.wechatStore.checkCreator(ctx, mode)
: channelApis.feishuStore.checkCreator(ctx, mode);
There is no telegram branch. Telegram contexts are evaluated against the Feishu store.
2. The Feishu store rejects any non-Feishu context immediately
node_modules/@mavis/local-runtime-v2/dist/service/channel-system/transport/feishu/feishu-store.js
function isCreatorChatContext(ctx) {
return ctx.platform === 'feishu' && ctx.chatType === 'p2p' && Boolean(ctx.chatId);
}
async checkCreator(ctx, mode) {
await this.load();
const record = this.bindings.get(ctx.clientName);
if (!isCreatorChatContext(ctx)) return false; // ← Telegram always exits here
const creator = activeRegistrationCreator(record);
...
}
3. The Telegram store has no creator-proof concept
node_modules/@mavis/local-runtime-v2/dist/service/channel-system/transport/telegram/telegram-store.js
bind()persists only:clientId, agentName, botToken, botName, connected, enabled, mode, createdAt, updatedAtnormalizeTelegramBinding()reads no creator field- there is no
checkCreator()method and noregistrationCreator/creatorChatIdfield
A repository-wide search for registrationCreator returns exactly 8 files — 4 WeChat, 4 Feishu — and zero Telegram files.
4. Where the message comes from
node_modules/@mavis/local-runtime-v2/dist/service/channel-system/ingress/coordinator-inbound.js
export async function denyCoordinatorInbound(input) {
const { ctx, lane, checkCreator } = input;
...
try {
if ((await checkCreator?.(ctx)) === true) return undefined;
}
catch { /* identity storage failures cannot authorize access */ }
let reply = zh
? 'Bunny 仅接受已验证的 Bot 创建者私聊。旧绑定或身份缺失时,请在桌面重新完成 Bot 创建授权。'
: 'Bunny only accepts its verified Bot creator. Legacy or unverified bindings require Bot creation authorization on Desktop.';
if (ctx.platform === 'wechat') {
reply = '请用绑定 Bunny 时扫码的微信私聊我。如果是你本人,请在桌面的 Bunny 设置 → 远程中重新扫码连接微信。';
}
return { handled: true, lane, accessDeniedReason: 'coordinator-owner-p2p-only', reply };
}
Note the platform-specific branch: WeChat gets a pointer to a real, actionable flow (Bunny 设置 → 远程 → re-scan). Telegram gets a pointer to a flow that does not exist.
5. The gate runs before routing
denyCoordinatorAccess() is called at the top of handleInbound() and preflightInbound(), ahead of resolveRoute(). So no route rule, connection binding, or route ordering can influence the outcome. Only checkCreator can.
Proposed fix
Two changes. Both are small and mirror the existing WeChat implementation.
(a) composition/wire.js — route Telegram to its own store
channelBridgeInfra.checkCoordinatorCreator = (ctx, mode) => {
if (ctx.platform === 'wechat') return channelApis.wechatStore.checkCreator(ctx, mode);
if (ctx.platform === 'telegram') return channelApis.telegramStore.checkCreator(ctx, mode);
return channelApis.feishuStore.checkCreator(ctx, mode);
};
(b) transport/telegram/telegram-store.js — persist and verify a creator proof
Add to the persisted record and to normalizeTelegramBinding():
...(readRegistrationCreator(value.registrationCreator)
? { registrationCreator: readRegistrationCreator(value.registrationCreator) }
: {}),
with a strict, versioned codec (mirroring feishu-store.js):
function readRegistrationCreator(value) {
const proof = value.registrationCreator;
if (!isRecord(proof) || proof.source !== 'bot-token') return {};
const telegramUserId = readFirstString(proof, ['telegramUserId']);
if (!telegramUserId) return {};
return { registrationCreator: { source: 'bot-token', telegramUserId } };
}
and the store method:
async checkCreator(ctx, mode) {
await this.load();
const record = this.bindings.get(ctx.clientName);
if (!isCreatorChatContext(ctx)) return false; // platform === 'telegram' && chatType === 'p2p'
const creator = activeRegistrationCreator(record);
if (!record || !creator) return false;
return ctx.senderId === creator.telegramUserId; // and chatId, for delivery
}
Where the proof comes from. At bind time, the Telegram adapter can call getUpdates / getChat once to resolve the owner's from.id (the first direct-message sender) and persist it as registrationCreator.telegramUserId. The WeChat path already does the equivalent in wechat-onboard.js:finaliseBinding():
registrationCreator: {
source: 'qr-login',
userId: input.userId.trim(),
botId: input.ilinkBotId,
bindingId: randomUUID(),
}
Also worth changing: the rejection copy. Either add a Telegram-specific message pointing at the real flow, or — better — make the copy platform-aware the way the WeChat branch already is, so users are not told to perform a "Bot creation authorization" that does not exist for them.
Workaround for users on the current build
- Use the WeChat or Feishu channel for the coordinator agent (both implement a creator proof).
- Use a non-coordinator agent on Telegram (
telegram:mainetc.) and relay to the coordinator from there. - Use Remote Control, which is bound by account identity and never consults this gate.
Supporting observations
- The transport itself is healthy. Both Telegram pollers run continuously (
Telegram poller status changed {"status":"polling", ...}), and the rejection reply is successfully delivered over Telegram. Only the admission check fails. - The default route is not at fault.
channel-routes.yaml'sdefaultRoute.telegram.agentIdismavis, which is a valid built-in agent (the primary agent;agentConfigDir: ~/.minimax/agents/main). The absence of atelegram:bunnyrule does not change the outcome, because the gate runs before route resolution. - A newer build is not available. The update check returns
latest_version 3.1.19— the same as the installed version.
Sent from the MiniMax Code desktop app (macOS 27.3, arm64), MiniMax Code 3.1.19.229.
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 315
- 平均マージ
- 3時間 54分
- マージ済み PR(30日)
- 9
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MiniMax-AI/minimax-code のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MiniMax-AI/minimax-code#639 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
MiniMax-AI/minimax-code#636 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MiniMax-AI/minimax-code#615 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
MiniMax-AI/minimax-code#556 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MiniMax-AI/minimax-code#507 ·
メンテナーはふだん 1 日以内に返信
MiniMax-AI/minimax-code の issue をすべて見る
似ている issue
-
area:api bug good first issue priority:high
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Doezer/Questarr#1486 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:import difficulty:good-first good first issue help wanted priority:P1 roadmap size:S type:test
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Sergey-Bar/Penny#245 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
mihazs/lazysh#3377 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Approve the Cloudflare agent plugin for harness sessions対応中かも @joshtsch が今日担当しました。 オープンenhancement ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信