Skip to content

Commit 548c8ab

Browse files
committed
fix(mattermost): address text slash review feedback
1 parent 0a410b0 commit 548c8ab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Docs: https://docs.openclaw.ai
3131
- Agents/Codex: honor yolo app-server approval policy only for the full `never` plus `danger-full-access` case. (#85909) Thanks @earlvanze.
3232
- Gateway/Gmail: clear Gmail watcher renewal intervals on re-entry so hot reloads do not leak lifecycle timers. (#82947) Thanks @SebTardif.
3333
- Logging: exit cleanly on broken stdout/stderr pipes without masking existing failure exit codes. (#80059) Thanks @pavelzak.
34-
- Mattermost: show `/new` and `/reset` acknowledgements (and other typed text-slash commands) in Mattermost direct chats and channels when the active harness defaults source replies to message-tool-only delivery (e.g. Codex), so authorized control commands no longer silently change session state without confirmation. Fixes #86664. Thanks @amknight.
3534
- Gateway/security: escape transcript metadata field names while extracting oversized session line prefixes. (#85934) Thanks @SebTardif.
3635
- Plugins/security: validate manifest model pattern regexes with the safe-regex compiler so unsafe patterns are ignored before matching. (#86046) Thanks @SebTardif.
3736
- Discord: route gateway metadata REST lookups through the configured Discord proxy so proxied accounts do not fall back to direct `discord.com` connections before opening the WebSocket. Fixes #80227. Thanks @Clivilwalker.

extensions/mattermost/src/mattermost/monitor.inbound-system-event.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ describe("mattermost inbound user posts", () => {
575575
id: "post-reset",
576576
channel_id: "dm-1",
577577
user_id: "user-1",
578-
message: "/reset",
578+
message: " /reset",
579579
create_at: 1_714_000_000_000,
580580
}),
581581
},
@@ -590,6 +590,7 @@ describe("mattermost inbound user posts", () => {
590590
expect(mockState.dispatchReplyFromConfig).toHaveBeenCalledTimes(1);
591591
const ctx = mockState.dispatchReplyFromConfig.mock.calls.at(0)?.[0].ctx;
592592
expect(ctx?.BodyForAgent).toBe("/reset");
593+
expect(ctx?.CommandBody).toBe("/reset");
593594
expect(ctx?.CommandAuthorized).toBe(true);
594595
expect(ctx?.CommandSource).toBe("text");
595596
});

0 commit comments

Comments
 (0)