mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 18:24:47 +00:00
fix(slack): clarify mention prompt guidance
This commit is contained in:
committed by
Peter Steinberger
parent
1426112f95
commit
6b8f3fd206
@@ -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.",
|
||||
);
|
||||
|
||||
@@ -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.",
|
||||
]),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user