fix: suppress commands for revision handoff sends

This commit is contained in:
Shakker
2026-06-04 01:09:39 +01:00
committed by Shakker
parent 4bcae169e2
commit 0059f5c24a
6 changed files with 140 additions and 5 deletions

View File

@@ -122,6 +122,17 @@ describe("lazy protocol validators", () => {
expect(validateChatMetadataParams({ agentId: "work", view: "configured" })).toBe(false);
});
it("validates chat sends that suppress command interpretation", () => {
expect(
validateChatSendParams({
sessionKey: "agent:main",
message: "/reset examples",
suppressCommandInterpretation: true,
idempotencyKey: "chat-run-1",
}),
).toBe(true);
});
it("validates Skill Workshop revision request params", () => {
expect(
protocol.validateSkillsProposalRequestRevisionParams({

View File

@@ -91,6 +91,7 @@ export const ChatSendParamsSchema = Type.Object(
timeoutMs: Type.Optional(Type.Integer({ minimum: 0 })),
systemInputProvenance: Type.Optional(InputProvenanceSchema),
systemProvenanceReceipt: Type.Optional(Type.String()),
suppressCommandInterpretation: Type.Optional(Type.Boolean()),
idempotencyKey: NonEmptyString,
},
{ additionalProperties: false },