multica/server/pkg
Jiayuan 3646ec5a53 feat(server): trigger agents via @mention in comments
When a user @mentions an agent in any issue's comment, the system now
enqueues a task for that agent. The agent reads the issue context and
replies to the triggering comment thread.

Changes:
- Add shared util.ParseMentions for mention parsing (used by both
  comment handler and notification listeners)
- Add EnqueueTaskForMention to TaskService for explicit agent targeting
- Add on_mention trigger type support in agent trigger config
- Add HasPendingTaskForIssueAndAgent SQL query for per-agent dedup
- Add enqueueMentionedAgentTasks in CreateComment handler

Safety: prevents self-trigger (agent mentioning itself), dedup with
assignee on_comment trigger, terminal issue status check, and per-agent
pending task dedup.
2026-03-31 16:58:50 +08:00
..
agent merge: resolve conflicts with main (reactions feature) 2026-03-30 23:29:42 +08:00
db feat(server): trigger agents via @mention in comments 2026-03-31 16:58:50 +08:00
protocol merge: resolve conflicts with main (reactions feature) 2026-03-30 23:29:42 +08:00
redact feat(security): redact sensitive information in agent live output 2026-03-30 23:38:49 +08:00