multica/server
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
..
cmd feat(daemon): add authentication for daemon API routes 2026-03-31 16:19:02 +08:00
internal fix(server): improve comment trigger logic for agent execution 2026-04-01 21:37:33 +08:00
migrations merge: resolve conflicts with main 2026-03-31 16:25:20 +08:00
pkg Merge remote-tracking branch 'origin/main' into fix/s3-cleanup-on-delete 2026-03-31 16:49:32 +08:00
go.mod fix(upload): add file type/size validation, Content-Disposition header 2026-03-31 14:55:27 +08:00
go.sum feat(upload): add file upload API with S3 + CloudFront signed cookies 2026-03-31 14:41:17 +08:00
sqlc.yaml feat: pivot to AI-native task management platform (#232) 2026-03-20 17:55:49 +08:00