[Bug]: Telegram can never satisfy the coordinator (Bunny) creator gate — every direct message is rejected
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 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 分钟
- 30 天内合并 PR
- 9
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
-
blocklist addition
难度 1/5 1 小时以内 新手友好度 76/100
MetaMask/eth-phishing-detect#319194 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
continuedev/continue#13533 · 1 条评论 ·
维护者通常 6 天内回复
-
bug codex:automation
难度 2/5 1-3 小时 新手友好度 76/100
genfeedai/genfeed.ai#12060 ·
维护者通常 1 天内回复
-
bounty good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
fitzss/valun-open#15 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复