Skip to content

评论(五)后端:有人回复时通知这一串的发起人和参与过的人(现在只有被提到才通知) #36074

Description

@objectstack-fleet

coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff

立卡门类别:④ 协调节点的子单,承父单 #36062(专题:评论重做,维护者直派)。第一阶段。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。

维护者说过的(2026-11-21)

  • 「列专题卡,分阶段处理」
  • 「这个专题第一阶段你建议处理哪些功能」
  • 协调席建议第一阶段拆 4 张(电脑评论栏、已解决、手机整页两层、几处小修),并问回复通知要不要提前一起做,维护者:「同意」(回复通知提前到第一阶段,就是这次同意的)

现状(主干 c00be39b74)

评论只有「被提到」会发通知:站内加邮件,邮件每人每 10 分钟最多一封;编辑评论时新加的提到也会通知;被提到的人看不到这条记录就不通知,并告诉作者(packages/plugins/plugin-audit/src/audit-writers.ts:2891 起)。别人回复了你的评论,没有任何提醒。

参照(Attio 帮助文档,没有实测,只参照行为)

有人回复一串评论时,发起这一串的人收到通知。站内通知默认有,邮件通知自己在账户设置里打开。

要做的

  1. 有人在一串评论里发回复时,通知:这一串的发起人;在这一串里回复过的其他人。
  2. 不通知:回复的作者自己;这条回复里已经被提到的人(他们收到的是「提到你」的通知,不发两条);看不到这条记录的人(和提到的规则一样)。
  3. 通知的样子和「提到你」一致:标题说明谁回复了哪条记录上的评论,带评论预览,点了打开这条记录。走和提到同一条通知通道,邮件频率限制沿用现有的。
  4. 通知的文字按接收人的语言,和提到的通知一样。

不做的

  • 不做「关注一条记录」(第三阶段)。
  • 不做通知偏好设置(每个人能不能关掉回复通知)。沿用现有通知通道的设置。
  • 不改提到的通知。

验收

  • 甲发评论,乙回复:甲收到一条站内通知,内容说明乙回复了,点开到这条记录。乙没有收到。
  • 甲发评论,乙回复,丙再回复:甲和乙各收到一条,丙没有。
  • 乙回复时提到了甲:甲只收到一条(提到的那条),没有第二条。
  • 甲后来没有这条记录的查看权限:乙回复时甲不收到通知。
  • 10 分钟内乙连续回复三次:甲的邮件不超过一封,站内通知按现有规则。
  • PR 正文说明通知是怎么判断「参与过的人」的。

协调席自己加的(不是维护者原话)

维护者同意的是「回复通知发起人」提前做。下面是协调席补的:

  • 第 1 项里也通知「在这一串里回复过的其他人」。Attio 文档只说了发起人。
  • 第 2 项的三种不通知;第 3、4 项。
  • 「不做的」里不做通知偏好。

没有核对的

  • Attio 的通知只看了文档。
  • 通知点开后能不能直接定位到那条回复,取决于评论栏(「评论(一)」);本卡只要求打开到记录。

Reader: 后端车道(packages/plugins/plugin-audit/src/audit-writers.ts 的提到通知一段、audit-plugin.ts:565 通知通道的接法)。

Dedupe: 回复 通知 评论(objectstack,open)→ 0。

Activity

  1. added
    enhancement
    priority:p2
    area:records
    domain:server
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:records · Feature · comments (5) backend: a reply notifies the thread's starter and participants (today only mentions notify); moved into phase 1 by the maintainer's 「同意」; topic #36062 → p2 as set by the coordinator · size M.

  3. added
    pm:queue
    on Nov 21, 2026
  4. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T13:19Z · area b1-CM (epic #36062 phase 1; the maintainer took the epic for this seat on its decision card).
    Area: b1-CM
    Session: session_01L6bhgT5fpDCjJ7voXxj1ge (card thread)
    Account: os-sales
    Branch: claude/project-thread-apylxb
    Seat: repo:objectstack#1
    Domain: domain:server
    File surface: packages/plugins/plugin-audit/src/** (audit-writers.ts reply path beside writeCommentMentions, mention-recipient-gate.ts optional notice, mention-email.ts constants, audit-plugin.ts wiring and email template, translations/messages.ts three keys in 11 locales), tests, a @objectstack/plugin-audit patch changeset. No governed surface.
    Container & model: M, card thread, model: opus, effort: high
    Clause-②: no (no spec, protocol, SDK, request or response change; no package export; the thread re-reads it on the final diff)
    Metadata-protocol: none
    Premise (thread, read on main 493ad095, file build-seat1/36074/premise-read.md in the project folder): holds. Only mentions notify today. Participants are found in SQL: walk parent_id to the top-level comment (its author is the starter), then one aggregate grouped by author_id where parent_id is the root, on the existing index. The reply author, everyone mentioned in this reply, and anyone the existing mention gate refuses (reads the record and the comment as the recipient) are dropped.
    Basis: card #36074; epic #36062.
    Scope, the seat's reading: a new collab.reply topic on the same entry and channels as collab.mention, in-app plus email, with a per-person 10-minute email bucket of its own (the same rule as mentions; the mention path is unchanged). Editing a reply sends nothing. The title says who replied, not the record's name, matching "mentioned you": a record name would need a second field-level check per recipient. That part of item 3 was the coordinating seat's own addition, not the maintainer's words, so the seat reads it this way and the PR body says so.
    Resume-from: none
    Fold-or-serial: serial; no fold. #36071 edits the same plugin in parallel; overlap-check.mjs before each push, and the second to land merges main. L1 at L1-a. The PR carries Fixes #36074.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 21, 2026
  6. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim amendment · 2026-11-21T13:34Z · #36074, claim 7063189874, PR #36098

    Clause-②: yes (widening). The thread re-read it on the final diff: three new messages keys loaded into the host i18n service and a new notification topic collab.reply widen what the published plugin exposes, the same reading as #36070's new i18n key. Nothing is removed. The seat runs the declaration-face L2 on the green head. Everything else in the claim stands.

  7. added a commit that references this issue on Nov 22, 2026
    00ae570
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:recordsdomain:serverenhancementpm:dispatchedpriority:p2

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions