Skip to content

fix(tui): allow explicit display locale overrides - #51

Closed
Fectivnfy112357 wants to merge 1 commit into
fix/confirmed-webui-release-issuesfrom
fix/tui-locale-override
Closed

Fectivnfy112357 wants to merge 1 commit into
fix/confirmed-webui-release-issuesfrom
fix/tui-locale-override

Conversation

@Fectivnfy112357

Copy link
Copy Markdown
Contributor

Change

Refs #19. Resolve the TUI display locale centrally. A nonempty MCODE_TUI_LOCALE selects the display locale; without it, the TUI reads the host locale. Existing explicit locale arguments still take precedence. The suite runner sets en-US explicitly so it does not depend on Windows honoring POSIX locale variables.

This PR is stacked on #50 to keep the TUI diff separate and inherit the committed AOCI source assets required by the source-export gate. Retarget it to main after #50 lands.

Validation

  • With a verified zh-CN host ICU default on Linux, the four TUI files listed in [Bug]: the TUI's language follows the OS user locale, so 30 cases fail on a Chinese-locale Windows host #19 reproduced 30 failures before the change.
  • The same four files passed all 487 tests with MCODE_TUI_LOCALE=en-US on the same Chinese locale. The lightweight-mode test covers the Chinese host fallback and checks that the English override wins.
  • Release-tool suite: 65 passed, 1 platform skip. The runner contract checks the application override in the spawned child. Source inventory and diff checks passed.
  • Full local verification was started. Native Chinese-locale Windows execution was not performed. Performance profile: basic.

Maintainer handoff

The public source inventory and AOCI cognition assets reflect the new resolver. No shared-source port is needed for the standalone TUI override.

@Fectivnfy112357

Copy link
Copy Markdown
Contributor Author

Withdrawing this downstream TUI change. The locale behavior belongs in the upstream MiniMax-AI/minimax-code project. Commit 3097bb4 reverts the patch in full.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant