Merge remote-tracking branch 'origin/master' into swarm-neon-tmp

* origin/master:
  refactor(ui): prune 36 thin mocked jsdom UI tests and consolidate replay masking checks (#22834)
  docs: correct three budget claims from the review of the budget docs (#22833)
  refactor(test): prune 28 completed migration, prose-grep, and Storybook fixture tests (#22832)
  fix(e2e): observe scheduled native retries before grading tasks (#22826)
This commit is contained in:
Dotta committed 2026-11-24 16:57:44 -06:00
commit 83bf07cac4
85 files changed
+397 -15059

No files matched your search

@@ -5,6 +5,7 @@ import {
resolveChatActionSchema,
resolveChatPublicationSchema,
chatPublicationStateSchema,
updateChatEndpointSchema,
} from "./chat-channels.js";
describe("Microsoft Teams chat credential validation", () => {
@@ -111,3 +112,14 @@ describe("chat provider-action resolution validation", () => {
);
});
});
describe("chat endpoint communicationInstructions validation", () => {
it("accepts clearing instructions and rejects oversized instructions and unsupported controls", () => {
expect(updateChatEndpointSchema.parse({ communicationInstructions: " " })).toEqual({
communicationInstructions: "",
});
expect(updateChatEndpointSchema.safeParse({ communicationInstructions: "a".repeat(4001) }).success).toBe(false);
expect(updateChatEndpointSchema.safeParse({ replyDetail: "brief" }).success).toBe(false);
expect(updateChatEndpointSchema.safeParse({ progressUpdates: false }).success).toBe(false);
});
});