mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 16:58:25 +00:00
fix(telegram): scope default account skill commands to resolved agent (#15599)
This commit is contained in:
committed by
Peter Steinberger
parent
3691631fdc
commit
1d01bb1c8d
@@ -67,7 +67,7 @@ describe("registerTelegramNativeCommands", () => {
|
||||
});
|
||||
});
|
||||
|
||||
it("keeps skill commands unscoped without a matching binding", () => {
|
||||
it("scopes skill commands to default agent without a matching binding (#15599)", () => {
|
||||
const cfg: OpenClawConfig = {
|
||||
agents: {
|
||||
list: [{ id: "main", default: true }, { id: "butler" }],
|
||||
@@ -76,7 +76,10 @@ describe("registerTelegramNativeCommands", () => {
|
||||
|
||||
registerTelegramNativeCommands(buildParams(cfg, "bot-a"));
|
||||
|
||||
expect(listSkillCommandsForAgents).toHaveBeenCalledWith({ cfg });
|
||||
expect(listSkillCommandsForAgents).toHaveBeenCalledWith({
|
||||
cfg,
|
||||
agentIds: ["main"],
|
||||
});
|
||||
});
|
||||
|
||||
it("truncates Telegram command registration to 100 commands", () => {
|
||||
|
||||
Reference in New Issue
Block a user