Skip to content

[codex] Normalize i18n and prompt baseline#695

Draft
heikog wants to merge 1 commit into
666ghj:mainfrom
heikog:codex/i18n-prompt-baseline
Draft

[codex] Normalize i18n and prompt baseline#695
heikog wants to merge 1 commit into
666ghj:mainfrom
heikog:codex/i18n-prompt-baseline

Conversation

@heikog

@heikog heikog commented Jun 13, 2026

Copy link
Copy Markdown

What changed

  • Normalizes backend locale handling around Accept-Language parsing and English fallback behavior.
  • Converts core LLM prompt templates from Chinese-only wording to an English baseline with explicit response-language instructions.
  • Updates frontend locale initialization so unsupported or saved zh values fall back to en.
  • Uses max_completion_tokens for GPT-5 model names while keeping max_tokens for older models.

Why

This makes the app safer to run with non-Chinese locales and modern OpenAI models, without mixing in Graphiti or simulation-round UI changes.

Validation

  • python3 -m compileall -q backend/app
  • git diff --check

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