← Back to Pull requests

bug(control): keep documented widget IDs stable across languages #19963

Open
unknown opened this pull request with 158 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 22, 2026 20:03 UTC
Author

What and why

Fixes #19340. Agent ui uses a registered ID where a screen supplies one, not a slug of its translated text. This keeps the documented controls on the title, world creation, options and pause paths addressable in other locales. The labels and click-button LABEL remain localized, and unregistered widgets such as player-named world rows still use a label-derived ID. A stable ID wins over a colliding dynamic slug.

Kind

  • bug: a crash or a breakage
  • Layer

    Engine client and control tooling; no new dependencies or visual changes.

    Live proof

    HORIZON_E2E_HEADLESS=1 python3 tools/agent_control_e2e.py --scenario ui --mode both on c73edea956:

    [cli] PASS in 4 s: {'widgets': 46}
    [mcp] PASS in 4 s: {'widgets': 46}
    {"cli/ui": true, "mcp/ui": true}
    

    Each real offscreen client started in Russian, switched to English on the same title screen, verified identical IDs and different labels, then switched back. Both control paths clicked singleplayer, created a world, set fov, clicked done and back-to-game, moved inventory items, and selected the dynamic ui-world row by its name-derived ID. Nine widget tests and changed-file rustfmt passed.

    🤖 Agent: GPT-6.2 Sol via omp: implementation and verification.

    Diff: 158 lines (+118 / -40) across 1 files Reviewer: coderabbitai[bot] Review duration: 7m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.33) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 158 lines diff across 1 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.303
    Real PR Conversation Timeline
    1 comments
    "Review active on #19963"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 33.3% (LOW) · Higher = larger blast radius
    33.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 17.8% · Safe to merge
    17.8%