mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-06 22:09:44 +02:00
* fix(comment): set trigger_comment_id to actual reply, not thread root When a user replies in a thread and @mentions an agent, the enqueued task's trigger_comment_id was incorrectly set to the parent (thread root) comment instead of the reply that contained the mention. This caused the agent to read the wrong comment and miss the user's actual instructions. Always pass comment.ID to EnqueueTaskForMention so agents see the comment that triggered them. Fixes MUL-708 * fix(task): resolve thread root in createAgentComment for reply triggers With trigger_comment_id now correctly pointing to the actual reply (not the thread root), createAgentComment must resolve to the thread root before posting. Otherwise error/system comments would have parent_id pointing to a nested reply, making them invisible in the frontend's flat thread grouping. Part of MUL-708