
























@@ -542,11 +542,8 @@ describe("doctor preview warnings", () => {
542542});
543543544544expect(warnings).toEqual([
545-expect.stringContaining('Agent "commander" is routed from channel "discord"'),
545+'- Agent "commander" is routed from channel "discord", but the message tool is unavailable for that agent; explicit channel actions such as sendAttachment, upload-file, thread-reply, or reply can fail. Add "message" to the agent tool allowlist, add "group:messaging", or switch the agent to a profile that includes messaging tools.',
546546]);
547-expect(warnings[0]).toContain("message tool is unavailable");
548-expect(warnings[0]).toContain("sendAttachment");
549-expect(warnings[0]).toContain("group:messaging");
550547expect(warnings.join("\n")).not.toContain("support");
551548});
552549@@ -568,7 +565,7 @@ describe("doctor preview warnings", () => {
568565});
569566570567expect(warnings).toEqual([
571-expect.stringContaining('Agent "main" is routed from channel "discord" and "telegram"'),
568+'- Agent "main" is routed from channel "discord" and "telegram", but the message tool is unavailable for that agent; explicit channel actions such as sendAttachment, upload-file, thread-reply, or reply can fail. Add "message" to the agent tool allowlist, add "group:messaging", or switch the agent to a profile that includes messaging tools.',
572569]);
573570expect(warnings.join("\n")).not.toContain("slack");
574571expect(warnings.join("\n")).not.toContain("defaults");
@@ -608,7 +605,7 @@ describe("doctor preview warnings", () => {
608605});
609606610607expect(warnings).toEqual([
611-expect.stringContaining('Agent "main" is routed from channel "telegram"'),
608+'- Agent "main" is routed from channel "telegram", but the message tool is unavailable for that agent; explicit channel actions such as sendAttachment, upload-file, thread-reply, or reply can fail. Add "message" to the agent tool allowlist, add "group:messaging", or switch the agent to a profile that includes messaging tools.',
612609]);
613610expect(warnings.join("\n")).not.toContain("discord");
614611expect(warnings.join("\n")).not.toContain("commander");
@@ -648,7 +645,7 @@ describe("doctor preview warnings", () => {
648645});
649646650647expect(warnings).toEqual([
651-expect.stringContaining('Agent "main" is routed from channel "discord"'),
648+'- Agent "main" is routed from channel "discord", but the message tool is unavailable for that agent; explicit channel actions such as sendAttachment, upload-file, thread-reply, or reply can fail. Add "message" to the agent tool allowlist, add "group:messaging", or switch the agent to a profile that includes messaging tools.',
652649]);
653650expect(warnings.join("\n")).not.toContain("commander");
654651});
@@ -776,7 +773,7 @@ describe("doctor preview warnings", () => {
776773});
777774778775expect(warnings).toEqual([
779-expect.stringContaining('Agent "main" is routed from channel "imessage"'),
776+'- Agent "main" is routed from channel "imessage", but the message tool is unavailable for that agent; explicit channel actions such as sendAttachment, upload-file, thread-reply, or reply can fail. Add "message" to the agent tool allowlist, add "group:messaging", or switch the agent to a profile that includes messaging tools.',
780777]);
781778expect(warnings.join("\n")).not.toContain("ios-agent");
782779expect(warnings.join("\n")).not.toContain("imsg");
@@ -821,7 +818,7 @@ describe("doctor preview warnings", () => {
821818});
822819823820expect(warnings).toEqual([
824-expect.stringContaining('Agent "main" is routed from channel "discord"'),
821+'- Agent "main" is routed from channel "discord", but the message tool is unavailable for that agent; explicit channel actions such as sendAttachment, upload-file, thread-reply, or reply can fail. Add "message" to the agent tool allowlist, add "group:messaging", or switch the agent to a profile that includes messaging tools.',
825822]);
826823expect(warnings.join("\n")).not.toContain("personal-agent");
827824});
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。