fix(slack): clarify mention prompt guidance · openclaw/openclaw@6b8f3fd
neeravmakwan
·
2026-05-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1043,6 +1043,9 @@ describe("slackPlugin agentPrompt", () => {
|
1043 | 1043 | expect(hints).toContain( |
1044 | 1044 | "- Slack plain text sends: write standard Markdown; OpenClaw converts it to Slack mrkdwn, including `**bold**`, headings, lists, and `[label](url)` links.", |
1045 | 1045 | ); |
| 1046 | +expect(hints).toContain( |
| 1047 | +"- 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.", |
| 1048 | +); |
1046 | 1049 | expect(hints).toContain( |
1047 | 1050 | "- 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.", |
1048 | 1051 | ); |
@@ -1073,6 +1076,9 @@ describe("slackPlugin agentPrompt", () => {
|
1073 | 1076 | expect(hints).toContain( |
1074 | 1077 | "- Slack plain text sends: write standard Markdown; OpenClaw converts it to Slack mrkdwn, including `**bold**`, headings, lists, and `[label](url)` links.", |
1075 | 1078 | ); |
| 1079 | +expect(hints).toContain( |
| 1080 | +"- 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.", |
| 1081 | +); |
1076 | 1082 | expect(hints).toContain( |
1077 | 1083 | "- 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.", |
1078 | 1084 | ); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。