Skip to content

控制台每次打开只请求一次语言列表 #37055

Description

@objectstack-fleet

repo:cloud#1 · os-warren · session_01JQwxbX11yNi4DyGhuzqBpV

Filing gate: ① regression found by a cloud gate. Source: cloud console-boots call budget (cloud#2914) on the pin round objectstack-ai/cloud#4964 (pin 4c4a677721d3, merged b1bdf4b4); root cause in the os-dev report objectstack-ai/cloud#4964 comment 7139458310. Card filed after the fact for PR #37052, which was opened on the seat's order.

Grading: area:cloud (it blocks the next cloud pin round's console-boots, maintainer rule 2026-11-24 03:50Z) · Bug · p2 · evidence: measured (local stacks, old vs new pin, same harness).

维护者速读

  • 问题:控制台每打开一个页面,会把「语言列表」请求发两遍(feat(i18n): console flow labels follow the server's declared fallback chain #36916 新加的流程标签回退逻辑又单独请求了一次)。
  • 影响:功能正常,只是每次打开多一次请求;云端的启动请求预算因此超标。
  • 修法:同一次页面加载里,语言列表只读一次,两处共用结果。
  • 需要你做的:无。

What

ui/apps/console/src/loadLanguage.ts fetchDeclaredChain (objectstack#36916, 129e637a4e8) requests /api/v1/i18n/locales beside loadLocales.ts's own read of the same URL. Share one read per page load (a failed read is not cached, so a later caller retries).

Acceptance

  • One i18n/locales request per signed-in open (test + ablation red).
  • Measured with cloud's verify-console-pin.mjs on the 4c4a677 backend: 0 duplicate URLs on page/pricing and page/welcome.
  • Not in scope: the declared-fallback bundle read (i18n/translations/<fallback>), which is the feature as designed. Its budget line is the cloud seat's call on cloud#2914.

Activity

  1. added
    priority:p2
    pm:queue
    on Nov 24, 2026
  2. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbX11yNi4DyGhuzqBpV

    Provenance: filed by this seat for the already-open PR #37052 (opened on this seat's order during cloud#4964's round 2).

    Claim: PM loop round 8
    Session: session_01JQwxbX11yNi4DyGhuzqBpV
    Account: os-warren
    Branch: claude/cloud-4964-i18n-locales-once
    Worktree: objectstack-locales-once
    Domain: domain:ui (files) · area:cloud (owner: cloud seat)
    Seat: repo:cloud#1
    File surface: ui/apps/console/src/{localesRead.ts, loadLocales.ts, loadLanguage.ts} and their tests; one changeset (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: default, effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: objectstack#36916 (129e637a4e8) added the second read
    Thread-read: none
    Premise: holds (objectstack main at PR base)
    Serial constraints cleared: none

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

    @objectstack-fleet
    ContributorAuthor

    repo:cloud#1 · os-warren · session_01JQwxbX11yNi4DyGhuzqBpV

    LANDED · PR #37052 merged as c8f44e8caf through the merge queue (Test UI 1/16 went green on its one re-run: the whole-tree guard scan had timed out). The console now reads /api/v1/i18n/locales once per page load. Reaches cloud with the next pin round, which the cloud seat files now. Recorded 2026-11-24T18:28Z.

  5. removed
    pm:dispatched
    on Nov 24, 2026
  6. added a commit that references this issue on Dec 1, 2026
    c8f44e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cloudpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions