@@ -459,7 +459,7 @@ describe("handleCommands reset hooks", () => {
|
459 | 459 | }); |
460 | 460 | |
461 | 461 | it("acknowledges bare /reset without falling through to model execution", async () => { |
462 | | -const params = buildResetParams("/reset", { |
| 462 | +const params = buildResetParams("/RESET", { |
463 | 463 | commands: { text: true }, |
464 | 464 | channels: { whatsapp: { allowFrom: ["*"] } }, |
465 | 465 | } as OpenClawConfig); |
@@ -474,7 +474,7 @@ describe("handleCommands reset hooks", () => {
|
474 | 474 | }); |
475 | 475 | |
476 | 476 | it("acknowledges bare /new without falling through to model execution", async () => { |
477 | | -const params = buildResetParams("/new", { |
| 477 | +const params = buildResetParams("/NEW", { |
478 | 478 | commands: { text: true }, |
479 | 479 | channels: { whatsapp: { allowFrom: ["*"] } }, |
480 | 480 | } as OpenClawConfig); |
@@ -489,14 +489,14 @@ describe("handleCommands reset hooks", () => {
|
489 | 489 | }); |
490 | 490 | |
491 | 491 | it("keeps reset tails falling through so the model receives the user input", async () => { |
492 | | -const params = buildResetParams("/new take notes", { |
| 492 | +const params = buildResetParams("/Reset take notes", { |
493 | 493 | commands: { text: true }, |
494 | 494 | channels: { whatsapp: { allowFrom: ["*"] } }, |
495 | 495 | } as OpenClawConfig); |
496 | 496 | |
497 | 497 | const result = await maybeHandleResetCommand(params); |
498 | 498 | |
499 | 499 | expect(result).toBeNull(); |
500 | | -expectObjectFields(firstHookEvent(), { type: "command", action: "new" }, "hook event"); |
| 500 | +expectObjectFields(firstHookEvent(), { type: "command", action: "reset" }, "hook event"); |
501 | 501 | }); |
502 | 502 | }); |