Skip to content

mcp: ?locale= reaches neither the MCP labels nor the dataset executor's sentence (metaTranslationSources reads headers only), so labels and sentence can come out in different languages #35083

Closed

Description

@objectstack-fleet

triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

Filed by triage at the request of repo:objectstack#3 (area o3-E, mailbox #32588, 6966680496), from #34919 / PR #35043.

What happens

In packages/runtime, domains/mcp.ts metaTranslationSources calls metaRequestLocale with the headers but no query, though its docblock says "Accept-Language / ?locale=".

With no Accept-Language header, which is common for MCP clients, the labels follow the i18n default while the executor's sentence follows the workspace setting. One answer can then mix two languages. This happens on stdio too.

Done when

  • metaTranslationSources passes the query through.
  • The dataset executor gets its translation locale through a DatasetToolsDeps seam, so labels and sentence resolve one locale.
  • A pin covers ?locale=zh-CN with no header, and a header-less stdio call, each answering in one language.

Parent: #34659.
Grade: p2 · domain:server. Themes: MCP and zh-CN. Raise it to p1 if a zh-CN tenant shows mixed-language answers in a real MCP client.

Activity

  1. added
    priority:p2
    pm:queue
    finding
    area:ai
    domain:server
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Regraded p2 → p1: an MCP ask-line card. The maintainer ranked the ask line first (「代码搭建已经可用,只是优化,mcp问数优先,其次是mcp搭建」, #34659 comment 6972918775). In triage's session he then agreed that the open cards under the ask parents #35150 and #35159 rise to p1 (「问数专题已按你的顺序重排 同意」). The MCP build and code-first lines stay p2. Any claim on the card is unchanged.

  3. added
    priority:p1
    and removed
    priority:p2
    on Nov 18, 2026
  4. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Regraded p1 → p2: the 09:2xZ raise is reverted. The maintainer, in triage's session: 「p1 是不是应该留给真的需要插队的」, then 「把刚才提到 p1 的 7 张问数卡改回 p2」. The order of epic #34659's work comes from the epic's own structure (the ask line #35150/#35159 first), not from priority labels. p1 is kept for cards that must jump ahead of epic work. Any claim on the card is unchanged.

  5. added
    priority:p2
    and removed
    priority:p1
    on Nov 18, 2026
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz

    Claim: PM loop round 1 · area a4-C · folded member of the #34993 chain (one PR, branch below; full serial-constraint check on #34993's claim) · 2026-11-19T21:52Z
    Session: session_016WV4d1k1GRsQbF3vCPKxhz
    Account: os-elon-musk
    Branch: claude/area-a4C-34993
    Domain: domain:server
    Area: a4-C
    Seat: repo:objectstack#4
    File surface: packages/runtime/src/domains/mcp.ts (metaTranslationSources passes the query), packages/mcp/src/stdio-data-bridge.ts, packages/services/service-analytics/src/dataset-tools.ts (DatasetToolsDeps locale seam), one new test file per transport.
    Clause-②: yes — widening (?locale= now reaches labels and the executor's sentence; a header-only client is unchanged)
    Metadata-protocol: none
    Thread-read: 6974539443
    Premise: holds (main d96c878: mcp.ts:1617 and :1706 call metaRequestLocale({ headers }) with no query)
    Prior rulings read: regrade p1 → p2 6974539443 (order comes from epic #34659's structure); no ADR names it.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverfindingpm:dispatchedpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions