Skip to content

Console first screen: 1.1–1.8 s of main-thread script evaluation before LCP, mostly render work; cut first-render CPU #37575

Todo

Description

@objectstack-fleet

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Filing gate: maintainer ruling on #37444 at 2026-11-26 13:43Z (「先做最小一刀,其余立卡排队」: slice C rides #37444, the other seams queue as their own cards) · Source: fleet (production re-measure on #37444, comment 7193730951)

What happens

Reading on a production build (method in #37444 comment 7193730951): script evaluation on the main thread is 1.1 s on Home and 1.8 s on the Object list and Record page, mostly attributed to vendor-react (render work). Even unthrottled and local, the observed LCP is already 2.0 / 2.6 / 2.5 s, and with bandwidth unlimited the list still sits at about 2.4–2.5 s. So CPU alone keeps the list page at the threshold after the byte and round-trip seams are fixed.

Expected

Not this card: eager JS size, the boot API waterfall, route lazy chunks (slice C, Part of #37444).

Related: #37444, #37398.

Category ①: a user-visible experience defect with a named place and a repeatable reading (every console user waits 3.6–4.6 s on the first screen).
Priority: p2 — the grade of parent #37444; slow but working, on every first screen, not a wrong-data or security case.
Business reason: everyone who opens the console waits on the first screen every session; without this seam the pages can't reach the 2.5 s threshold #37444 sets.
Reader: seat 2 area s2-ux (repo:objectstack#2) picks it from the queue after slice C lands on #37444.
Dedupe: LCP console 3 hits and console render main thread first screen 292 hits (top results read); the only open overlap is #37444 (the parent).

Activity

  1. added
    bug
    priority:p2
    domain:ui
    on Nov 26, 2026
  2. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · priority:p2 · pm:queue · size M; rationale: 1.1–1.8 s of main-thread script evaluation before LCP, mostly render work. Queued as its own seam under the maintainer's 13:43Z ruling on #37444. p2, like the parent.

  3. added
    pm:queue
    on Nov 26, 2026
  4. objectstack-fleet commented on Nov 26, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU8Bf564ZGXi4MfHWb

    Claim: card thread of seat 2 · 2026-11-26T22:28Z
    Session: session_01L6bhgU8Bf564ZGXi4MfHWb
    Seat session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Account: os-sales
    Branch: claude/project-thread-xtck3b (restarted from the latest main)
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux (card thread)
    File surface: the Console first-render path under ui/apps/console/src and ui/packages/*/src (the shell, the object list and record routes, the components the profile names); named by the profile before any code
    Container & model: M, mode:thread, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Thread-read: 7194528349
    Premise: inbox (first step: an HTTP/2 profile of the first render on the list and record pages, then the profile decides the cut)
    Parent: Part of #37444

    This is the next slice of #37444, after #37574 closed as not planned. I re-read the card at claim time: updated 14:20Z, and there are no body-rewrite notes.

    Readings follow the protocol on #37444 (comment 7204693346): HTTP/2 TLS is the reading and HTTP/1.1 is the control, with the #37444 method otherwise. The HTTP/2 baseline at 9476092c is home 2297, list 2837, record 2685 ms. The PR will carry Part of #37444 and Fixes #37575.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 26, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgU8Bf564ZGXi4MfHWb

    Reading · card thread of seat 2 · 2026-11-27T00:00Z. First slice opened as draft PR #37722 (Part of #37444, Part of this card). This card stays open.

    What the slice does. While a Console page first loads, the shell re-renders about ten times as its boot reads land, and each pass redrew every sidebar entry with its ⋯ menu and tooltip (about 2,700 components a pass). The PR memoises the nav row on what it shows, keeps the sidebar's template context and row action renderer stable, splits the row menu into a stable view, and builds the console's expression user once per auth user. On the list page, re-rendered components before 3 s go from 28,860 to about 11.4k–14k.

    Reading (production build, objectstack start with NODE_ENV=production, local HTTP/2 TLS front, Lighthouse 13.6.0 desktop preset, headless Chrome for Testing 158, 4-core container, signed in, cold cache; the acceptance condition of #37444 ruling 7205984444). Median LCP in ms:

    Page h2 before (main 9476092c, 5 runs) h2 after (PR head, 5 runs) h1 control before (3 runs) h1 control after (3 runs)
    Home 2297 2227 3689 3658
    Object list 2837 2675 4788 4778
    Record page 2685 2561 4309 4468

    Home passes; the list misses by 175 ms and the record page by 61 ms. The HTTP/1.1 control does not move outside its noise: there the first screen waits on queued script requests, so render CPU is not on its critical path.

    What-ifs on the after build (h2, 2 runs each, list / record):

    • CPU cost halved (Lighthouse's CPU multiplier at 0.5): 2351 / 2333.
    • CPU cost at one twentieth (0.05): 2290 / 2256.
    • Unlimited bandwidth: about 1.5 s / 1.5 s.
    • Upper bound with no navigation drawn at all: list 2609. Without only the per-row tooltip and ⋯ menu: list 2635. The sidebar is now near its floor.

    The CPU multiplier scales all main-thread work (parse, compile, script and render together), so render is only part of what it removes. Even at one twentieth of the CPU the list page gains only about 0.4 s, while unlimited bandwidth gains about 1.2 s: bytes (#37572) is the larger lever and the next slice. Halving all CPU would bring both pages under 2500 ms, but render work alone is a fraction of that half.

    What is left on this card. The big render item is the grid after its data lands: 4–5 re-render passes from the measurement layout effects in data-table.tsx (550–1,080 components each), and the per-row Radix mount re-render (about 1,160 components). These were deliberately left out of #37722 to keep it small, as ruled.

  7. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Release: seat 2 · 2026-11-27T06:28Z

    Slice 1 landed in PR #37722 (Part of; the sidebar memo cascade). No thread holds the next slice: area s2-ux is at its cap of three running threads, and the first-load route for #37444 is waiting on a maintainer decision about spec's build granularity (#37805). pm:dispatched → pm:queue, assignee cleared, so the card is not held without work. Resume-from: none (no unmerged branch). The next claimant reads #37444's readings first (h2 medians; list 2652 ms, record 2640 ms).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 1 · 2026-11-27T06:30Z
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgTd1y1ncyDVcgVtep5
    Account: os-sales
    Branch: claude/project-thread-0qgt61
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-ux
    File surface: the first render of the Console's list, record and home pages (ui/apps/console, ui/packages/app-shell and the view plugins they mount at boot), the component or hook the profile names as the largest cost, a pin on the fixed cause (a render count or a timing budget), readings on #37444.
    Container & model: M, mode:thread, model: default — no path-derived mandate, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: 7211560100
    Premise: holds — slice 1 landed (#37722); list 2652 ms and record 2640 ms still over 2500 (#37444); the byte route closed on #37805 (7211587959)
    Serial constraints cleared: none — #37805 closed without code; the thread's branch holds no commit

    The PR says Part of #37575 and Part of #37444 unless it brings both pages under 2.5 s, then Fixes #37575.

  10. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  11. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgTd1y1ncyDVcgVtep5
    os-dev-report

    {
      "issue": 37575,
      "status": "done",
      "branch": "claude/project-thread-0qgt61",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37883",
      "session": "session_01L6bhgTd1y1ncyDVcgVtep5",
      "premise_still_valid": true,
      "summary": "Slice 2 of the first-render card: a list page's grid draws its rows once before they paint (loading face shares the grid root, inline-action fold host via callback ref, verdict map republished only when it changes), the app's content-language list moves to its own context read with useAppContentLanguages(), and a sidebar entry keeps its render when a new capability checker gives the same answer. Readings, h2, 10 runs back to back, main vs PR: home 2207 vs 2214, list 2768 vs 2685, record 2594 vs 2504 (#37444 comment 7215089774). List and record are still over 2.5 s, so the PR says Part of #37575 and Part of #37444. Seat L1 round: the removal of appContentLanguages from useObjectTranslation() and useI18nContext() is now declared Clause-②: yes (narrowing), with a BREAKING section naming the replacement hook and the reason, and an ADR-0087 not-required (no-migration-prescription) disposition; the level stays patch because Metadata-protocol is none.",
      "tests": "New pins fail on main and pass on the head: plugin-grid listGridFirstRender-37575 (3 tests), i18n provider-appContentLanguages-37575, layout NavigationRenderer.rowMemo-37575 (capability-checker case). Affected packages' tests pass in CI: Test UI 1-16/16 success on 05ab9c85.",
      "gates": "Local on 05ab9c85: node scripts/check-changeset-no-major.mjs --base origin/main --event <PR body> exit 0 (LEVEL AXIS: yes (narrowing) + none, patch, BREAKING carriers untouched); node scripts/check-adr-0087-registration.mjs --base origin/main exit 0 (1 declared-breaking changeset, disposition not-required (no-migration-prescription)). CI on 05ab9c85: every check-run success or skipped, including Check Changeset, PR-body guards, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Test UI 1-16/16, TypeScript Type Check, Lint & Repo Gates; one PR-body guards run cancelled, superseded by the run after the body edit (success).",
      "dogfood_battery": "05ab9c85b7c28b45697e64df7725b2c8cce3ed82 · os-verify-lock: VERDICT command-exit 0 · held the lock 2227s (37m07s) · waited 0s · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures",
      "mcp_calls": "read-only only: pull_request_read (get_check_runs, get), issue_read, get_job_logs; no write tool",
      "api_writes": "0 — every GitHub write went through scripts/pm/fleet-write (issue_patch on #37883, comments)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · the next large lever is the MetadataProvider global version counter (six bumps during boot re-render every metadata reader); the seat files it as its own card"
      ]
    }
  12. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgTd1y1ncyDVcgVtep5
    os-dev-report

    {
      "issue": 37575,
      "status": "done",
      "branch": "claude/project-thread-0qgt61",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/37883",
      "session": "session_01L6bhgTd1y1ncyDVcgVtep5",
      "premise_still_valid": true,
      "summary": "Slice 2 of the first-render card: a list page's grid draws its rows once before they paint (loading face shares the grid root, inline-action fold host via callback ref, verdict map republished only when it changes), the app's content-language list moves to its own context read with useAppContentLanguages(), and a sidebar entry keeps its render when a new capability checker gives the same answer. Readings, h2, 10 runs back to back, main vs PR: home 2207 vs 2214, list 2768 vs 2685, record 2594 vs 2504 (#37444 comment 7215089774). List and record are still over 2.5 s, so the PR says Part of #37575 and Part of #37444. Seat L1 round: the removal of appContentLanguages from useObjectTranslation() and useI18nContext() is now declared Clause-②: yes (narrowing), with a BREAKING section naming the replacement hook and the reason, and an ADR-0087 not-required (no-migration-prescription) disposition; the level stays patch because Metadata-protocol is none. Contract review 7216271239 (PASS on 05ab9c85) S1 fixed on 9d15f489: @object-ui/react re-exports useObjectTranslation and useI18nContext, so it now also re-exports useAppContentLanguages beside them, the changeset names @object-ui/react (patch), and the BREAKING section says both hooks narrow on both entries and both entries export the replacement. N1 (ADR-0087 vocabulary gap) is left to the seat.",
      "tests": "New pins fail on main and pass on the head: plugin-grid listGridFirstRender-37575 (3 tests), i18n provider-appContentLanguages-37575, layout NavigationRenderer.rowMemo-37575 (capability-checker case). Affected packages' tests pass in CI: Test UI 1-16/16 success on 9d15f489.",
      "gates": "Local on 9d15f489: node scripts/check-changeset-no-major.mjs --base origin/main --event <PR body> exit 0 (LEVEL AXIS: yes (narrowing) + none, patch, BREAKING carriers untouched); node scripts/check-adr-0087-registration.mjs --base origin/main exit 0 (1 declared-breaking changeset, disposition not-required (no-migration-prescription)). CI on 9d15f489: every check-run success or skipped, including Check Changeset, PR-body guards, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Test UI 1-16/16, TypeScript Type Check, Lint & Repo Gates; one PR-body guards run cancelled, superseded by the run after the body edit (success).",
      "dogfood_battery": "9d15f489c997b368e0b199bc6ad83ab919cdb55d · os-verify-lock: VERDICT command-exit 0 · held the lock 2198s (36m38s) · waited 0s · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures",
      "mcp_calls": "read-only only: pull_request_read (get_check_runs, get), issue_read, get_job_logs; no write tool",
      "api_writes": "0 — every GitHub write went through scripts/pm/fleet-write (issue_patch on #37883, comments)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · the next large lever is the MetadataProvider global version counter (six bumps during boot re-render every metadata reader); the seat files it as its own card"
      ]
    }
  13. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed (part) and handed back · 2026-11-27T12:22Z

    PR #37883 merged at 2026-11-27T12:21Z (Part of #37575, slice 2): about 1,900 first-render components no longer re-render on the app content languages; useAppContentLanguages() replaces the field the two hooks dropped. Slice 1 landed earlier (#37589, #37722). The list page (2685 ms) and the record page (2504 ms) are still over the 2500 ms target of #37444.

    The next measured lever is card #37903 (metadata readers subscribe by selector), a new area:ux card. This seat takes no new area:ux work (maintainer, 2026-11-27 08:03Z: in-hand only), so this card goes back to pm:queue for the area:ux seat, with #37903 as its next step. Release: seat 2's in-hand slices are done; nothing is in flight on this card.

  14. added
    pm:queue
    and removed
    pm:dispatched
    on Nov 27, 2026
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:uxbugdomain:uipm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions