@@ -809,9 +809,15 @@ describe("slackPlugin agentPrompt", () => {
|
809 | 809 | }, |
810 | 810 | }); |
811 | 811 | |
812 | | -expect(hints).toEqual([ |
| 812 | +expect(hints).toContain( |
813 | 813 | "- Slack interactive replies are disabled. If needed, ask to set `channels.slack.capabilities.interactiveReplies=true` (or the same under `channels.slack.accounts.<account>.capabilities`).", |
814 | | -]); |
| 814 | +); |
| 815 | +expect(hints).toContain( |
| 816 | +"- Slack plain text sends: write standard Markdown; OpenClaw converts it to Slack mrkdwn, including `**bold**`, headings, lists, and `[label](url)` links.", |
| 817 | +); |
| 818 | +expect(hints).toContain( |
| 819 | +"- 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.", |
| 820 | +); |
815 | 821 | }); |
816 | 822 | |
817 | 823 | it("shows Slack interactive reply directives when enabled", () => { |
@@ -836,6 +842,12 @@ describe("slackPlugin agentPrompt", () => {
|
836 | 842 | expect(hints).toContain( |
837 | 843 | "- Slack selects: use `[[slack_select: Placeholder | Label:value, Other:other]]` to add a static select menu that routes the chosen value back as a Slack interaction system event.", |
838 | 844 | ); |
| 845 | +expect(hints).toContain( |
| 846 | +"- Slack plain text sends: write standard Markdown; OpenClaw converts it to Slack mrkdwn, including `**bold**`, headings, lists, and `[label](url)` links.", |
| 847 | +); |
| 848 | +expect(hints).toContain( |
| 849 | +"- 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.", |
| 850 | +); |
839 | 851 | }); |
840 | 852 | }); |
841 | 853 | |
|