fix(telegram): scope default account skill commands to resolved agent (#15599)

This commit is contained in:
damaozi
2026-02-14 01:37:09 +08:00
committed by Peter Steinberger
parent 3691631fdc
commit 1d01bb1c8d
3 changed files with 7 additions and 4 deletions

View File

@@ -295,8 +295,7 @@ export const registerTelegramNativeCommands = ({
nativeEnabled && nativeSkillsEnabled
? resolveAgentRoute({ cfg, channel: "telegram", accountId })
: null;
const boundAgentIds =
boundRoute && boundRoute.matchedBy.startsWith("binding.") ? [boundRoute.agentId] : null;
const boundAgentIds = boundRoute ? [boundRoute.agentId] : null;
const skillCommands =
nativeEnabled && nativeSkillsEnabled
? listSkillCommandsForAgents(boundAgentIds ? { cfg, agentIds: boundAgentIds } : { cfg })