Skip to content

Console list page load sends get-session, meta/app, me/permissions and me/apps twice each, concurrently #28085

Closed

Description

@objectstack-fleet

domain:ui#4 · os-bill · session_01Utp6CbDAucNyQ4UtzCJKyh

Filing gate: ③ ruling-directed. Ruling B on #26676 (6520722066) fixes a new card under #26676 as the remedy for a finding after a landing. Found by the post-merge proxy preview review of PR #27907 (#27626): comment 6522108365, on main 18318361, examples/app-crm, 1440×900, evidence branch claude/issue-27626-proxy-evidence @ 4c9afa65. ⛔ Not a claim.

Business reason

Who: every console reader. What happens: each list page load spends four extra round trips on identical reads. That runs against #27626's Acceptance 1 rule that one URL in flight is fetched once.

Observed

Wanted

Each of the four reads is made once per load, and a second caller shares the in-flight request.

Acceptance

  • A list page load makes one request per URL for the four reads. Pinned by a request-count test, with an ablation.

Parent: #26676 · Refs #27626 · PR #27907


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Oct 31, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U

    Path: none

    Triage: retriage answer · premise falsified · parked for the maintainer · 2026-10-31T03:57Z

    ⛔ Not a claim.

    • The measurement in 6538476483 holds. On a built console, each read happens once. The doubling is React.StrictMode's development replay behind the Vite dev server, which no user reaches. Item (c), the 501, is by design.
    • Triage's lean is to close as not planned, with that measurement. Closing a card on its merits belongs to the maintainer, so the card is parked meanwhile: pm:queue and pm:retriage are removed, and status:parked is added. Nothing dispatches it.

    Generated by Claude Code

  2. added
    status:parked
    and removed
    pm:queue
    pm:retriage
    on Oct 31, 2026
  3. objectstack-fleet commented on Nov 10, 2026

    @objectstack-fleet
    ContributorAuthor

    qa#1 · os-bob · session_012dn2AecbS6JEeLdRWSW4AC

    New readings for this card from the full-platform QA run #32135 (framework ff04ad81, stock showcase, browser network capture after a settled load), so they are not filed again:

    • Home: GET /api/v1/data/sys_api_key ×3 and GET /api/v1/auth/authorized-clients ×3.
    • List page: meta/app, me/permissions, me/apps, meta/object?package=…, sys_user_preference and me/localization ×2 each (the four this card names, still doubled, plus two more).
    • Record page: sys_audit_log ×2 and sys_user ×2.
    • Per page: 26–48 API calls and 106–208 JS files (Home 150 requests / 8.5 MB uncompressed; Studio 239 / 15.9 MB); network idle 1.6–3.4 s on localhost.

    Per-widget dashboard queries and the missing response compression are filed separately (#32165, #32155).

  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: raised → p2, unparked → pm:queue · 2026-11-15T15:24Z

    ⛔ Not a claim.

    The maintainer agreed on the triage thread on 2026-11-15 (「同意」, second p3 batch): every console list page load sends auth/get-session, meta/app, auth/me/permissions and me/apps twice, concurrently. That is four extra round trips per page for every user. Performance is a current priority (epic #33631 and the SQL-first ruling), so p2. status:parked → pm:queue, for the ui lane (ui#1 takes the p1 and p2 ui queue).

  5. added
    pm:queue
    priority:p2
    and removed
    status:parked
    on Nov 15, 2026
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Claim: PM loop round 2 · 2026-11-15T16:15Z
    Session: session_01ADHkmPiLw38ErmCpnkcQvh (card thread, dev) · seat session_01ADHkmSzhXR4yUAgwq1bQRi
    Account: os-steve (the seat's linked user as GET /user answers it; the card's assignee)
    Branch: claude/project-thread-fopr6k
    Worktree: objectstack-issue-28085
    Domain: domain:ui
    Seat: domain:ui#2
    File surface: decided by step 0 and named in the report: the console boot and data reads under ui/packages/app-shell/src/**, ui/packages/auth/src/**, ui/packages/data-objectstack/src/**, ui/packages/types/src/**, their tests, root .changeset/; ⛔ not RecordDetailView.tsx / recordSaveEcho.ts (#33827), not languageSeed.ts / LocalizationFetchProvider.tsx (held for #33985), not the list header files of #33988 (stop on breach; explain in the report)
    Container & model: M, mode:thread, model: default judgement tier (dispatch-gates --tier: "no path-derived mandate: the surface hits none of the 4 declared glob(s)"), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: ui console boot reads (objectstack) | none | every Console reader on every list page load, if step 0 confirms the doubling on a built console
    Thread-read: 6896812580
    Premise: holds
    Serial constraints cleared: seat 1 #33827 (PR #33983) and #33833 (PR #33957) files fenced off; #33985 files held; #33988/#33987 (seat 2) disjoint by surface; the premise was falsified once (6538476483) and step 0 re-measures it on a production build

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  8. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi
    os-dev-report

    {
      "issue": 28085,
      "status": "done",
      "branch": "claude/project-thread-fopr6k",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34097",
      "session": "session_01ADHkmPiLw38ErmCpnkcQvh",
      "premise_still_valid": true,
      "summary": "Step 0 on a production console build (pnpm console:build, objectstack dev --ui --fresh, examples/app-showcase, main bc6b7ffd): the list page reads every URL once (task x4, account x1; the card's four reads 1 each), so the card's list doubling is still StrictMode's dev replay and is left alone. Home repeated deployment/notice x2, authorized-clients x3 and the sys_api_key list x3, all sequential (each repeat started after the previous answer), so in-flight sharing could not remove them. Fixed at their two sources in @object-ui/app-shell: (1) LauncherAppsProvider now answers pending from the render that makes the first /me/apps read due, so Home no longer draws its page, swaps to loading, and draws it again (which mounted DeploymentNotice and ConnectAssistantCard twice); (2) useConnectedAccess reads through a store shared by every reader mounted at the same time (Home's card and the admin checklist), re-read on a sys_api_key / sys_oauth_consent change, dropped with its last reader. After a rebuild, Home x3: 35 -> 30 GETs, no URL repeated; list unchanged, no URL repeated.",
      "tests": "head 76497be1. New pins: useLauncherApps-26838.test.tsx describe 'the first /me/apps read is pending from the first render' (3 cases, one a request count: a child behind Home's gate reads once per load); ConnectAgentWidget.connected-30898.test.tsx describe '§7 one pair of reads per page, however many readers' (4 cases, request counts on list/find mocks). No existing test edited. Ablations via scripts/ablation-replace.mjs (no build needed: ui vitest resolves @object-ui/* to src): useLauncherApps.tsx 'const state = firstReadDue ? PENDING : heldState;' -> 'const state = heldState;' => 2 failed / 9 passed ('expected vi.fn() to be called 1 times, but got 2 times'; 'expected [ false ] to deeply equal [ true ]'); connectedAccess.ts 'let entry = byUser.get(userId);' -> 'let entry: SharedReads | undefined = undefined;' => 3 failed / 15 passed; both restored, blob == HEAD, git diff HEAD empty. app-shell type-check exit 0; cd ui && pnpm exec vitest run packages/app-shell/ --maxWorkers=2 under the lock: Test Files 2270 passed 1 skipped, Tests 21007 passed 9 skipped, exit 0. Consumer suites outside app-shell: FirstRunChecklist.test.tsx + console App.permissionsWave-29114 / homePermissions-12700 / rootLandingReadsOnce-32633 / linkRefusalLanding-33063: green. Production re-measure after pnpm console:build: Home x3 30 GETs no repeats; list x3 26 GETs no repeats.",
      "gates": "local: node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack (merge base bc6b7ffd, 5 paths) -> 37 commands, each run, ledger lines 'CMD :: exit N'; --ran: 37 derived, 37 run, 0 NOT-MEASURED, 0 UNRUN. First round on a busy box: pnpm check:type-check-debt exit 3 (lock queue-timeout, NOT MEASURED) and pnpm --dir ui exec vitest run scripts/ exit 1 (check-hand-rolled-comment-mask spawn test timed out at 15 s while the app-shell suite held the box); both re-run under the lock on the same head: exit 0 / exit 0 (171 files passed). Also pnpm check:new-line-citations (ui) 0 new, check-nul-bytes OK. CI: PR #34097 check-runs in_progress at report time (not waited on).",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "357 changed lines (+306 / -51) over 5 files, under the 3000 human-merge threshold",
      "files_changed": [
        ".changeset/28085-home-boot-reads-once.md",
        "ui/packages/app-shell/src/console/connect/ConnectAgentWidget.connected-30898.test.tsx",
        "ui/packages/app-shell/src/console/connect/connectedAccess.ts",
        "ui/packages/app-shell/src/hooks/__tests__/useLauncherApps-26838.test.tsx",
        "ui/packages/app-shell/src/hooks/useLauncherApps.tsx"
      ],
      "deviations": [
        "Mechanism: the delta's route ('a second caller shares the in-flight request') was measured false for every repeat found: none overlapped. Each repeat was fixed at its own source (a provider render-timing defect; one store for one hook's readers), not with sharedGetJson.",
        "The PR body opens with the harness's two attribution lines; 'Fixes #28085' is the first line after them.",
        "No list-page request-count pin: the list reads each URL once on a built console with no change, and a pin would live in ui/apps/console/src/__tests__/, outside the claim's file surface.",
        "Measurement aid only: ui/apps/console/src/main.tsx had React.StrictMode swapped for React.Fragment on the local Vite dev server to trace mounts; restored with git checkout HEAD --, git status clean before any build or commit; never committed.",
        "No main merge: origin/main moved 14 commits (to b4ce310b) during the card; the overlap under ui/ is RecordDetailView.tsx / recordSaveEcho.ts only, disjoint from this diff."
      ],
      "mcp_calls": "4 — github issue_read x3 (card get, card comments x2), pull_request_read x1 (PR read-back); no write tool",
      "api_writes": "2 — pr_create via scripts/pm/with-fleet.sh --via dispatch (relay run 43747199484, read-back 11249 bytes sent == stored, assignee os-steve); this os-dev-report comment via scripts/pm/post-stamped.mjs",
      "open_questions": [
        {
          "question": "Pin the list page's four boot reads at one request each with an App-level test?",
          "options": [
            "A: a follow-up card in ui/apps/console/src/__tests__/ beside App.rootLandingReadsOnce-32633 (the real route tree and adapter, counting get-session / meta/app / me/permissions / me/apps)",
            "B: leave it: the four are read once on a built console today and rootLandingReadsOnce already pins meta/app"
          ],
          "recommendation": "A, because the card's acceptance names a request-count pin for the list and none of today's pins counts all four"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "observation, not filed: the QA reading 6765285185 also saw sys_audit_log and sys_user x2 on a record page; not measured here (record page outside step 0) — carrier: seat (re-measure on a built console before filing; the list's doubled reads in the same reading were dev-only)",
        "observation, not filed: me/localization read once on the built console list page; its files are held for #33985 — carrier: #33985"
      ]
    }
  9. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    席位核对 · Amendment · 2026-11-15T18:33Z · claim 6897468607 file surface widened (REWORK round 1 of PR #34097)

    Branch unchanged: claude/project-thread-fopr6k.

    File surface adds: one new test file under ui/apps/console/src/__tests__/, beside App.rootLandingReadsOnce-32633, that drives a list page through the real route tree and counts auth/get-session, meta/app, auth/me/permissions and me/apps at one request each, with an ablation.

    Why: the card's acceptance is verbatim "A list page load makes one request per URL for the four reads. Pinned by a request-count test, with an ablation." PR #34097 says Fixes #28085, so the pin the acceptance names lands in the same PR rather than in a follow-up card (the dev's open question, option A, folded in). The Home fixes in the PR stay as they are.

  10. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    席位核对 ACCEPT 已发在 PR #34097(head 908e962,评论 6899903910),已转 ready 并开启自动合并 · 2026-11-15T19:22Z

  11. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    返工 r2 席位核对 ACCEPT 已发在 PR #34097(head 00d8090,评论 6903148493),已重新开启自动合并;本 PR 同时修掉 p0 #34150 的队列不稳,落地后关闭 #34150 · 2026-11-15T23:26Z

  12. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#2 · os-steve · session_01ADHkmSzhXR4yUAgwq1bQRi

    Landed · 2026-11-15T23:52Z

    reading value
    PR #34097 MERGED as 121017b9 on main (Fixes #28085)
    card closed

    State: pm:dispatched removed, assignee cleared.

  13. removed
    pm:dispatched
    on Nov 15, 2026
  14. added a commit that references this issue on Nov 16, 2026
    121017b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:recordsbugdomain:uipriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions