Repository navigation
Description
repo:cloud#1 · os-warren · session_01JQwxbZaRxCTLgg8LsLBuFb
Filing gate: ① reproducible defect. Source: cloud pin round cloud#4982 (PR cloud#4983, framework pin 95734fe), whose console-boots call budget read page/pricing at 26 calls against a budget of 25.
Grading: area:cloud · Bug · p2 (graded by the coordinator, 2026-11-25 02:18Z; the maintainer raised the cloud budget to 26 to ship that pin, so this no longer blocks it) · reach: every console open by a session that is not shown the checklist · evidence: read.
维护者速读
- 问题:feat(console): org basics in one form, optional rows, 「Get started」 sidebar pill #36791 之后,「开始使用」清单的读取挂在每个应用之上;凡是有任意权限的会话,首屏后都会多发一次
GET /api/settings,哪怕它根本看不到清单(普通成员;控制面上的普通组织所有者)。 - 影响:控制面计费页的请求数从 25 变 26,cloud 抄版本的冒烟预算变红。
- 修法:会话第一次被服务端答成「不显示清单」后,在本机记住这个答案(按组织、用户、权限集合,有效 24 小时);之后打开控制台不再发这次读取。管理员照旧每次都读。
- 需要你做的:无。
What
FirstRunChecklistProvider (ui/apps/console/src/pages/settings/firstRunChecklistState.tsx, mounted above every app route since #36791) calls readChecklistSettings after the first paint for every session whose systemPermissions is non-empty. That function's first request, GET /api/settings, is what decides whether the session may write localization; for a session that may not, the checklist is never drawn, so the request buys nothing on every open.
Two sessions measured or read as paying it for nothing:
- an ordinary organization owner on the cloud control plane: it holds
setup.write, but the plane re-registerslocalizationwithwritePermission: manage_platform_settings(cloudpackages/service-cloud/src/control-plane-settings.ts,CONTROL_PLANE_SETTINGS_WRITE_PERMISSION), so the list answers "not writable" on every open; - a plain member of a tenant environment (holds e.g.
setup.access, notsetup.write).
A capability check before the request cannot tell the first case apart: the client does not know which permission a deployment's localization manifest asks for until the list answers, and naming one in the console would be a second copy of the manifest's declaration.
Done when
- A session the server has answered "not shown" sends no
/api/settingsrequest on later opens in the same browser for the same organization, user and capability set, for a bounded time. - An administrator's reads are unchanged; a changed capability set, another user or organization, an expired record, or a failed read (no answer) reads again.
- The cloud control plane's
page/pricingwarm open returns to 25 calls (scripts/dev-local/verify-console-pin.mjscall budget in cloud). - In the next cloud pin round after this merges, that script's
page/pricingmaxCallsis set back to 25, with the reading recorded on cloud#2914.
Responsibility
- Whose code: objectstack
ui/apps/console(the provider added by feat(console): org basics in one form, optional rows, 「Get started」 sidebar pill #36791). - Platform path that already covers it: none.
- Who reaches it: every non-admin console session, today.
Activity
objectstack-fleet commentedon Nov 25, 2026
repo:cloud#1 · os-warren · session_01JQwxbZaRxCTLgg8LsLBuFb
Claim: PM loop round 1
Session:
session_01JQwxbZaRxCTLgg8LsLBuFbAccount:
os-warrenBranch:
claude/project-thread-6843hqWorktree:
objectstack-checklist-memoDomain:
domain:uiFile surface:
ui/apps/console/src/pages/settings/(the checklist provider, its logic module and their tests) and one.changeset/fileContainer & model:
S,mode:thread,effort: mediumClause-②: no
Metadata-protocol: none
Responsibility: objectstack
ui/apps/console(the provider #36791 added) | none | every non-admin console session, todayThread-read: none
Premise: holds
Serial constraints cleared: none