fix(slack): clarify mention prompt guidance

This commit is contained in:
Neerav Makwana
2026-05-15 09:14:05 -04:00
committed by Peter Steinberger
parent 1426112f95
commit 6b8f3fd206
2 changed files with 7 additions and 0 deletions

View File

@@ -1043,6 +1043,9 @@ describe("slackPlugin agentPrompt", () => {
expect(hints).toContain(
"- Slack plain text sends: write standard Markdown; OpenClaw converts it to Slack mrkdwn, including `**bold**`, headings, lists, and `[label](url)` links.",
);
expect(hints).toContain(
"- When mentioning Slack users, use the stable `<@USER_ID>` token from Slack context instead of plain `@name` text so Slack notifies and links the user.",
);
expect(hints).toContain(
"- Slack Block Kit or presentation text fields are sent as Slack mrkdwn directly; use `*bold*`, `_italic_`, `~strike~`, `<url|label>` links, and avoid Markdown headings or pipe tables there.",
);
@@ -1073,6 +1076,9 @@ describe("slackPlugin agentPrompt", () => {
expect(hints).toContain(
"- Slack plain text sends: write standard Markdown; OpenClaw converts it to Slack mrkdwn, including `**bold**`, headings, lists, and `[label](url)` links.",
);
expect(hints).toContain(
"- When mentioning Slack users, use the stable `<@USER_ID>` token from Slack context instead of plain `@name` text so Slack notifies and links the user.",
);
expect(hints).toContain(
"- Slack Block Kit or presentation text fields are sent as Slack mrkdwn directly; use `*bold*`, `_italic_`, `~strike~`, `<url|label>` links, and avoid Markdown headings or pipe tables there.",
);

View File

@@ -115,6 +115,7 @@ export function createSlackPluginBase(params: {
]
).concat([
"- Slack plain text sends: write standard Markdown; OpenClaw converts it to Slack mrkdwn, including `**bold**`, headings, lists, and `[label](url)` links.",
"- When mentioning Slack users, use the stable `<@USER_ID>` token from Slack context instead of plain `@name` text so Slack notifies and links the user.",
"- Slack Block Kit or presentation text fields are sent as Slack mrkdwn directly; use `*bold*`, `_italic_`, `~strike~`, `<url|label>` links, and avoid Markdown headings or pipe tables there.",
]),
},