multica/server/internal
Jiayuan 37881adbed 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 15:30:24 +08:00
..
auth feat(auth): email verification login and personal access tokens 2026-03-26 14:32:30 +08:00
cli feat(daemon): add --profile flag for multi-environment isolation 2026-03-30 20:21:23 +08:00
daemon feat(agents): reply as thread instead of top-level comment (#205) 2026-03-31 13:48:39 +08:00
events feat(realtime): WS invalidation + refetch pattern, inbox bugfixes, UI polish 2026-03-29 13:49:40 +08:00
handler feat(server): trigger agents via @mention in comments 2026-03-31 15:30:24 +08:00
logger feat(logging): add structured logging across server and SDK 2026-03-26 10:57:11 +08:00
middleware refactor(server): consolidate workspace permission checks into middleware 2026-03-30 03:40:20 +08:00
realtime feat(realtime): route personal events to target user only 2026-03-29 17:42:50 +08:00
service feat(server): trigger agents via @mention in comments 2026-03-31 15:30:24 +08:00
util feat(server): trigger agents via @mention in comments 2026-03-31 15:30:24 +08:00