Skip to content

feat(console): a comments column on the list page, with the threads of the records the view shows - #39157

Merged
objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-dns8v8
Dec 2, 2026
Merged

objectstack-fleet[bot] merged 7 commits into
mainfrom
claude/project-thread-dns8v8

Conversation

@os-support-ai

@os-support-ai os-support-ai commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Yibo Wang · project thread

Fixes #39085

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

What changes

  • @object-ui/types — optional DataSource.queryCommentThreads(request); its presence is the capability. Re-exports CommentThreadsQueryRequest / CommentThreadsQueryResponse from @objectstack/spec/api (not CommentThread, which collides with the collaboration component's name).
  • @object-ui/data-objectstack — ObjectStackAdapter.queryCommentThreads calls client.comments.queryThreads (POST /api/v1/comments/threads/query); a refusal passes through as the client threw it.
  • @object-ui/plugin-list — ListView host prop onEffectiveFilterChange (new sibling module listEffectiveFilter.ts; ListView.tsx gets one call). It reports buildEffectiveFilter(authored, panel, filter bar, queue, drops), the $filter the list's own read sends, on every layout (a board answers onFindParamsChange with null, so that channel could not serve kanban). The search term and a calendar window are not in it. A FilterOperatorError reports { kind: 'unlowerable' }, never "no filter". Built only while a host listens and after the object definition loads; reported only when the filter changes by content.
  • @object-ui/plugin-detail — presentational ViewCommentsPanel (cards, filter menu, load-more, the seven states, Esc/✕), splitCommentMentions for the mention highlight.
  • @object-ui/i18n — seven detail.viewComments* keys in all 11 locales (zh-Hant from the generator), mirrored in DETAIL_DEFAULT_TRANSLATIONS.
  • @object-ui/app-shell (private) — objectViewComments.tsx (the icon and the offer: desktop, grid or kanban, enable.feeds !== false, the door present), the lazily loaded objectViewCommentsColumn.tsx (the column, and an expanded card as the record's live discussion through useRecordDiscussion + DiscussionContextProvider + CommentThread mode="expand"), and useViewCommentThreads.ts (one request per page, keyed by content; a sys_comment write announced re-reads the loaded pages in one request up to 50; stale answers dropped; refusals mapped to states). ObjectView.tsx, objectViewListRenderer.tsx, objectViewPageHeader.tsx and PageHeader.tsx get calls and pass-throughs only: PageHeader takes comments into the shell group's first slot (or after the page actions outside the shell). useCommentsPanelOpen takes a key; commentResolutionOf / rowMentionsUser are exported for the card mapping.
  • Docs: content/docs/frontend/plugins/plugin-detail.mdx § The list page's comments column; plugin-detail and plugin-list READMEs; changeset (patch on the five published packages).

Tests

  • ui/packages/app-shell/src/views/ObjectView.commentsColumn-39085.test.tsx (8): through the real ObjectView and ListView — icon on a grid, none read while closed; pressed, the column sits in the content row beside the list (w-[380px] shrink-0, not absolute), reads ONE page with the view's filter; the record name opens the record through the row-click path; ✕ closes and is remembered, no read after; open state remembered and a sys_comment write announced re-reads once; icon on a board; no icon with feeds off or without the door.
  • ui/packages/app-shell/src/views/useViewCommentThreads-39085.test.tsx (24): first page once with scope + toggles; nothing before the list reports and nothing for unlowerable; re-read on scope/toggle change, none for an equal scope; load-more appends with dedupe; failed next page; write announced re-reads the loaded pages in one request (limit: 30); a superseded answer is dropped; cards past the 50-thread re-read ceiling kept with their cursor; a failed re-read keeps the cards and releases a superseded load-more; retry; no door ⇒ unavailable; error-to-state table; row mapping.
  • ui/packages/plugin-detail/src/comments/ViewCommentsPanel.test.tsx (14): cards, mention highlight, replies summary, no new-thread box; open-record vs expand; expanded via host; ✕/Esc; load-more and its retry; filtered-empty with show-all; empty; loading, failed + retry; denied/unscoped/unavailable with no filter menu; splitCommentMentions.
  • ui/packages/plugin-list/src/__tests__/ListView.harness.test.tsx new block ListView.onEffectiveFilterChange-39085 (4): grid reports exactly the read's $filter, once; a board reports too; the search term is left out; a malformed filter reports unlowerable and nothing else.
  • ui/packages/data-objectstack/src/queryCommentThreads-39085.test.ts (4): the filter is normalised as find normalises $filter (rule list lowered, empty sent as no filter); a filter find refuses is refused before any request; answer and refusal pass through.
  • ui/e2e/list-frame-geometry-35548.spec.ts: its source-text pin on <ObjectViewPageHeader …/> admits the new comments={…} prop (the pin went red on 489710f).

Acceptance notes

  • Filter scopes the threads; view switching changes the column. The list reports its effective filter (saved + unsaved panel/bar/queue conditions, no search) and the column keys its read on it by content (ObjectView test 2, hook test 3, harness block). A view switch remounts the list, which reports its own filter.
  • Narrower access sees fewer threads. Server side (feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller #39135 runs the filter as the caller); the client sends nothing that widens it, and an unlowerable filter is never sent as "no filter" (harness test 4, hook test 2).
  • Replying raises the count; resolving with 「显示已解决」 off removes the thread and clears the row dot. Writes in an expanded card go through the record page's own unit (useRecordDiscussion), which announces sys_comment; the column re-reads (ObjectView test 5, hook test 6) and U1's dot re-reads on the same announcement (pinned in feat(console): a grid row whose record has open comment threads shows a dot after the record name #39106).
  • 「只看我参与的」 keeps a thread where I'm mentioned. Sent as onlyMine: true; the server's participants include mentions (Comments: a thread stores who took part, so 'threads involving me' filters in one query #39081 / feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller #39135).
  • No new top-level control. The icon sits in the shell's button group via PageHeader's comments; useShellPageActionsSlot was already shaped for it.
  • Grid narrows at 1440 px; kanban the same. The column is a shrink-0 flex sibling in the content row for both layouts (ObjectView tests 2 and 6). Not measured in a browser.
  • Feeds off ⇒ no icon. The drawer has no comments. ObjectView test 7; the drawer is untouched.
  • One threads request per page; none while closed. ObjectView tests 1, 2, 4, 5; hook tests 1, 4.
  • Deviation: where the server lacks the threads read (the hosted dispatcher, Comments: the comment threads read is served on a hosted kernel too, through the dispatcher /comments domain #39134), the adapter still has the method, so the icon shows and the column says the server cannot list a view's comments (a 404/405/501 maps to unavailable), per the claim's premise.
  • Files to read first: ui/packages/app-shell/src/views/useViewCommentThreads.ts (request keying, re-read and stale-drop), ui/packages/plugin-list/src/listEffectiveFilter.ts (what is reported and when), ui/packages/app-shell/src/views/objectViewComments.tsx (the offer and the scope's lifetime).
  • Two-minute check: open any feeds-on object list on a self-hosted console, press the speech-bubble icon top right: a 380 px column opens beside the grid listing the comment threads of the rows the view shows; change the filter and the column re-reads.

Verification

  • Typecheck (tsc --noEmit): types, data-objectstack, plugin-list, plugin-detail, i18n, app-shell — all clean.
  • New tests: 54 passed across the five files above (the harness block run with -t).
  • Neighbouring suites: PageHeader ×4, ShellPageActions ×2, ConsoleLayout.noTopBar, ObjectView.shellPageActions / headerFold / rowCommentDot, objectViewPageHeader ×2, defaults-maps-mirror-en-pack, RecordDetailView.harness and every plugin-detail/src/comments file — 22 files, 301 tests passed. @object-ui/i18n suite 110 files, 1874 passed.
  • Eager closure budget after a console build: i18n-locale-en 70.2 KB of 78.7 KB; every ceiling green.
  • node scripts/pm/dispatch-gates.mjs --commands: 74 commands; 72 exit 0. Two NOT MEASURED locally, left to CI: pnpm --dir ui exec vitest run scripts/ was killed by the container's memory limit (re-run with --maxWorkers=2: 172 files, 5159 tests passed), and check:skill-examples refused its prerequisite (no client-react build; exit 3, nothing measured).
  • L2 (contract review) PASS on f51a85d with S1 and S2 should-fix; fixed in 669406b (re-read keeps cards past 50, failed re-read keeps cards; adapter filter normalised as find) and 0a8ba35 (nits N6, N7). Delta record PASS on 0a8ba35: S1 and S2 closed. After the fixes: the three touched test files 36 passed, tsc clean for types, data-objectstack, app-shell.
  • CI on 489710f: Build & E2E UI red on the source pin fixed in f51a85d; console-service-worker was flaky there (passed on retry).

https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o


Generated by Claude Code

…d the list's effective-filter host channel

Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
Co-authored-by: Claude <noreply@anthropic.com>
…he threads read

The header's comments icon on a grid or board of a feeds-on object opens a
380px column that narrows the list and reads the threads of the records the
view's effective filter selects; an expanded card is the record's live
discussion. Tests, docs, READMEs and the changeset.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
@os-support-ai os-support-ai self-assigned this Dec 2, 2026
@github-actions github-actions Bot added size/xl 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 Dec 2, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o
Contract-review-claim: session_01WGufzgJzS4DfAbhGoRzv5o · head f51a85d · 2026-12-02T15:49Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: f51a85dc4d94002e53c156b8e31e1d10f31cbdcc
Local-runs: none
Scope: ui/packages/types/src/data.ts, ui/packages/types/src/index.ts, ui/packages/plugin-list/src/ListView.tsx, ui/packages/plugin-list/src/listEffectiveFilter.ts, ui/packages/plugin-list/src/index.tsx, ui/packages/plugin-detail/src/comments/ViewCommentsPanel.tsx, ui/packages/plugin-detail/src/comments/commentMentions.ts, ui/packages/plugin-detail/src/comments/index.ts, ui/packages/plugin-detail/src/index.tsx + ui/packages/data-objectstack/src/index.ts, ui/packages/app-shell/src/views/useViewCommentThreads.ts, ui/packages/app-shell/src/views/objectViewComments.tsx, ui/packages/app-shell/src/views/objectViewCommentsColumn.tsx, ui/packages/app-shell/src/views/objectViewListRenderer.tsx
Security-touching: yes
Rule-change-verified: none

Inputs read: card #39085 (body and its three comments: the priority ruling 7338435207, the card-thread note 7338449831, the claim 7348982016), PR #39157 (body, the 42-file list, the net diff against main), and the check-runs on this head. Code outside the diff was read at the head to judge the surfaces, never reviewed: buildEffectiveFilter and the fetch effect in ListView.tsx, toFilterNode / mergeFilterNodes in ui/packages/core/src/utils/filter-converter.ts, convertQueryParams / translateFilterArray in the adapter, comments.queryThreads in packages/client, CommentThreadsQueryRequestSchema in packages/spec/src/api/comment-threads.zod.ts, lowerThreadsFilter in packages/plugins/plugin-audit/src/comment-threads-query.ts, CommentsPanel.tsx, useRecordDiscussion.ts and RecordDetailView.tsx.

Check-runs at read time (15:5xZ, 2026-12-02): no failure. Succeeded: Check Changeset, PR-body guards, Governed Surface Queue Guard, Check PR Size, Type Check · workspace / source gates / consumer gates / debt ledger, TypeScript Type Check, Lint · ESLint and the repo, docs, CI and scoped lint gates, Build UI Deps, Build and E2E UI, Live E2E UI, Build Docs, Dogfood Regression Gate, Spec property liveness, Check Documentation Links, Test Core 3/12. Still in progress, so no verdict yet from them: Test UI 1/16 to 16/16, Test Core 1/12 and 2/12, Type Check UI, Lint UI, Lint · PM dispatch-gates. This record judges the design; it does not stand in for those runs.

① Derived judgments

  • DataSource.queryCommentThreads is a new OPTIONAL member, typed by the spec's own CommentThreadsQueryRequest / CommentThreadsQueryResponse (both are z.input types exported from @objectstack/spec/api on main). Widening, right: no existing implementer breaks. ObjectStackAdapter implements it as connect() then client.comments.queryThreads(request), which exists on main and POSTs the body to /api/v1/comments/threads/query. Right.
  • The two type re-exports on @object-ui/types and ListEffectiveFilter on @object-ui/plugin-list, and ViewCommentsPanel, ViewCommentsPanelProps, ViewCommentsState, ViewCommentThreadItem, ViewCommentReplier, splitCommentMentions, CommentTextPart on @object-ui/plugin-detail: none of these names exists anywhere under ui/ on main (grep at origin/main), and the spec's CommentThread type, which would collide with the component of that name, is not re-exported. No collision. Right.
  • ListView's onEffectiveFilterChange is a new optional HOST prop, not a schema key. Right, and it is why Metadata-protocol: none holds.
  • Does the report ever differ from what the list's read sends? Refuted for the $filter parameter: the hook is handed buildEffectiveFilter(authoredFilter, appliedFilters, appliedUserFilterConditions, appliedQueueSittingConditions, queryDropFields), the same five arguments, in the same order, as the fetch effect's finalFilter, so the queue conditions, the drop fields and the withheld dataset-chart filters are in it exactly as in the read. It is gated on objectDefLoaded, the same flag the fetch waits on, and that flag is reset to false when schema.objectName or the data source changes, so nothing is told before the definition the drop fields come from has loaded. The search term rides $search, not the filter; the calendar window is merged after finalFilter and the column is not offered on a calendar. On a board the paged lanes read selfQueryFilter, built from the same call. Right. One residue at the wire, not at the parameter: S2.
  • Can a FilterOperatorError report "no filter"? Refuted. The catch answers { kind: 'unlowerable' }; any other error is rethrown; useViewCommentThreads builds a request key only for kind === 'filter', shows unscoped for unlowerable, and sends nothing. A null scope (not yet reported) also sends nothing. Right.
  • More than one threads request per page, or any while closed? Refuted. The first-page effect is keyed by content ([objectName, filter, showResolved, onlyMine]), so an equal filter in a new object re-reads nothing; loadMore is guarded by loadingMore; a superseded answer is dropped by sequence. Closed, the column is not mounted, the hook does not run, and onEffectiveFilterChange is undefined, so the list builds nothing. Right.
  • A scope reported for one object used for another? Refuted. The host stores the report with the objectName it arrived under and hands the column null unless that name equals the current one; ListView is keyed by the list identity (object and view) in objectViewListRenderer.tsx, so a new object is a fresh mount that reports only after its own definition loads. Right. The same guard is not applied per view: N1.
  • The door's optionality against the app-shell gate: the icon is offered only where typeof dataSource.queryCommentThreads === 'function', and the hook answers unavailable without the door; both read the same member. A server that does not mount the route (the claim's premise: self-hosted only today) still has the adapter declare the door, and the column then says unavailable from the 404 / 405 / 501, which is the behaviour the claim's premise names. Consistent. Right.
  • Reply, resolve and reopen, react, edit, delete in an expanded card: the card is useRecordDiscussion for that record under DiscussionContextProvider, drawn by CommentThread with the same six CommentHoverActions props CommentsPanel passes on the record page, each handler undefined under the same gates; feedsEnabled: true is sound because the column is offered only where enable.feeds !== false, the record page's own test. onAddComment is not passed and no composer for a new thread exists in ViewCommentsPanel. Right.
  • The seven detail.viewComments* defaults in DETAIL_DEFAULT_TRANSLATIONS are byte-identical to the en pack, and each of the other ten locales carries the seven keys. Right.

② Semver level

patch on @object-ui/types, @object-ui/data-objectstack, @object-ui/plugin-list, @object-ui/plugin-detail and @object-ui/i18n is the level AGENTS.md prescribes for this diff: Metadata-protocol: none (no spec file, no authorable key, a host prop and a DataSource member only) takes patch, and a non-protocol widening ships patch. Clause-②: yes (widening) is right: one optional interface member, one optional prop, new exports and new locale keys; nothing removed, renamed or narrowed. @object-ui/app-shell is private and correctly absent. Both declaration lines are in the PR body and the changeset body, and Check Changeset succeeded on this head.

③ Boundary flags

  • Dev flags and open_questions: the card carries no dev report and no open question at this head. The PR body's Acceptance notes and Verification sections still read "to be filled" and "in progress": the card's browser acceptance with two members is not evidenced on this head, and that stays with the lane seat's ACCEPT, not with this record.
  • SQL push-down: no finding. The UI materialises no record ids and joins nothing in the app: the column sends the list's filter and the server places the caller's read as one subquery (the spec's own contract on main). An expanded card reads one record's sys_comment rows by thread_id, the record page's read.
  • Security-touching: yes is meant: the data.ts jsdoc, the hook and the panel state permission behaviour (the read is the caller's own, a refusal is shown as denied, an unsendable filter is never read without). No credential, token or authentication code changes, and the server enforces access whatever the client sends.

④ Design judgment

S1 (should-fix) — ui/packages/app-shell/src/views/useViewCommentThreads.ts, the re-read on a comment write: limit = min(max(prev.threads.length, 25), 50) and the answer REPLACES the held threads. With more than 50 threads loaded (three pages or more), any announced sys_comment write shrinks the column to its first 50 cards. A reader who replies in, reacts to or resolves a thread past the 50th sees that card, expanded as it is, unmount and vanish, and loses the place; the card's acceptance line "reply in an expanded thread: it appears, and the thread's reply count rises" does not hold there. The file's own header states the 50 cap, so this is a chosen bound, but its effect on the reader is not stated anywhere. Fix inside the one-request rule: re-read the first 50 and keep the cards held past them (merged by id, cursor kept), or re-read page by page; either way a card the reader is in must not be dropped by their own write.

S2 (should-fix) — ui/packages/types/src/data.ts against ui/packages/data-objectstack/src/index.ts: the door's contract says the request carries "the list's filter in the syntax find sends as $filter", and the adapter says "the request goes out as the caller wrote it". Those two sentences disagree at the edges. find does not send $filter as written: convertQueryParams runs it through translateFilterArray (rule entries nested under a logical node, a spread ViewFilterRule list, any-of groups) before the wire, and the adapter's analytics door runs the same function for the stated reason that one stored filter must not mean two things on two paths. queryCommentThreads skips it, so a filter find accepts and normalises is refused by the route as INVALID_FILTER, and the column says the view's filter cannot be listed while the list beside it loads. The failure is closed, never a wider answer, and buildEffectiveFilter lowers the common shapes through toFilterNode first, so the first consumer rarely meets it; a ListView host that authors a nested rule list does. Fix one side: run request.filter through the translation find uses, or narrow the jsdoc to "a filter node, as GET /data/{object} accepts it; a view filter rule list is not lowered here".

N1 (nit) — objectViewComments.tsx keeps the reported scope per object, not per view. Between a view switch on the same object and the new list's first report, the column still shows the previous view's threads, and a toggle or a comment write in that gap reads once more with the previous view's filter. The gap is one object-definition read and the server still answers only what the reader may read. Keying the scope on the list identity would close it.

N2 (nit) — viewCommentsStateOfError maps every 403 to denied, whose text says the reader may not view comments on the object; the spec's PERMISSION_DENIED for a filter naming a field the reader cannot read gets the same sentence. Closed and harmless; the wording is slightly off for that case.

N3 (nit) — useListEffectiveFilterReport calls build() during render while a host listens, so an error that is not a FilterOperatorError now surfaces as a render error where the fetch's try would have shown the load-error panel. selfQueryFilter already does the same at render on boards and self-querying views, so this adds no new class of failure.

N4 (nit) — ViewCommentsPanel has onExpand only: an expanded card cannot be collapsed short of closing the column. The card asks for expansion in place and nothing more.

Per file, the rest holds. listEffectiveFilter.ts: reports by content, through refs, after settled, and only while a host listens; the type's two arms say what the hook does. ListView.tsx: one call, placed after every input it reads is defined. plugin-list/src/index.tsx, types/src/index.ts, plugin-detail/src/comments/index.ts, plugin-detail/src/index.tsx: exports only, names free on main. ViewCommentsPanel.tsx: presentational, the six states of ViewCommentsState each drawn, the filter menu withheld where nothing can be listed, Esc handled as CommentsPanel handles it, no new-thread box. commentMentions.ts: labels escaped before they enter the pattern, longest first, an address such as a@b.com left as text. objectViewCommentsColumn.tsx and objectViewListRenderer.tsx: agree with the contract as judged in ①.

Implemented-by: claude/project-thread-dns8v8
Reviewed-by: session_01WGufzgJzS4DfAbhGoRzv5o

VERDICT: PASS

…eads filter as find does (L2 S1, S2)

S1: a re-read after a comment write reads at most 50 threads; the cards held
past that are kept with their cursor, and a failed re-read keeps every card.
S2: queryCommentThreads lowers its filter through translateFilterToAST, as
find lowers $filter, so a filter find refuses is refused before any request.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o
Contract-review-claim: session_01WGufzgJzS4DfAbhGoRzv5o · head 669406b · 2026-12-02T16:02Z

…oth filter refusals (L2 delta N6, N7)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzgJzS4DfAbhGoRzv5o
@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o
Contract-review-claim: session_01WGufzgJzS4DfAbhGoRzv5o · head 0a8ba35 · 2026-12-02T16:07Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0a8ba35a9f2f6ca2e890d2dc4bc8f3b167dbe901
Local-runs: none
Scope: ui/packages/types/src/data.ts + ui/packages/data-objectstack/src/index.ts, ui/packages/app-shell/src/views/useViewCommentThreads.ts
Security-touching: yes
Rule-change-verified: none

Delta review of the two commits on top of f51a85dc4d94002e53c156b8e31e1d10f31cbdcc, the head of the first record: 669406b53a29012c070a922d5820d2bb530c361e (the fixes for S1 and S2) and this head (N6, N7 and the error-name note). Together they touch five files, three of them code and two tests; nothing else moved, so the first record's judgments on every other surface stand as written. Read: both diffs, the three changed code files at this head, and translateFilterToAST, MalformedFilterError and FilterOperatorError at this head. The PR's head is this sha. Check-runs at read time: none reported yet on this head; on the previous head they were in progress with no failure. This record does not stand in for them.

① Derived judgments

  • No public surface changes across the two commits: the DataSource.queryCommentThreads signature, the exports and the ListView prop are as they were. Right.
  • The adapter lowers request.filter through translateFilterToAST, the function find's raw route runs on $filter and whose array branch is the translateFilterArray the SDK route runs. A rule list, any-of groups and the object form reach the route as the AST the list read sends. The door's jsdoc in data.ts and the adapter's jsdoc now say the same thing as the code. Right.
  • A filter the lowering refuses is thrown before connect() and before any request. The adapter's jsdoc now names both refusals, FilterOperatorError and MalformedFilterError; both carry code: 'INVALID_FILTER' and httpStatus: 400, which viewCommentsStateOfError maps to unscoped. Still closed, never a read without the filter. Right.
  • The re-read still issues one request, with the same key and the same limit rule; the request count per page is unchanged, and a closed column still reads nothing. Right.

② Semver level

Unchanged by either commit: no changeset edit, no new export, no narrowing. patch on the five packages, Clause-②: yes (widening) and Metadata-protocol: none stand as judged on the first head.

③ Boundary flags

  • No dev flag or open question was added. The PR body's acceptance and verification sections remain the lane seat's.
  • SQL push-down: no finding; neither commit adds a read.
  • Security-touching: yes stands for the same reason as before: the data.ts hunk restates that the answer names no thread on a record the caller cannot open.

④ Design judgment

S1: closed

S2: closed

No must-fix, no should-fix.

N5 (nit) — left as it is, an accepted deviation: the cards kept past the 50th are the old cards from position 51 on, so when a thread new to the scope arrives at the top between reads, the old 50th card is in neither the fresh page nor the kept tail until the scope is read afresh, and a kept card stays as it was until then. The file's header states the bound.

N6: closed — a failed re-read now releases a superseded load-more with a functional update guarded by the request key, and writes nothing else, so the cards stay.

N7 (nit) — the behaviour is unchanged and now stated: the adapter's jsdoc says a bare string, number or boolean is no filter, as on find's read. The code and its contract agree; neither buildEffectiveFilter nor the first consumer can produce such a value. Whether the door should instead let the route refuse it is a follow-up for find and this door together, not a defect of this head.

Per file: types/src/data.ts states what the adapter does, sentence for sentence. data-objectstack/src/index.ts lowers before connecting, omits the key for an empty result and leaves every other request key as written. useViewCommentThreads.ts appends the kept tail after the fresh page with the existing dedupe, keeps the held cursor only when a tail is kept, leaves the cards alone when a re-read fails and releases the load-more control; the first-page, load-more and stale-answer paths are otherwise untouched.

Implemented-by: claude/project-thread-dns8v8
Reviewed-by: session_01WGufzgJzS4DfAbhGoRzv5o

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 review — ACCEPT on 0a8ba35a9f2f6ca2e890d2dc4bc8f3b167dbe901

The contract L2 at CONTRACT_REVIEW_TIER was PASS on f51a85dc (7351226159). Its delta on this head (7351665397) closes S1 and S2: no must-fix, no should-fix, N5 an accepted deviation, N7 stated. Check-runs: 55 success, 14 expected-skip, 0 failed, 0 pending. l1-face reads one Check Changeset run as failed, but it is the run cancelled by the 16:14Z body edit; the re-run at 16:17Z concluded success. Not governed. 2,599 lines, under the per-PR 3,000 line.

Verified on the tree and the records:

  • Scope. The diff stays in ui/. The list page's header icon goes in through PageHeader's existing comments slot, and the column is objectViewCommentsColumn.tsx, a 380 px column that narrows the list. Its reads come from useViewCommentThreads, through ObjectStackAdapter.queryCommentThreads to POST /api/v1/comments/threads/query (feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller #39135, merged). It reads nothing while closed.
  • Scope of the read. The scope is the list's effective filter, which ListView's new onEffectiveFilterChange reports from listEffectiveFilter.ts: the saved filter plus unsaved user filters, and not the search box. A filter the list cannot lower reaches the column as { kind: 'unlowerable' }, and the column says it cannot list comments rather than sending an unscoped read. That is S2's ground, closed on this head.
  • The thread in place. It reuses useRecordDiscussion (refactor(console): the record page's discussion becomes one unit other pages can mount #39109), so reply, resolve, reopen, reactions, edit and delete keep the record page's gates. There is no new-thread box.
  • Exports and declaration. ViewCommentsPanel and splitCommentMentions (+types) come from @object-ui/plugin-detail, ListEffectiveFilter from @object-ui/plugin-list, and queryCommentThreads and the two wire types from @object-ui/types. All are additive, so Clause-②: yes (widening), patch ×5 and Metadata-protocol: none hold.
  • i18n. The seven viewComments* keys land in all 11 locales.
  • Docs. The changeset, the two README sections and plugin-detail.mdx are true sentence by sentence.

Carried to the seat (nits, not owed):

  • The Clause-② sentence lists the new members and exports but not the seven new keys in the published @object-ui/i18n packs. The packs are published, so those keys are part of the widening, and the sentence could name them.
  • The card's 1440 px narrowing has no browser measurement, which the PR body says itself.
  • l1-face flags shape: the PR is ready, not a draft. The flip was by os-support-ai at 16:35Z, so it is the seat's own.

Relation. Fixes #39085 (U3 of #39077). It is the list page's consumer of the #39135 read, which the card scopes as the whole of U3. Not Tier H: the seat lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o

Final head for L1: 0a8ba35a9f2f6ca2e890d2dc4bc8f3b167dbe901 · 2026-12-02T16:33Z

  • CI: 55 succeeded, 16 skipped, no failure. One Check Changeset run reads cancelled; it was superseded by the PR-body edit, and its re-run on this head succeeded.
  • L2: PASS on f51a85d (S1, S2 should-fix), delta PASS on this head (S1: closed, S2: closed, N6: closed; N5 and N7 left as nits).
  • Size: +2585 / −14, one PR, under the 3,000-line line.
  • Asked of L1: the card's acceptance against the PR body's "Acceptance notes"; files to read first are listed there.

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzgJzS4DfAbhGoRzv5o

Hand-back to the seat · 2026-12-02T16:49Z

#39157 (card #39085, U3 of #39077) is ready to land on head 0a8ba35a9f2f6ca2e890d2dc4bc8f3b167dbe901: L2 PASS (7351226159) with its delta closing S1 and S2 on this head (7351665397), L1 ACCEPT on this head (7352440325), CI 55 success and 0 failed, mergeable clean, not draft, about 2,600 lines (not Tier H).

Left for the seat, none owed by the card: L1's three nits (the Clause-② line does not name the seven new detail.viewComments* keys in the @object-ui/i18n packs; no browser measurement of the 1440 px narrowing; the ready flip was done here). L2 nits N5 and N7 stay as stated. #39057 shares the locale files: whichever lands second merges main and re-runs the locale gates. U4 #39086 is unblocked once this lands. Branch claude/project-thread-dns8v8 holds everything; nothing local is unpushed.

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhGA3zoCFquQgku4pm

L1 review — ACCEPT on 0a8ba35a9f2f6ca2e890d2dc4bc8f3b167dbe901

The contract L2 at CONTRACT_REVIEW_TIER was PASS on f51a85dc (7351226159). Its delta on this head (7351665397) closes S1 and S2: no must-fix, no should-fix, N5 an accepted deviation, N7 stated. Check-runs: 55 success, 14 expected-skip, 0 failed, 0 pending. l1-face reads one Check Changeset run as failed, but it is the run cancelled by the 16:14Z body edit; the re-run at 16:17Z concluded success. Not governed. 2,599 lines, under the per-PR 3,000 line.

Verified on the tree and the records:

  • Scope. The diff stays in ui/. The list page's header icon goes in through PageHeader's existing comments slot, and the column is objectViewCommentsColumn.tsx, a 380 px column that narrows the list. Its reads come from useViewCommentThreads, through ObjectStackAdapter.queryCommentThreads to POST /api/v1/comments/threads/query (feat(plugin-audit,spec,client): one read returns the comment threads on the records a list filter selects, as the caller #39135, merged). It reads nothing while closed.
  • Scope of the read. The scope is the list's effective filter, which ListView's new onEffectiveFilterChange reports from listEffectiveFilter.ts: the saved filter plus unsaved user filters, and not the search box. A filter the list cannot lower reaches the column as { kind: 'unlowerable' }, and the column says it cannot list comments rather than sending an unscoped read. That is S2's ground, closed on this head.
  • The thread in place. It reuses useRecordDiscussion (refactor(console): the record page's discussion becomes one unit other pages can mount #39109), so reply, resolve, reopen, reactions, edit and delete keep the record page's gates. There is no new-thread box.
  • Exports and declaration. ViewCommentsPanel and splitCommentMentions (+types) come from @object-ui/plugin-detail, ListEffectiveFilter from @object-ui/plugin-list, and queryCommentThreads and the two wire types from @object-ui/types. All are additive, so Clause-②: yes (widening), patch ×5 and Metadata-protocol: none hold.
  • i18n. The seven viewComments* keys land in all 11 locales.
  • Docs. The changeset, the two README sections and plugin-detail.mdx are true sentence by sentence.

Carried to the seat (nits, not owed):

  • The Clause-② sentence lists the new members and exports but not the seven new keys in the published @object-ui/i18n packs. The packs are published, so those keys are part of the widening, and the sentence could name them.
  • The card's 1440 px narrowing has no browser measurement, which the PR body says itself.
  • l1-face flags shape: the PR is ready, not a draft. The flip was by os-support-ai at 16:35Z, so it is the seat's own.

Relation. Fixes #39085 (U3 of #39077). It is the list page's consumer of the #39135 read, which the card scopes as the whole of U3. Not Tier H: the seat lands it.

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack@os-support-ai · os-support-ai · session_01WGufzhPdWmTd47Fi2bKYZS

席位核对

ACCEPT — PR #39157 @ 0a8ba35a9f (Fixes #39085, U3 of epic #39077; card thread of seat os-support-ai, claim 7348982016).

落地

reading value
check-governed-merges.mjs --pr 39157 NOT governed; 2,599 changed lines ≤ 3000
pr-state.mjs on 0a8ba35a 55 success · 16 expected skip · 0 pending; one Check Changeset run reads cancelled, superseded on this head by two success runs (16:12Z, 16:19Z)
landing-k.mjs --pr 39157 K = 3 < 15
l1-face.mjs --pr 39157 FLAGGED shape (the thread flipped ready, which is the seat's step, now confirmed here) and all-checks (the superseded cancelled run above); neither holds

State change: ready for review + auto-merge, by the owning seat; on merge it closes #39085.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Dec 2, 2026
Merged via the queue into main with commit b98173c Dec 2, 2026
71 of 72 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-dns8v8 branch December 2, 2026 17:58
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/xl 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.

List page: a header comments icon opens a side column with the current view's threads

2 participants