Skip to content

[Bug] Mentions in nested blocks, or in content with a table, are never notified #845

Done

Description

@dhananjay6561

Summary

@mentions are not acted on in two cases: no notification is sent and a mentioned agent is not started.

  1. The mention is in a nested block, such as an indented list item.
  2. The comment, task description or document contains a table anywhere. Then every mention in it is skipped, not only the ones near the table.

Area

API

Steps to reproduce

  1. Add a task comment with a bullet list. Indent the second item with Tab and @mention a teammate in it.
  2. The teammate gets no notification. The same mention in a top-level item works.
  3. Add a table to a document, then @mention a teammate in a normal paragraph below it and save.
  4. The teammate gets no notification.

Expected behavior

Every teamMention in the content is notified (or the agent is started), wherever it sits in the document.

Actual behavior

mention.ExtractMentionsFromBlocks (services/api/internal/pkg/mention/mention.go) only reads each top-level block's content:

  • It never walks children, so mentions in nested blocks are missed. linkMentions in service/activity/mentions.go does walk children, so a plain-text @name in a nested item is turned into a chip that then never notifies anyone.
  • It decodes content as an array of inline items. A table block's content is an object ({"type":"tableContent","rows":[...]}), so json.Unmarshal fails for the whole document and the function returns no mentions at all.

This affects comment mentions on tasks and documents, and new mentions in task descriptions and documents (newlyMentionedUserIDs).

Environment

master @ ad5040f0

Activity

  1. pullfrog commented on Dec 1, 2026

    @pullfrog
    Contributor
  2. dhananjay6561 commented on Dec 1, 2026

    @dhananjay6561
    ContributorAuthor

    Fix is up in #846. cc @pikann

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions