mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
fix: suppress commands for revision handoff sends
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user