Commit b9cb6a1
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 755e840 commit b9cb6a1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1731 | 1731 | | |
1732 | 1732 | | |
1733 | 1733 | | |
1734 | | - | |
| 1734 | + | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | 1737 | | |
| |||
0 commit comments