You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Phone list comments: a thread past the first page of its record's comment read is reported gone #39195
立卡门类别:③ 审核发现的后续(PR #39193 的 L1 把 nit N1 定为 should-fix,范围外,席位立卡)。Source: #39171
Part of #39077 · follow-up of #39171 (L1 nit N1, comment 7357497592)
定级:area:ux · Bug · priority:p3 · reach: phone list page comments, only on a deployment whose data read has a page-size cap and a record with more threads than one page · evidence: read (PR #39193 review, head f03d511)
Today: the phone thread page checks that the opened thread still exists against the record discussion's thread list (ThreadGone in ui/packages/app-shell/src/views/objectViewCommentsPage.tsx, reading useRecordComments().threads). That list comes from the record's comment read in ui/packages/plugin-detail/src/.../useRecordDiscussion.ts (about line 620), which reads one page. With a page cap, a thread whose comments sit past that page is not in the list, so it is reported gone.
Fix direction (the builder confirms against the tree): decide "gone" from a read that can see the thread (for example the thread's own root comment by id, or a read without the cap), never from the absence in a capped page.
Acceptance: with a page cap smaller than the record's thread count, opening any thread from the list page's comments page shows that thread; a thread that was really deleted or resolved-and-hidden still falls back to the cards. A component or app-shell test pins both.
Clause-②: no · Metadata-protocol: none (expected; the builder re-reads).
Claim: PM loop, zone comments-39077 of seat repo:objectstack@os-bill (topic #39077, taken over from os-support-ai on the maintainer's word 2026-12-02 21:55Z 「接手过来的 os-support-ai 的任务和专题不分优先级都要处理」)
Area: comments-39077
Session: session_01Utp6Ca2yTZZiHWkyVgD2oK
Account: os-bill
Branch: claude/issue-39195-thread-past-first-page
Worktree: objectstack-issue-39195
Domain: domain:ui
Seat: repo:objectstack@os-bill
File surface: ui/packages/app-shell/src/views/useRecordDiscussion.ts; ui/packages/app-shell/src/views/objectViewCommentsPage.tsx; ui/packages/app-shell/src/views/ObjectView.phoneCommentsPage-39086.test.tsx; a changeset. Stop on breach; explain in the report.
Container & model: S, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier prints no path-derived mandate), effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: this repo's own code (ui/packages/app-shell, objectstack): the phone thread page decides "gone" from a capped page | no platform path covers it | phone list-page comment readers on a deployment with a data page cap; reachable today
Thread-read: 7362767232
Premise: holds — ThreadGone at objectViewCommentsPage.tsx:254 on main judges from useRecordComments().threads; the dev re-reads the read in useRecordDiscussion.ts first and reports premise_still_valid: false if the read is already paged or unbounded.
Serial constraints cleared: check-handover.mjs --inflight on the two source paths → NO OVERLAP READ; PR #39193 (same files) merged 2026-12-02 23:43Z.
{
"issue": 39195,
"status": "done",
"branch": "claude/issue-39195-thread-past-first-page",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39252",
"session": "session_01Utp6Ca2yTZZiHWkyVgD2oK",
"premise_still_valid": true,
"summary": "The premise holds on origin/main 1fe9c628. readComments in useRecordDiscussion.ts read sys_comment with no $top and ignored hasMore. packages/types query-read-limits.ts gives a list read that names no limit the deployment's default page plus hasMore, so a thread whose root sat past that page was missing from useRecordComments().threads, and ThreadGone sent the reader back to the cards. Fix, part 1: the non-payload comment read is now readRecordComments. It follows hasMore page by page, with $top set to the first page's length and $skip set to the rows read so far. A later 5xx/network/401/403 fails the read; a later 400 (row budget) stops paging and keeps the pages read. Fix, part 2: ThreadGone decides gone only after the thread is absent from the discussion AND the thread's root comment, read by id with findOne, is missing or is not a top-level comment of this record; a refused or failed root read keeps the page. The record page's own non-payload read and the desktop list column share readComments, so they now show comments past the first page too (same file, same fix); the payload (served) path is untouched. Assignee: none written (rule 2); the PR carries the claim's Account os-bill.",
"tests": "head a020f360, from ui/, under os-verify-lock. pnpm exec vitest run ObjectView.phoneCommentsPage-39086.test.tsx useRecordDiscussion.test.tsx: 'Test Files 2 passed (2) / Tests 20 passed (20)', VERDICT command-exit 0 (the 39086 file has 15 tests, 4 of them new in describe 'objectstack#39195 — a thread past the first page of its record discussion'). The 30 app-shell test files that mention sys_comment: 'Test Files 30 passed (30) / Tests 449 passed (449)', exit 0 (run at the commit c31010f1 before the changeset-only commit, identical in code). pnpm --filter @object-ui/app-shell type-check (tsc --noEmit and tsc -p tsconfig.test.json): exit 0. Ablation via scripts/ablation-replace.mjs; both legs restored to the HEAD blob with git diff HEAD empty. (1) Comment read put back to a single unpaged find: 'opens a thread that starts past the first page, with its replies, and stays on it' turned red, 'Tests 1 failed | 14 passed (15)'. (2) ThreadGone made to call back on absence alone: 'does not report gone a thread the deployment's row budget keeps out of the read' turned red, 'Tests 1 failed | 14 passed (15)'. No dist build was involved: the test imports app-shell source relatively.",
"gates": "Local, head a020f360. dispatch-gates --commands --repo objectstack-ai/objectstack derived 38 commands. All 38 ran, plus pnpm check:changeset-fixed (its roster is under .changeset/). Each exited 0, with the exit code captured before any pipe. dispatch-gates --ran (exit codes recorded): '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)'. overlap-check.mjs: 'origin/main: merges cleanly', 0 PR heads, VERDICT clean exit 0. CI families (Lint & Repo Gates, Type Check UI, Test UI, Build & E2E UI, Test Core and the rest): NOT MEASURED here, because the report is delivered on PR open per contract; read the check-runs on PR 39252 head a020f360.",
"mcp_calls": "0",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, plus POST /issues/39252/assignees os-bill), and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/39195/comments via post-stamped.mjs). git push is not counted: the empty-branch probe plus 4 WIP/fix pushes, plain git.",
"classifier_refusals": [],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · same family as this card: an unpaged read cut by the data page cap · reach: named producer, readCommentReactionRows in ui/packages/app-shell/src/views/useRecordDiscussion.ts. It reads sys_comment_reaction in pages of 100 comment ids with no $top and ignores hasMore, so on a deployment whose page size is smaller than those comments' reaction rows, reactions past the first page are not shown (read from code, not reproduced at a public door) · seat to fold into the family's card, not filed as a single card · dedupe words: readCommentReactionRows hasMore, reaction read page cap, sys_comment_reaction unpaged",
"carrier: none · noted, not filed: the record page payload path (recordPageComments, served) is outside this diff; whether the server caps the discussion it serves in the page payload is NOT MEASURED",
"carrier: none · noted, not filed: with a row budget smaller than a record's discussion, a thread past the budget is not reported gone, but the phone page shows the record's thread list instead of that thread (pinned as not gone; showing it would need a per-thread read)"
]
}
2026-12-03T05:00Z · Close-out · PR #39252 merged (2026-12-03T04:39Z, merge commit 7c513deedb), closing this card as Fixes #39195 intended.
Delivered: the record discussion's comment read follows hasMore page by page, and the phone thread page calls a thread gone only when its root comment, read by id, is missing or is not a top-level comment of this record. ACCEPT 7367479137.
Activity
objectstack-fleet commentedon Dec 3, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
First touch · 2026-12-03T00:04Z
定级:
area:ux · Bug · p3 · 手机列表评论里超出首页的讨论串被报成已删除(仅限有分页上限的部署)· 读码(PR #39193 L1 N1)domain:ui、类型 Bug,进pm:queue。专题 专题:列表页右上角的评论入口——看当前视图里各条记录的评论串,可回复、可解决,不能写新评论 #39077 子卡。objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
Claim: PM loop, zone comments-39077 of seat
repo:objectstack@os-bill(topic #39077, taken over from os-support-ai on the maintainer's word 2026-12-02 21:55Z 「接手过来的 os-support-ai 的任务和专题不分优先级都要处理」)Area: comments-39077
Session:
session_01Utp6Ca2yTZZiHWkyVgD2oKAccount:
os-billBranch:
claude/issue-39195-thread-past-first-pageWorktree:
objectstack-issue-39195Domain:
domain:uiSeat:
repo:objectstack@os-billFile surface:
ui/packages/app-shell/src/views/useRecordDiscussion.ts;ui/packages/app-shell/src/views/objectViewCommentsPage.tsx;ui/packages/app-shell/src/views/ObjectView.phoneCommentsPage-39086.test.tsx; a changeset. Stop on breach; explain in the report.Container & model:
S,mode:subagent,model: TIER_DEFAULT (dispatch-gates --tier prints no path-derived mandate),effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
this repo's own code (ui/packages/app-shell, objectstack): the phone thread page decides "gone" from a capped page | no platform path covers it | phone list-page comment readers on a deployment with a data page cap; reachable todayThread-read: 7362767232
Premise: holds —
ThreadGoneatobjectViewCommentsPage.tsx:254onmainjudges fromuseRecordComments().threads; the dev re-reads the read inuseRecordDiscussion.tsfirst and reportspremise_still_valid: falseif the read is already paged or unbounded.Serial constraints cleared:
check-handover.mjs --inflighton the two source paths → NO OVERLAP READ; PR #39193 (same files) merged 2026-12-02 23:43Z.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
os-dev-report
{ "issue": 39195, "status": "done", "branch": "claude/issue-39195-thread-past-first-page", "pr": "https://github.com/objectstack-ai/objectstack/pull/39252", "session": "session_01Utp6Ca2yTZZiHWkyVgD2oK", "premise_still_valid": true, "summary": "The premise holds on origin/main 1fe9c628. readComments in useRecordDiscussion.ts read sys_comment with no $top and ignored hasMore. packages/types query-read-limits.ts gives a list read that names no limit the deployment's default page plus hasMore, so a thread whose root sat past that page was missing from useRecordComments().threads, and ThreadGone sent the reader back to the cards. Fix, part 1: the non-payload comment read is now readRecordComments. It follows hasMore page by page, with $top set to the first page's length and $skip set to the rows read so far. A later 5xx/network/401/403 fails the read; a later 400 (row budget) stops paging and keeps the pages read. Fix, part 2: ThreadGone decides gone only after the thread is absent from the discussion AND the thread's root comment, read by id with findOne, is missing or is not a top-level comment of this record; a refused or failed root read keeps the page. The record page's own non-payload read and the desktop list column share readComments, so they now show comments past the first page too (same file, same fix); the payload (served) path is untouched. Assignee: none written (rule 2); the PR carries the claim's Account os-bill.", "tests": "head a020f360, from ui/, under os-verify-lock. pnpm exec vitest run ObjectView.phoneCommentsPage-39086.test.tsx useRecordDiscussion.test.tsx: 'Test Files 2 passed (2) / Tests 20 passed (20)', VERDICT command-exit 0 (the 39086 file has 15 tests, 4 of them new in describe 'objectstack#39195 — a thread past the first page of its record discussion'). The 30 app-shell test files that mention sys_comment: 'Test Files 30 passed (30) / Tests 449 passed (449)', exit 0 (run at the commit c31010f1 before the changeset-only commit, identical in code). pnpm --filter @object-ui/app-shell type-check (tsc --noEmit and tsc -p tsconfig.test.json): exit 0. Ablation via scripts/ablation-replace.mjs; both legs restored to the HEAD blob with git diff HEAD empty. (1) Comment read put back to a single unpaged find: 'opens a thread that starts past the first page, with its replies, and stays on it' turned red, 'Tests 1 failed | 14 passed (15)'. (2) ThreadGone made to call back on absence alone: 'does not report gone a thread the deployment's row budget keeps out of the read' turned red, 'Tests 1 failed | 14 passed (15)'. No dist build was involved: the test imports app-shell source relatively.", "gates": "Local, head a020f360. dispatch-gates --commands --repo objectstack-ai/objectstack derived 38 commands. All 38 ran, plus pnpm check:changeset-fixed (its roster is under .changeset/). Each exited 0, with the exit code captured before any pipe. dispatch-gates --ran (exit codes recorded): '38 derived famil(ies) accounted for — 38 run, 0 NOT-MEASURED (a DERIVED zero — all 38 recorded an exit code and none of them is 3)'. overlap-check.mjs: 'origin/main: merges cleanly', 0 PR heads, VERDICT clean exit 0. CI families (Lint & Repo Gates, Type Check UI, Test UI, Build & E2E UI, Test Core and the rest): NOT MEASURED here, because the report is delivered on PR open per contract; read the check-runs on PR 39252 head a020f360.", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls draft, plus POST /issues/39252/assignees os-bill), and this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/39195/comments via post-stamped.mjs). git push is not counted: the empty-branch probe plus 4 WIP/fix pushes, plain git.", "classifier_refusals": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · same family as this card: an unpaged read cut by the data page cap · reach: named producer, readCommentReactionRows in ui/packages/app-shell/src/views/useRecordDiscussion.ts. It reads sys_comment_reaction in pages of 100 comment ids with no $top and ignores hasMore, so on a deployment whose page size is smaller than those comments' reaction rows, reactions past the first page are not shown (read from code, not reproduced at a public door) · seat to fold into the family's card, not filed as a single card · dedupe words: readCommentReactionRows hasMore, reaction read page cap, sys_comment_reaction unpaged", "carrier: none · noted, not filed: the record page payload path (recordPageComments, served) is outside this diff; whether the server caps the discussion it serves in the page payload is NOT MEASURED", "carrier: none · noted, not filed: with a row budget smaller than a record's discussion, a thread past the budget is not reported gone, but the phone page shows the record's thread list instead of that thread (pinned as not gone; showing it would need a per-thread read)" ] }objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6Ca2yTZZiHWkyVgD2oK
2026-12-03T05:00Z · Close-out · PR #39252 merged (2026-12-03T04:39Z, merge commit
7c513deedb), closing this card asFixes #39195intended.hasMorepage by page, and the phone thread page calls a thread gone only when its root comment, read by id, is missing or is not a top-level comment of this record. ACCEPT 7367479137.pm:dispatchedremoved in this stroke;domain:*andarea:*stay.