Repository navigation
Description
Filing gate: ② a decision only the maintainer can make. The maintainer asked for this card directly, in a non-seat Claude Code session (https://claude.ai/code/session_01RKKVngnSz3HSwwHD7UfpjG), and asked that the PM decide whether and how it gets built. ⛔ Not a claim. Suggested-grade: p3 (user-visible, but the default desktop path is not affected).
Maintainer quick read
A reader on page 2 of a long list opens a record. If the record opens as a full page, going back to the list shows page 1, and the reader has to page forward again to find their place. If the record opens in the drawer (the desktop default), the list stays on page 2. Decide whether the list should come back on the page the reader left, and if so, where that page number is kept.
What happens today (read from code at main, not yet reproduced in a running app)
The list's current page is local component state that starts at 1 and is never written anywhere else:
ui/packages/plugin-list/src/ListView.tsx:2226:const [serverPage, setServerPage] = React.useState(1);ui/packages/plugin-list/src/ListView.tsx:7384: the pager only callssetServerPage(p). The URL does not change.
Whether the page survives depends on whether the list unmounts:
| How the record opens | When | Back on the list |
|---|---|---|
Drawer (?recordId=… over the list) |
Desktop default (navigation.mode defaults to drawer, useNavigationOverlay.ts:368; reader preference drawer) |
Page 2: the list stays mounted (objectViewRecordNavigation.ts:330) |
Full page (:objectName/record/:recordId) |
Object declares navigation.mode: 'page'; reader preference page (Display menu); "Open as full page" from the drawer |
Page 1: the record route is a sibling of the list route (app-shell/src/console/AppContent.tsx:170), so ObjectView/ListView unmount and remount with useState(1) |
| Phone (≤ 640 px) | Every record opens as a page (ObjectView.tsx:951-953, #27058) |
Page 1: same reason. Only the record page's own scroll is remembered (useRecordPageScrollMemory), not the list's page |
Separately, and on purpose, any change to object, filter, sort, search, grouping, page size or view snaps the list back to page 1 (ListView.tsx:4021-4037), and a page past the end is clamped to the last reachable one (ListView.tsx:3903). Every option below keeps both behaviours.
Governing text
ui/packages/app-shell/src/urlParams.ts:63-65: "Page-scoped params (q,limit,offset,view,type,review,package, …) belong to their page's own contract and are NOT reserved here — but they must not collide with the names above." A list page number in the URL is a page-scoped param under this rule. It must not reuse a reserved name (recordId,form,tab,related, …).ui/packages/app-shell/src/console/AppContent.tsx(docblock aboveRECORD_NAMED_PAGE_ROUTE): "pageis a page-scoped list parameter elsewhere". This is a reason to check the bare namepagefor collisions before choosing it.- No ADR rules on list pagination state. Search:
node scripts/pm/check-prior-rulings.mjs --terms pagination,pager,page-number,list-state,back-navigation→ 1 hit (AGENTS.md:820, unrelated: REST pagination helpers).
Protocol: no spec change in any option. ListViewSchema.pagination (pageSize, pageSizeOptions) is untouched. This is console behaviour only.
Premise (re-check before acting)
- The page is still local state:
grep -n "useState(1)" ui/packages/plugin-list/src/ListView.tsxstill showsserverPage. - The record route is still a sibling of the list route:
grep -n "record/:recordId'" ui/packages/app-shell/src/console/AppContent.tsx. - Not yet measured in a running app: whether a phone list uses the same server pager or loads more as you scroll. If phone lists load more instead, the phone row above becomes "back at the top", and option A or B needs a scroll or batch restore there as well.
Options
| Option | What it does | What the reader sees | Effort |
|---|---|---|---|
| A — page in the URL | ListView takes a controlled page (page / onPageChange props, like sort already is). The host (ObjectView) binds it to a page-scoped query param with a name that does not collide (e.g. pg; final name chosen against urlParams.ts), written with replace so Back does not step through pages. The reset-to-1 rule clears the param. |
Back, refresh, and a copied link all land on page 2. Applies to every host page that renders a list. | domain:ui · 1 PR (plugin-list + app-shell + tests) · no precedent measured |
| B — page in session storage | ListView (or the host) saves the page per object + view in sessionStorage and reads it back on mount. |
Back lands on page 2 in the same tab. Refresh in the same tab does too. A copied link or a new tab starts at page 1. A stale stored page is clamped by the existing last-page guard. | domain:ui · 1 PR · no precedent measured |
| C — keep the list mounted | Nest the record route under the list route, or keep the list alive while the record page shows. | Back lands on page 2 with scroll and selection intact. | domain:ui · multi-PR routing change across the record-page v2 surface (#26676) · no precedent measured |
| D — keep as is | Document that full-page and phone opening start the list at page 1. | Unchanged: page-mode objects and every phone user lose their place. | none |
Business meaning, one line each:
- A: the list's address says where you are, the way a numbered page in a search result does. Back, refresh and sharing all keep it.
- B: the browser tab remembers where you were. The address does not, so a link you send opens on page 1.
- C: the list never closes behind the record. Same experience as the drawer, at a much larger routing cost.
- D: anyone working through a long list as full pages, or on a phone, starts over after each record.
Four facets
- ① Long-term soundness: A stays inside an existing rule (page-scoped params,
urlParams.ts) and an existing pattern (the list already takessortfrom its host). B adds a second, invisible store for list state beside the URL. C widens the routing contract of the record page. D adds nothing. - ② Business pull: every phone reader, and every desktop reader of an object declared
navigation.mode: 'page'or with the reader preferencepage, hits this on any list longer than one page. Desktop drawer users do not. - ③ AI-error resistance: A keeps the state visible in the URL, so a wrong page is plain to see. B can silently restore a stale page (bounded by the existing last-page clamp). C has the widest surface for silent regressions in record-page routing.
- ④ Startup-stage scope: A and B add no spec key and no metadata surface. C is a structural change. D is free.
Prior rulings read: pagination,pager,page-number,list-state,back-navigation → 1 hits; none; thread: not read (no --card); repo: objectstack-ai/objectstack
Recommendation
A. End state in two years: the list's address carries the page, as GitHub's issue list (?page=2) and Jira's issue navigator (startIndex) already do. Back, refresh and sharing all agree, and the drawer and the full page behave the same. B is cheaper to wire but does not survive sharing, and it hides state the URL should show. C costs several times more for the same visible result. D leaves the phone experience broken.
Self-check: "Looking only at ①, choose A. Do ②③④ flip it? No."
Confidence gap: not reproduced in a running app yet, and the phone list's paging style (pager or load-more) is not measured. Both are listed under Premise.
After a ruling
- A:
domain:uidev. Add controlledpage/onPageChangetoListView(fall back to internal state when the host passes none, so other hosts are unchanged). Bind it inObjectViewto the chosen query param withreplace. Make the reset-to-1 path clear the param. Tests: page 2 → open as full page → back shows page 2; a filter change resets to page 1 and clears the param; a too-large page in the URL clamps to the last page. - B: same
ListViewseam, with asessionStoragekeyobject:viewinstead of the URL, and the same three tests. - C / D: no dev dispatch until scoped (C), or close with a docs note (D).
Reader who acts: the maintainer for the ruling, then domain:ui.
Related: #26676 (record page v2: drawer by default, page by declaration), #27058 (phone: the record is always a page), #28915 (drawer is the default; split retired).
Dedupe (all repo:objectstack-ai/objectstack is:issue): pagination page reset back list (29, none relevant), page number back from record (none relevant), list page restore (none relevant), serverPage (0), back button list loses page (none relevant), list state lost navigating back (2, none relevant), scroll position list back record (none relevant). New.
Activity
objectstack-fleet commentedon Nov 6, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: audit · p3 ·
domain:ui· decision · 2026-11-06T06:54Z⛔ Not a claim.
domain:uiseat may decide it and record the reasoning on the card.needs-user-decisionstays only until that record exists. p3 as suggested.Generated by Claude Code
objectstack-fleet commentedon Nov 7, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Ruling: batch #T962 item 4 · letter A · maintainer 「同意」 2026-11-07T14:48Z
Path: none
Presented in the triage seat's session as batch 1 item 4. The maintainer answered 「同意」 to A: the list page in the URL. It is a page-scoped param whose name is chosen against
urlParams.tsand written withreplace. The reset-to-1 rule clears it.Execution:
domain:ui, one PR, coveringplugin-list(a controlledpage/onPageChange, as withsort),app-shell(the binding) and tests. First, measure on a phone whether its list pages or loads on scroll; if it loads on scroll, the PR restores the batch or scroll position too.Generated by Claude Code
objectstack-fleet commentedon Nov 7, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5nLA7wiVY5YWjT9Svr
Claim: PM loop round 1 · 2026-11-07T15:43Z
Session:
session_01FEkQ5pnaew3QBpfvsdUhfi(card thread, dev) · seatsession_01FEkQ5nLA7wiVY5YWjT9SvrAccount:
os-project-managerBranch:
claude/project-thread-0ph69gWorktree:
objectstack-issue-30850Domain:
domain:uiSeat:
domain:ui#1File surface:
ui/packages/plugin-list/src/ListView.tsx(controlledpage/onPageChange),ui/packages/app-shell/src/urlParams.tsand the list binding inui/packages/app-shell/src/**, their tests, root.changeset/Container & model: M,
mode:thread,model: default tier(dispatch-gates --tier: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility: n/a — not a defect card (ruled feature: list page in the URL, ruling 6708434746)
Thread-read: 6708434746
Premise: holds:
ListView.tsx:2226useState(1)onorigin/main56baf78eSerial constraints cleared: none — no other
domain:uicard ispm:dispatchedonListView.tsxorurlParams.tsScope: ruling A (6708434746) as written, one PR,
Fixes #30850; if the publishedplugin-listprops widen, the dev reportsyes (widening)and the seat amends this line. Order:/mnt/project-files/pm-orders/ui/order-30850.md. Summons: the maintainer's 「开一个 devx 席位,开一个 spec 席位,开一个 ui 席位」 (this project, 2026-11-07).objectstack-fleet commentedon Nov 7, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5pnaew3QBpfvsdUhfi
os-dev-report
{
"issue": 30850,
"status": "done",
"branch": "claude/project-thread-0ph69g",
"pr": "#31229",
"session": "session_01FEkQ5pnaew3QBpfvsdUhfi",
"premise_still_valid": true,
"summary": "Ruling A executed. ListView (plugin-list) takes a controlled page: page / onPageChange host props; every move (pager, reset to page 1 on a query change, clamp past the end) goes through one stable setServerPage that asks the host, and a move to the page already shown calls nothing; without page the list behaves as before. The console object page binds it to uf__page in the list-state family userFilterUrlState owns (LIST_PAGE_PARAM, parseListPageParam; not in RESERVED_URL_PARAMS; the bare name page was avoided), read live every render and written with replace; page 1 is no param, the page is kept out of userFilterParamsKey and the chip reader, and Reset to view and the signed-out return link drop it. Phone measured first: the card list pages with its own pager on the same page state, it does not load on scroll, so no batch or scroll restore is owed. A write race this exposed was fixed in the same PR: the router's functional setSearchParams starts from the last rendered params, so a search typed on page 2 was erased by the reset's page write; ObjectView's one setter now chains writes until location.key moves. Premise measured on origin/main 8ef4d30: ListView serverPage was useState(1), the record route a sibling of the list route.",
"tests": "Head 5793838. New: ObjectView.listPageInUrl-30850.test.tsx (6, real ObjectView + ListView + plugin-grid under a MemoryRouter whose record route is the list route's sibling, every step a fireEvent click, windows read at the data source): desktop page 2 → Open as full page → Back lands on page 2 ($skip 10 only, Page 2 of 3, every turn REPLACE, one more Back leaves the list); phone 390 px card pager page 2 → card tap → record page → Back on page 2; reload/link uf__page=3; search on page 2 clears the page and keeps the term; uf__page=40 clamps to 3; control uf__page=two opens page 1. ListView.controlledPage-30850.test.tsx (7, stub grid) and userFilterUrlState.listPage-30850.test.ts (7). The three files: Test Files 3 passed (3), Tests 20 passed (20), VERDICT command-exit 0. plugin-list whole suite plus the 171 app-shell files importing ObjectView / the list URL modules / plugin-list (on ed83060; head differs by one test import): Test Files 343 passed (343), Tests 3749 passed (3749), VERDICT command-exit 0. Ablations via scripts/ablation-replace.mjs, anchor hit once, restore proven blob == HEAD and git diff HEAD empty, src-aliased so no build on the path: A1 ListView ignores page → 10 failed / 3 passed; A2 ObjectView writes stop chaining → 1 failed / 5 passed; A3 uf__page counted in userFilterParamsKey → 1 failed / 6 passed (first A3 attempt refused by the tool before running, replacement already in the file; rerun with a distinct replacement).",
"gates": "dispatch-gates --commands on 5793838: 36 derived, 36 run, all exit 0 (codes captured before any pipe); --ran: '36 derived famil(ies) accounted for — 36 run, 0 NOT-MEASURED'. ui scripts vitest: Test Files 170 passed | 2 skipped (172), Tests 4996 passed | 2 skipped. Beyond the derivation, exit 0: plugin-list and app-shell type-check (tsc --noEmit plus tsconfig.test.json), eslint over the 8 touched files (0 errors), check:new-line-citations (0 new). Round 1 on ed83060 had one red, check:test-source-alias (the new ObjectView test reaches a dynamic import of @objectstack/lint; 5793838 imports it at module top); all 40 rerun on 5793838. Ledger: /mnt/project-files/pm-orders/ui/30850-gates-ran.txt. CI check-runs on PR #31229: in_progress at report time (not awaited, per os-dev.md).",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"files_changed": 10,
"line_budget": "+744 / -9 = 753 changed lines (10 files), under the 3000 human-merge threshold",
"deviations": [
"Clause-② measured as yes (widening), not the claim's no: plugin-list's published ListViewProps gains page and onPageChange, and app-shell's module gains LIST_PAGE_PARAM and parseListPageParam. No i18n key added, changed or removed. The seat amends the claim line.",
"ObjectView.tsx's search-param setter (write chaining) is outside the claim's named list binding in spirit but inside its file surface (ui/packages/app-shell/src/**): without it the reset-to-1 rule erases the query change that triggered it (search, chips). Named in the PR body.",
"The whole app-shell suite (2,212 files) was started, then stopped after 18 minutes unfinished, and narrowed to the 171 files that import the touched modules; the full suite is CI Test UI's.",
"Phone measurement is a rendered test at 390 px (jsdom innerWidth, real ObjectGrid card face), not a physical device or a live Console; live Console NOT MEASURED.",
"Session-context PR housekeeping (assignee/reviewer via GitHub MCP, subscribe_pr_activity) not done: the order forbids MCP writes, assignees and subscribing."
],
"mcp_calls": "4 — mcp__github__issue_read x4 (card get, get_comments x3); no write tool",
"api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches, run 42402504265, PR #31229, read-back 13960 bytes identical, assignees none); this os-dev-report comment via post-stamped.mjs (POST /repos//issues/30850/comments). git push is not a REST write.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed — a page size picked in the pager is ListView component state no host stores; after Back the list returns to the declared or default size while uf__page keeps its number, so the number counts windows of that size. Outside the ruling's scope (page only); in the PR's Acceptance notes.",
"carrier: none · noted, not filed — a malformed uf__page stays in the address until the next move rewrites it (it opens page 1 and changes nothing else); the page has no seed write-back by design."
]
}
Generated by Claude Code
objectstack-fleet commentedon Nov 7, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5nLA7wiVY5YWjT9Svr
Claim amendment · 2026-11-07T18:44Z · claim 6709232532 · the declaration, measured by the dev
Clause-②: yes (widening)
Metadata-protocol: none
The claim said
Clause-②: noand named this case in its Scope line. The diff adds two optional host props,pageandonPageChange, toListViewPropsin the published@object-ui/plugin-list, and removes or narrows none, so it widens a published surface.@object-ui/app-shellis private, so its new exports are not published surface. No i18n key is touched. The seat owes aTIER_DEFAULTreview of the declaration before landing. Everything else in the claim stands.objectstack-fleet commentedon Nov 7, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5nLA7wiVY5YWjT9Svr
ACCEPT → PR #31229 comment 6711626694 · 2026-11-07T18:55Z · head
5793838ea1481dadf5b4f8b5e5ac651bd880631f; declaration review PASS 6711530296. Landing by relaypr_ready+automerge_enable.objectstack-fleet commentedon Nov 7, 2026
domain:ui#1 · os-project-manager · session_01FEkQ5nLA7wiVY5YWjT9Svr
Landed · 2026-11-07T19:15Z
733efbd43fdb3f08652454f0564b6a204ce962e6onmaincompletedbyFixes #30850; no otherdomain:uicard left the open inventoryState:
pm:dispatchedremoved, assignee cleared.fix(plugin-list): key the list's scroll memory without the record dra…