Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

### Fixed

- Prevent dynamic bot names in `!help` responses from triggering Discord mentions.
- Preserve embed titles, descriptions, and URLs in live MCP `read-messages` results.
- Prevent `!guild` server-memory responses from triggering Discord mentions from stored memory or server names.
- Verify recent, legacy, and full-text-search history reads before assembling model context; reject symbolic-link files and replaced storage directories.
Expand Down
5 changes: 4 additions & 1 deletion src/discord/commands/help.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@ export async function handleHelp(msg: Message): Promise<void> {
`• If I don't think a message needs a reply, I'll just leave a reaction`,
].join("\n");

await msg.reply(help);
await msg.reply({
content: help,
allowedMentions: { parse: [] },
});
}
11 changes: 6 additions & 5 deletions tests/responseWorkload.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -161,15 +161,16 @@ test("responses route through response settings and report the response model",
/Never become hostile, defensive, contemptuous, or insulting/,
);

let helpReply = "";
let helpReply;
await handleHelp({
author: { id: "user-1" },
reply: async (content) => {
helpReply = content;
reply: async (options) => {
helpReply = options;
},
});
assert.match(helpReply, /powered by `response-model`/);
assert.doesNotMatch(helpReply, /global-model/);
assert.match(helpReply.content, /powered by `response-model`/);
assert.doesNotMatch(helpReply.content, /global-model/);
assert.deepEqual(helpReply.allowedMentions, { parse: [] });
});

test("adaptive routing keeps Sonnet while lowering a simple response effort", async () => {
Expand Down