multica/server/internal
Jiayuan 04da4bc3b7 fix(server): improve comment trigger logic for agent execution
- Add thread-aware on_comment suppression: when a member replies in a
  thread started by another member without @mentioning the assignee
  agent, the on_comment trigger is now suppressed. This fixes the bug
  where member-to-member conversations incorrectly triggered the
  assigned agent.

- Add terminal status check to on_mention: enqueueMentionedAgentTasks
  now skips done/cancelled issues, consistent with on_comment behavior.

- Write explicit default triggers on agent creation: new agents get
  [on_assign, on_comment, on_mention] all enabled, instead of relying
  on null/empty = all enabled. Existing agents with empty triggers
  still work via backwards-compat fallback in agentHasTriggerEnabled.

- Consolidate trigger check logic into shared agentHasTriggerEnabled
  helper, fixing inconsistency where empty [] was handled differently
  by isAgentTriggerEnabled (returned false) vs isAgentMentionTriggerEnabled
  (returned true).

- Add documentation comments explaining the intentional status gate
  difference: on_assign fires only for todo (start new work), while
  on_comment fires for any non-terminal status (conversational).
2026-04-01 21:37:33 +08:00
..
auth merge: resolve conflicts with main 2026-03-31 16:25:20 +08:00
cli feat(daemon): add --profile flag for multi-environment isolation 2026-03-30 20:21:23 +08:00
daemon fix(daemon): update execenv tests to match current renderIssueContext output 2026-03-31 16:19:01 +08:00
events feat(realtime): WS invalidation + refetch pattern, inbox bugfixes, UI polish 2026-03-29 13:49:40 +08:00
handler fix(server): improve comment trigger logic for agent execution 2026-04-01 21:37:33 +08:00
logger feat(logging): add structured logging across server and SDK 2026-03-26 10:57:11 +08:00
middleware merge: resolve conflicts with main 2026-03-31 16:25: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
storage fix(upload): clean up S3 objects when attachments are deleted 2026-03-31 16:34:47 +08:00
util feat(server): trigger agents via @mention in comments 2026-03-31 15:30:24 +08:00