Skip to content

Console sign-out keeps the list layout (column widths, row height, tab order) for the same person; a change of user still clears it #36110

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Follow-up owed by the maintainer's ruling 7064241116 on #35955 (point 1, option A on the seat's decision card, reviewed by fable first: build-seat1/35955/pr3/fable-decisions.md P3-1 in the project folder). Build after #35955 PR3 merges (it defines the browser-only layout keys).

What happens

#35955 PR3 makes column widths, row height and tab order browser-only (ruling D1). The console's sign-out purge (ui/packages/auth/src/ActiveOrganizationStorage.ts, purgeSignedOutUserClientState, from #29174 and generalised by #32048) clears every browser key the person wrote, keeping only an exact-match allowlist. #32048 justified that with "server preferences are untouched, re-login gets them back"; after PR3 there is no server copy, so every sign-out or ended session resets everyone's list layout. Filters, sorts and search terms are in-memory drafts since #36026, so what remains under these keys is object names, field names, widths and view ids, no record data.

To do

  1. The sign-out tier of the purge keeps the list layout keys PR3 introduces (a prefix exception, the first one), and the grid's own width copies (grid-columns-…, ui/packages/plugin-grid/src/objectGridColumnState.ts) so a related tab's widths (browser-only by ruling 7064246280 on 相关子表的页签改成完整的列表:左上子表名、排序和筛选、底部计算行;去掉「在列表中打开」;改过后出现「放弃」(图 41) #35892) behave the same. The change-of-user tier (purgePreviousUserClientState) does NOT keep them.
  2. A test pins what may live under the kept keys (widths, row height, tab order only), so nothing else can hide from the purge later. No anon key spelling.
  3. Update the P1 checklist item identity-auth.console-sign-out-and-ended-session and ui/packages/auth/README.md (the sign-out section). @object-ui/auth is published: changeset.

Acceptance

  • Adjust a list's column widths and row height, sign out, sign back in as the same person on the same browser: they are still there.
  • Sign out, sign in as a different person on that browser: the list opens at the view's defaults; none of the first person's keys remain.
  • A session that ends on its own behaves like a sign-out.

Activity

  1. added
    enhancement
    priority:p2
    pm:queue
    domain:ui
    on Nov 21, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui (auth sign-out purge) · pm:queue; rationale: area:ux · Task · after #35955 PR3 makes column widths, row height and tab order browser-only, sign-out should keep them for the same person while a change of user still clears them; owed by the maintainer's ruling 7064241116 on #35955; build after #35955 PR3 → p2 as filed · size S.

  3. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Claim: PM loop round 1 (area ux-B)
    Session: session_01WGufzhoBbwh8URjwQHde8v
    Account: os-support-ai
    Branch: claude/issue-36110-signout-keeps-list-layout
    Worktree: objectstack-issue-36110
    Domain: domain:ui
    Seat: repo:objectstack#3
    Area: ux-B
    File surface: ui/packages/auth/src/ActiveOrganizationStorage.ts (the sign-out tier purgeSignedOutUserClientState keeps the list layout key family; purgePreviousUserClientState unchanged) and its tests, ui/packages/auth/README.md (sign-out section), ui/packages/app-shell/src/views/listLayoutStore.ts only to export or reference the key family if the auth package cannot spell it (dependency direction measured first), ui/packages/plugin-grid/src/objectGridColumnState.ts only to reference the grid-columns-… family, the existing pins in ui/packages/app-shell (signOutPurge.test.tsx), the P1 checklist item identity-auth.console-sign-out-and-ended-session under docs/qa/platform-checklist/, one changeset
    Container & model: S, mode:subagent, model: default (dispatch-gates --tier at f46ce5b4a: "no path-derived mandate"), effort: medium
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card (owed by a maintainer ruling)
    Thread-read: 7064368294
    Premise: holds
    Serial constraints cleared: no open PR touches ui/packages/auth/**, listLayoutStore.ts or objectGridColumnState.ts; PR #36811 (this area, in the merge queue) does not touch them; none
    Pre-claim lane: domain:ui. The sign-out purge is an exact-match allowlist sweep (ui/packages/auth/src/ActiveOrganizationStorage.ts:129 SIGNED_OUT_KEPT_KEYS, swept at :308), so the browser-only layout keys PR3 of #35955 introduced (list-layout:<userId>:<object>, ui/packages/app-shell/src/views/listLayoutStore.ts:71-80) and the grid's grid-columns-… copies (ui/packages/plugin-grid/src/objectGridColumnState.ts:27) are cleared on every sign-out today. This lane
    Pre-claim deps: "Build after #35955 PR3 merges": #35955 closed, and listLayoutStore.ts is on main
    Prior rulings read: maintainer ruling 7064241116 on #35955, point 1 (option A, 2026-11-21T14:35Z), verbatim: "Signing out or a session ending keeps them for the same person; a different person signing in on that browser still clears everything, as today." and "the sign-out tier of @object-ui/auth keeps the layout keys, the change-of-user tier does not; a test pins what may live under those keys; the P1 checklist item identity-auth.console-sign-out-and-ended-session and the auth README change with it." Also ruling 7064246280 on #35892 (related-tab widths are browser-only), cited by the card. check-prior-rulings.mjs --card 36110 at f46ce5b: 0 ruling comments on the card's thread; the tree's ADR hits (ADR-0155 D1, ADR-0027 §12) are keyword matches on sharing scope and metadata lifecycle and do not govern this; no conflict

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

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 36110,
      "status": "done",
      "branch": "claude/issue-36110-signout-keeps-list-layout",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36867",
      "session": "session_01WGufzhoBbwh8URjwQHde8v",
      "premise_still_valid": true,
      "summary": "Sign-out tier (purgeSignedOutUserClientState) now keeps localStorage keys under list-layout: and grid-columns- by prefix (first prefix exception), only while each value holds layout and nothing more (holdsOnlyListLayout / holdsOnlyGridColumns: view ids, field names, finite widths, one of five spec row heights); anything else under those prefixes, and sessionStorage copies, is swept. purgePreviousUserClientState unchanged, so a change of user clears both. Measured: tab order lives in list-layout (viewOrder); the grid copy also stores column order (field names), allowed by the shape since the card keeps that family whole. README sign-out section, P1 checklist item identity-auth.console-sign-out-and-ended-session (revision 4) and one @object-ui/auth patch changeset. Dev-effort: medium · Rounds: 1.",
      "tests": "head c58f24f85f: pnpm --dir ui exec vitest run packages/auth/ packages/app-shell/src/context/__tests__/signOutPurge.test.tsx -> Test Files 51 passed (51), Tests 532 passed (532), VERDICT command-exit 0; pnpm --filter @object-ui/auth type-check VERDICT command-exit 0; app-shell type-check exit 0 (pre-rename head 536d22791c). Real writers in the app-shell pin: useObjectListLayout and ObjectGrid resize+reorder; paths pinned: signOut(), no-session refreshSession, 401 re-check via createAuthenticatedFetch, same-person re-sign-in gets layout back, different person clears both families. Ablation 1 (isKeptListLayoutEntry dropped from the sign-out sweep, ablation-replace.mjs): 13 failed / 17 passed, restored blob == HEAD. Ablation 2 (shape check replaced by raw !== null): 13 'removes an entry holding' cases failed, restored blob == HEAD. @object-ui/auth resolves to src via vitest alias, so no dist leg. app-shell full suite declared to CI (only the pin and comment-only edits touch it).",
      "gates": "local: dispatch-gates --commands at 536d22791c, 45 derived; 43 run, 41 exit 0; pnpm check:platform-checklist exit 1 = pre-existing on origin/main (ABSENT SYMBOL anchor in areas/access-security.json anonymousFormExplicitWithdrawals, untouched here; identity-auth.json clean); NOT-MEASURED: pnpm check:type-check-debt (timeout 300s locally), pnpm --dir ui exec vitest run scripts/ (no script edited) -> both declared to CI; --ran reconciliation: 45 accounted, 43 run, 2 NOT-MEASURED, 0 UNRUN, exit 0. overlap-check VERDICT clean exit 0 before each push. CI on c58f24f85f: 57 check-runs, 46 success, 11 skipped, 0 failure (incl. Type Check UI, Lint UI, Test UI 1-16/16, Test Core, Build & E2E UI, Type Check workspace/debt ledger/consumer gates). Head 536d22791c had Type Check UI failure: check:spec-symbols flagged local isPlainRecord shadowing a spec export; renamed to isLayoutObject in c58f24f85f.",
      "dogfood_battery": "n/a — no ! in the PR title and Clause-②: no",
      "mcp_calls": "0",
      "api_writes": "2 relay writes: pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees leg), this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36110/comments); plus git push",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed: check:platform-checklist red on origin/main (access-security.json anchor anonymousFormExplicitWithdrawals absent from packages/metadata-core/src/anonymous-form-intake.ts); PM to route"],
      "deviations": "AGENTS.md read after the first source edit, not before (headings and hard rules skimmed then; no rule broken found). PR body tests line describes head 536d22791c; the isPlainRecord rename commit c58f24f85f is not in the body (body is pr_create-only for subagents).",
      "files_changed": [".changeset/36110-signout-keeps-list-layout.md","docs/qa/platform-checklist/areas/identity-auth.json","ui/packages/app-shell/src/context/__tests__/signOutPurge.test.tsx","ui/packages/app-shell/src/views/listLayoutStore.ts","ui/packages/auth/README.md","ui/packages/auth/src/ActiveOrganizationStorage.ts","ui/packages/auth/src/__tests__/signOutKeepsListLayout-36110.test.tsx","ui/packages/plugin-grid/src/objectGridColumnState.ts"]
    }

    Generated by Claude Code

  6. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Delta, round 2, on review comment 7123688364. Head c22bf16cbc9a85ba91ca81f5684b47ea7bdbf0c2.

    {
      "issue": 36110,
      "status": "done",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36867",
      "head": "c22bf16cbc9a85ba91ca81f5684b47ea7bdbf0c2",
      "rounds": 2,
      "M1": "fixed: '@object-ui/plugin-grid': patch added to .changeset/36110-signout-keeps-list-layout.md frontmatter (only change in this round)",
      "N1": "not applied by dev: os-dev.md says a subagent writes the PR body only at pr_create and the seat writes it after that. This conflicts with the order to issue_patch it. Replacement Tests line handed to the seat in the final report.",
      "gates": "check-changeset-no-major --base origin/main exit 0; check-empty-changeset --base origin/main exit 0; check-empty-changeset --self-test exit 0; check:changeset-gate-self-tests exit 0; overlap-check VERDICT clean exit 0; CI on c22bf16cbc: 57 check-runs, 46 success, 11 skipped, 0 failure",
      "mcp_calls": "0",
      "api_writes": "1 this round: this comment (POST /repos/objectstack-ai/objectstack/issues/36110/comments); plus git push",
      "security_findings": "none"
    }

    Generated by Claude Code

  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Close-out · 2026-11-24T06:59Z · area ux-B: PR #36867 merged at 2026-11-24T06:59Z (merge commit 370e14d8a0101da2d46c28f8201f52d5d394b422; L1 delta ACCEPT 7124118569), and this card closed as completed. pm:dispatched is removed. Built under maintainer ruling 7064241116 pt 1 on #35955: sign-out keeps the list-layout keys for the same person, and a change of user still clears them.

  8. removed
    pm:dispatched
    on Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uienhancementpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions