Skip to content

fix(plugin-audit, plugin-detail): a comment notification opens the comments at that comment - #36878

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-36410-comment-notification-opens-comment
Nov 24, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/issue-36410-comment-notification-opens-comment

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB

Refs #36410 (item 1)

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户点开"有人@你"或"有人回复了你"的通知后,记录页直接打开评论面板,并滚动到那条评论、高亮显示;电脑和手机都是这样。以前要自己去找评论。
  • 属于记录页评论体验这一组改进,替每个跟着评论通知点进来的用户省掉翻找这一步。
  • 出错时最坏情况是落到记录页但评论面板没打开(和以前一样);已经在收件箱里的旧通知仍按旧链接打开,可以直接撤回本改动。
  • 无

What changes

Producer (@objectstack/plugin-audit, audit-writers.ts). The collab.mention and collab.reply inbox emits now set payload.url, which messaging's existing actionUrlFor already honours, to /{object}/{id}?comments={rootCommentId}. When the comment is a reply, &comment={commentId} is added.

  • Reply: the root is the thread's top-level comment, found by the same bounded parent_id walk readThreadParticipants already did. It is factored into walkToThreadRoot, and the participants read now also returns rootId.
  • Mention in a top-level comment: the comment is its own thread, so there is no second param. Mention in a reply: the reply's top-level comment plus the reply. If the walk fails or finds no root, the link is the record alone, as before.
  • Second param, chosen: comment names the exact comment to scroll to. It is written only when it differs from the thread root.
  • The mention and reply e-mails (mentionUrl) carry the same link, made absolute through getConsoleUrl as before.
  • Inbox rows already stored keep their old /{object}/{id} link: there is no backfill.
  • Not touched: messaging's actionUrlFor, packages/spec, other notifications (the CONTROL pin shows a non-comment emit still gets the derived /{object}/{id}).

Console. openInboxNotification is unchanged: it already follows the link, query string included (resolveNotificationTarget).

  • urlParams.ts: registers comment (RECORD_COMMENT_PARAM) beside comments in the reserved list. The comments doc now covers the desktop meaning.
  • RecordDetailView.tsx, desktop: a non-empty ?comments= opens the comment panel at that thread, whatever this browser last chose, and leaves the stored choice untouched. Closing the panel (its close button or the comments icon) drops comments/comment with a replace, so it stays closed. An empty ?comments= on desktop means nothing (CONTROL pin).
  • RecordDetailView.tsx, phone: the existing ?comments= page opens the thread and hands ?comment= to the page. Moving to another thread or going back drops comment.
  • recordCommentsPanel.tsx: passes the focus through RecordCommentsAside.

Scrolling lives in @object-ui/plugin-detail.

  • CommentsPanel takes focusThreadId/focusCommentId. It shows the thread past the filter (the filter goes to show all when it would hide the thread), opens its replies in the same commit (CommentThread openSignal), marks the comment (CommentItem targeted, data-comment-target) and scrolls only the list, never the page around it (scrollCommentIntoView).
  • After that one scroll, the list stays where it is until a thread is added. Before this, a later loading flip snapped it back to the foot: the first desktop pin caught that.
  • CommentsPage takes focusCommentId, and the thread opens scrolled to that comment, marked.

Fence note: the claim amendment names RecordDetailView.tsx. The new param's registration in urlParams.ts and the two-prop pass-through in recordCommentsPanel.tsx are the mechanical carriers of the seat-sanctioned second param and of the desktop entry, and are declared here. NavigationOverlay (item 2) is untouched.

Tests

Pins added (each with a one-off ablation)
  • plugin-audit comment-reply-notice.integration.test.ts (real ObjectQL on SQLite, real messaging pipeline, reading sys_inbox_message.action_url): reply, reply to a reply (root, not parent), mention in a top-level comment, mention in a reply (inbox and e-mail), and CONTROL: a non-comment notice keeps /{object}/{id}. The existing e-mail link assertions in this file, in mention-email.integration.test.ts and in mention-recipient-gate.integration.test.ts now read the comment link.
  • plugin-detail CommentsPanel.test.tsx: a reply link opens the thread, marks the reply and scrolls the list (420 px on a laid-out box); a top-level link; the reader can collapse again; CONTROL with no link. CommentsPanel.resolved-36075.test.tsx: a resolved thread is shown past the default filter. CommentsPage.test.tsx: a thread opened at a reply scrolls to it; CONTROL opens at the top.
  • app-shell RecordDetailView.commentsPanel-36075.test.tsx, through the real RecordDetailView: desktop ?comments=c-ada&comment=c-reply opens the panel at the thread with the reply drawn, marked and scrolled to, and the stored choice untouched; closing drops the link; CONTROL: empty ?comments= opens nothing. Phone: the same link opens the thread page scrolled to the reply, and going back drops comment.
Ablations (one-off, `scripts/ablation-replace.mjs`; every restore proven blob == HEAD and `git diff HEAD` empty)
  1. Producer link drops the query (if (!rootId) return recordPath; changed to return recordPath;): 8 failed / 12 passed. All four link pins and the four e-mail-link assertions went red; the CONTROL stayed green.
  2. Panel never scrolls to the linked comment: 3 failed (two panel pins plus the desktop RecordDetailView pin).
  3. CommentThread ignores the open signal (useState(openSignal != null) changed to useState(false)): 3 failed (reply pin, collapse pin, desktop pin).
  4. Phone page skips the scroll (line deleted): 2 failed (page pin plus the phone RecordDetailView pin).
  5. Desktop ignores the link (commentsOpenChosen alone): 2 failed (the two desktop pins).

These are vitest suites over source (no dist/ in the resolution path), so no rebuild leg was needed.

Acceptance notes

  • Acceptance "Opening a comment notification shows that comment without another click": met for new mention and reply notices, on desktop (the panel at the thread, scrolled, marked) and on phone (the thread page, scrolled, marked). Notices already stored open the record as before (no backfill).
  • Comment kinds covered: collab.mention and collab.reply, the only comment notification topics in the tree. No "comment on a followed record" notification exists.
  • The e-mail link goes to /_console/{object}/{id}?…. Whether the console's base-path redirect keeps the query is not measured here.
  • Browser reach: NOT MEASURED. Following a real notice needs a full workspace build plus the showcase and console servers, on a shared box where the verification lock queued 5 to 9 minutes per run. The real-RecordDetailView pins above are the reach evidence instead.

Verification

Read first:

  1. packages/plugins/plugin-audit/src/audit-writers.ts: commentRecordPath, and the mention root walk (the extra read for a mention in a reply).
  2. ui/packages/plugin-detail/src/comments/CommentsPanel.tsx: the two layout effects (foot versus linked comment) and the filter reveal.
  3. ui/packages/app-shell/src/views/RecordDetailView.tsx: commentsLinkThread and the wrapped setCommentsOpen.

Two-minute check: in a running showcase, @mention a second user in a reply on any record, sign in as that user and open the bell row. The record page opens with the comment panel at that thread, the replies open, and the reply highlighted in view.


Generated by Claude Code

…l at its thread, scrolled to the comment

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
…d until a thread is added

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufziG2t1d9cfRQJDrHkB
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/plugin-audit, touching 11 documentable anchor(s).

8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/api/data-api.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/deployment/cli.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/frontend/plugins/plugin-detail.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/kernel/contracts/data-engine.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/permissions/attachments-access.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/permissions/system-context.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/plugins/packages.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/upgrading.mdx (via sys_comment (literal, a string literal in readThreadParticipants))

⛔ 7 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v14.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/releases/v16.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/releases/v17/17-0.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/releases/v17/17-1.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/releases/v17/17-5.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/releases/v17/17-6.mdx (via sys_comment (literal, a string literal in readThreadParticipants))
  • content/docs/releases/v18/18-0.mdx (via sys_comment (literal, a string literal in readThreadParticipants))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 12 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 0819cab13c33b6b996c0a5c410052d9524fcf1f7 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 4f20e3df7cb847423b36c474e18e6a11a40b18c5 — the merge of head ffdb13cd4eb7951637870fba588d258e611ca578 into base 0819cab13c33b6b996c0a5c410052d9524fcf1f7, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 4f20e3df7cb847423b36c474e18e6a11a40b18c5 && git checkout 4f20e3df7cb847423b36c474e18e6a11a40b18c5
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 0819cab13c33b6b996c0a5c410052d9524fcf1f7 ffdb13cd4eb7951637870fba588d258e611ca578 && git checkout -B drift-repro 0819cab13c33b6b996c0a5c410052d9524fcf1f7 && git merge --no-ff ffdb13cd4eb7951637870fba588d258e611ca578

node scripts/docs-audit/affected-docs.mjs --json 0819cab13c33b6b996c0a5c410052d9524fcf1f7

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 0819cab13c33b6b996c0a5c410052d9524fcf1f7 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB
os-dev-report

{
  "issue": 36410,
  "status": "done",
  "branch": "claude/issue-36410-comment-notification-opens-comment",
  "pr": "https://github.com/objectstack-ai/objectstack/pull/36878",
  "head": "ffdb13cd4eb7951637870fba588d258e611ca578",
  "session": "session_01WGufziG2t1d9cfRQJDrHkB",
  "premise_still_valid": true,
  "summary": "Option A, item 1 only (Refs #36410 (item 1)). Producer: plugin-audit's collab.mention and collab.reply inbox emits set payload.url (which messaging's existing actionUrlFor honours) to /{object}/{id}?comments={rootCommentId}, adding &comment={commentId} when the comment is a reply. A reply's root comes from the existing parent_id walk, factored into walkToThreadRoot. A mention in a reply walks to its root. A mention in a top-level comment names no second param. If the walk fails, the link is the record alone. The e-mail mentionUrl carries the same link. Stored inbox rows keep their old link (no backfill). actionUrlFor and packages/spec are untouched. Console: openInboxNotification is unchanged. Desktop RecordDetailView gains a ?comments entry that opens the panel at the thread without changing the stored open choice; closing the panel drops the link. Phone reuses ?comments= and hands ?comment= to the page. Scrolling lives in plugin-detail: CommentsPanel focusThreadId/focusCommentId (reveals the thread past the filter, opens its replies in the same commit, marks the comment, scrolls only the list), CommentsPage focusCommentId, CommentThread openSignal/targetId, CommentItem targeted. Second param chosen: comment. Size: M as graded.",
  "tests": "At head ffdb13cd4, all through os-verify-lock. plugin-audit full suite: Test Files 109 passed (109), Tests 1826 passed (1826). The first run at 3b1879b2 found 1 stale fixture caused by this change (mention-recipient-gate.integration.test.ts mentionUrl); it was fixed in the same PR at ffdb13cd. plugin-detail src/comments plus app-shell RecordDetailView.commentsPanel-36075: Test Files 5 passed (5), Tests 89 passed (89). Narrowed app-shell set (urlParams, RecordDetailView comment/discussion/feed suites, recordCommentsPanel-36075, openInboxNotification, HomePage.openMarksRead): Test Files 14 passed (14), Tests 158 passed (158). Typecheck: plugin-audit typecheck exit 0; plugin-detail type-check and app-shell type-check: VERDICT command-exit 0. Ablations (scripts/ablation-replace.mjs, each restore blob == HEAD and git diff HEAD empty; source-resolved suites, so no dist leg): (1) producer link drops the query: 8 failed / 12 passed, CONTROL green; (2) panel skips the scroll: 3 failed; (3) CommentThread ignores openSignal: 3 failed; (4) phone page skips the scroll: 2 failed; (5) desktop ignores ?comments: 2 failed. Browser reach: NOT MEASURED. Reason: following a real notice needs a full workspace build plus the showcase and console servers on a shared box where the verify lock queued 5 to 9 min per run. Reach evidence is the real-RecordDetailView desktop and phone pins.",
  "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands derived 76 families at 3b1879b2 (STALE TREE note: 6 commits behind origin/main; scripts/check-skills-token-ratchet.mjs changed upstream). Each was run with its exit code captured before any pipe. dispatch-gates --ran reconciliation: '76 derived famil(ies) accounted for — 72 run, 4 NOT-MEASURED (4 DERIVED from a recorded exit 3)'. The 4 are PREREQUISITE NOT MET: check-plugin-teardown-shape --self-test (shallow clone), check:dual-build-cjs-loads (needs full build), check:i18n (CLI not built), check:type-check-debt. pnpm --dir ui exec vitest run scripts/ :: exit 1 was SIGKILL on the shared box, so NOT MEASURED; ui/scripts is untouched. Re-run at final head ffdb13cd4 (the commit after the union touched one plugin-audit test file): check:cross-package-test-inputs, check:test-source-alias, check:nul-bytes, check:issue-citations :: exit 0 each. overlap-check: VERDICT clean exit 0 against origin/main. CI on ffdb13cd4: 55 success, 10 skipped, 0 failure. Required contexts: Lint & Repo Gates=success, TypeScript Type Check=success, Test Core=success, Build Core=success, Governed Surface Queue Guard=success, Lint UI=success, Type Check UI=success, Test UI=success, Build & E2E UI=success, Live E2E UI=success, Dogfood Regression Gate=success; also Check Changeset=success.",
  "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
  "mcp_calls": "0",
  "api_writes": "3 — round 1: POST issues/36410/comments (os-dev-report 7120180050, needs_decision); round 2: relay pr_create (POST pulls, then POST issues/36878/assignees, run 45340618312); POST issues/36878/comments (this os-dev-report, via post-stamped). git push is not a REST write.",
  "open_questions": [],
  "security_findings": "none",
  "out_of_scope_findings": [],
  "line_budget": "16 files, +572/-52 vs base 1d284058 before the fixture fix (17 files at head). Production: audit-writers.ts +106/-32, RecordDetailView.tsx +32, CommentsPanel.tsx +52, CommentThread.tsx +21, CommentsPage.tsx +18, CommentItem.tsx +8, scrollToComment.ts +26 (new), urlParams.ts +20, recordCommentsPanel.tsx +7; the rest is tests and changeset.",
  "deviations": "(1) Fence: the amendment names RecordDetailView.tsx. I also edited ui/packages/app-shell/src/urlParams.ts (registers the seat-sanctioned second param `comment` in RESERVED_URL_PARAMS) and views/recordCommentsPanel.tsx (a two-prop pass-through to CommentsPanel). Both are the mechanical carriers of the sanctioned design and are declared in the PR body. I did not stop for them. (2) overlap-check was not run before the third push (3b1879b2); it was run right after, clean, and before every later push. (3) Declared narrowing: the full app-shell package suite (2476 test files) was started and stopped after holding the lock for 44 min (my own recorded processes); local UI coverage is the narrowed 14-file app-shell set plus plugin-detail src/comments. CI Test UI (16 shards) ran the full farm: success. (4) The PR body was written at creation (subagents do not PATCH it), before the final local readings. It states browser reach NOT MEASURED; the report carries the final numbers. (5) The PR body footer uses the AGENTS.md session-URL form, not the harness emoji line. (6) @object-ui/app-shell is private, so the changeset covers @objectstack/plugin-audit and @object-ui/plugin-detail.",
  "files_changed": [
    ".changeset/36410-comment-notice-opens-comment.md",
    "packages/plugins/plugin-audit/src/audit-writers.ts",
    "packages/plugins/plugin-audit/src/comment-reply-notice.integration.test.ts",
    "packages/plugins/plugin-audit/src/mention-email.integration.test.ts",
    "packages/plugins/plugin-audit/src/mention-recipient-gate.integration.test.ts",
    "ui/packages/app-shell/src/urlParams.ts",
    "ui/packages/app-shell/src/views/RecordDetailView.tsx",
    "ui/packages/app-shell/src/views/RecordDetailView.commentsPanel-36075.test.tsx",
    "ui/packages/app-shell/src/views/recordCommentsPanel.tsx",
    "ui/packages/plugin-detail/src/comments/CommentItem.tsx",
    "ui/packages/plugin-detail/src/comments/CommentThread.tsx",
    "ui/packages/plugin-detail/src/comments/CommentsPage.tsx",
    "ui/packages/plugin-detail/src/comments/CommentsPage.test.tsx",
    "ui/packages/plugin-detail/src/comments/CommentsPanel.tsx",
    "ui/packages/plugin-detail/src/comments/CommentsPanel.test.tsx",
    "ui/packages/plugin-detail/src/comments/CommentsPanel.resolved-36075.test.tsx",
    "ui/packages/plugin-detail/src/comments/scrollToComment.ts"
  ],
  "Dev-effort": "high",
  "Rounds": 2
}

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzesUz1Y8VZuKJRhVL8

席位核对 — ACCEPT · repo:objectstack#3 · head ffdb13c · 2026-11-24T07:00Z

L1 read of #36878 against card #36410, item 1 only (Refs; item 2, the NavigationOverlay slot, stays on the card for the seat). Seat route A, claim amendment 7120223249, carrier-file note 7124480262. Head ffdb13cd4eb7951637870fba588d258e611ca578; dev report 7124457469.

Face. l1-face.mjs --pr 36878 CLEAN (13 items read, none flagged). At this head: 55 checks succeed, 10 skip as expected, 0 fail. mergeable_state clean. check-governed-merges.mjs says NOT governed. Clause-②: no: actionUrl keeps its string shape and its "only pointer" role. Metadata-protocol: none.

Producer (plugin-audit audit-writers.ts), read and sound.

  • commentRecordPath builds /{object}/{id}?comments={rootId}, adding &comment={commentId} only when the comment is not the root. With no root it returns the record alone, and with no record it returns null, so no url is set.
  • A top-level mention is its own thread. A mention in a reply walks up through the factored walkToThreadRoot (bounded, cycle-safe, held to the thread). A failed walk is logged and falls back to the record link. A reply notice reuses readThreadParticipants' walk, which now also returns rootId, so it costs no extra read.
  • The e-mail mentionUrl and reply URL are the same path made absolute through getConsoleUrl. The recipient gate (read both the record and the comment) is unchanged.
  • actionUrlFor, the spec and stored rows are untouched (no backfill), all as the route says.

Console, read and sound.

  • Desktop: RecordDetailView opens the panel when ?comments={thread} is present, without writing the stored open or closed choice. Closing a panel the link opened drops both params with a replace, so it stays closed. openCommentsPage and leaveCommentsPage drop comment whenever the reader moves on.
  • Phone: the existing ?comments= page receives focusCommentId.
  • CommentsPanel with focusThreadId / focusCommentId:
    • It widens the filter to show all, once, when the linked thread is hidden.
    • It opens the thread's replies (openSignal) and marks the target.
    • It scrolls the list (never the page) to it once, then hands scrolling back to the reader. The foot-follow resumes only after a thread is added.
    • A stale link (thread not present) leaves the list at its foot.
  • RECORD_COMMENT_PARAM is reserved in RESERVED_URL_PARAMS.

Tests. I count 7 test files changed across the producer and console. The producer integration pins cover the reply notice, the mention e-mail and the recipient gate with the new link. The console pins use the real RecordDetailView (desktop open via link, closing drops the params, the stored choice unchanged), CommentsPanel (hidden thread shown, replies opened, target marked, stale link) and CommentsPage. Ablations 1-5 each go red.

Changeset, read sentence by sentence. Every sentence matches the diff. Leaving out the private @object-ui/app-shell is correct.

No must-fix, no should-fix.

Notes (nit, no action required):

  • N1. The declared deviations are accepted. urlParams.ts (reserves comment) and recordCommentsPanel.tsx (pass-through) sit outside the amended fence, but they are mechanical, in a private package, and recorded on the card (7124480262). The overlap-check ran just after a push, and the full local app-shell suite was stopped with CI Test UI green.
  • N2. Browser reach was NOT MEASURED. jsdom does no layout, so scrollCommentIntoView's geometry (centring the comment, scrolling only the list) is unproven by the pins, which prove only that it finds the comment and is called. The card's acceptance ("shows that comment without another click") is visual. One browser check at landing would settle it: a notice for a reply deep in a long, resolved thread.
  • N3. A mention in a reply now costs one bounded parent_id walk per mention write. That is fine at comment volume, and noted for anyone who later batches mention emits.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufziG2t1d9cfRQJDrHkB

Landing: 2026-11-24T07:01Z · area ux-C · Refs #36410 (item 1) · head ffdb13cd4eb7951637870fba588d258e611ca578

Probe Reading
L1 席位核对 ACCEPT at this head, comment 7124523288 (l1-face CLEAN; ablations 1–5 red; nits N1–N3 need no action; carrier files recorded 7124480262)
L2 not owed: Clause-②: no (seat-confirmed: actionUrl keeps its string shape), Metadata-protocol: none, no packages/spec/src/**, no governed path
Checks 55 success, 10 skipped, 0 failed on this head
mergeable_state clean
check-governed-merges NOT governed, 628 changed lines ≤ 3000
landing-k OK — PRBASE 0819cab, K = 3 < 15, no new locale pack under this label PR, no shared book moved under it

State: ready + auto-merge (merge queue). #36410 stays open for item 2; the partial release follows the merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 24, 2026 07:02
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 53733c1 Nov 24, 2026
66 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-36410-comment-notification-opens-comment branch November 24, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants