Commit 75f1500
committed
feat(slack): forbid fabricating mention tokens
Tighten the Slack-origin system prompt rule on user mentions: require
that the `<@U…|displayname>` token come from the thread context
verbatim, and explicitly forbid substituting the display name (or any
other string) for the `U…` ID. Falls back to plain text when no
labeled token exists.
Follow-up to #2676: the agent learned the token's shape but invented
the user ID — observed in a Slack reply rendering `<@paul|Paul D'Ambra>`,
which Slack doesn't ping.1 parent da2e124 commit 75f1500
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1741 | 1741 | | |
1742 | 1742 | | |
1743 | 1743 | | |
1744 | | - | |
| 1744 | + | |
1745 | 1745 | | |
1746 | 1746 | | |
1747 | 1747 | | |
| |||
0 commit comments