Skip to content

/review command ignores language settings in Japanese environment and AGENTS.md #5113

Closed as not planned

Description

@kinopeee

What version of Codex CLI is running?

codex-cli 0.46.0

Which model were you using?

gpt-5-codex(medium)

What platform is your computer?

macOS 15.6.1

What steps can reproduce the bug?

  1. Set system locale to Japanese (ja_JP.UTF-8 or equivalent)
  2. Create .codex/AGENTS.md with Japanese language instruction:
    # Instructions for Codex
    
    常に日本語で回答してください。
    (Always respond in Japanese)
  3. Run /review command on any file or pull request
  4. Observe the response

What is the expected behavior?

The /review command should respect:

  • System language settings (Japanese locale)
  • Language instructions specified in AGENTS.md
  • User's language preference indicated in the environment

Expected: Review output in Japanese

What do you see instead?

The /review command always responds in English, regardless of:

  • Japanese system locale
  • Japanese language instruction in AGENTS.md
  • User's clear preference for Japanese output

Additional information

Impact:

  • Affects users in Japanese-speaking environments
  • Contradicts the documented behavior of AGENTS.md respecting custom instructions
  • Inconsistent with other Codex commands that may respect language settings

Workaround attempts:
None effective. Even explicit Japanese instructions in AGENTS.md are ignored by /review.

Related:

  • Other Codex commands (e.g., general queries) may respect AGENTS.md instructions
  • Only /review command seems to have this language override issue

Environment details:

  • Reproducible across different operating systems
  • Occurs with Japanese locale settings
  • AGENTS.md instructions work for other commands but not /review

Activity

  1. kierr commented on Oct 15, 2025

    @kierr

    やあ!

    /review uses a hardcoded prompt, and it would appear AGENTS.md isn't factored into context.

    Try /review in japanese, I tested it and it works for me! You won't be shown the same convenient modal though - you'll have to manually specify the review context (a base branch, a specific commit, etc.)

  2. Colin3191 commented on Oct 22, 2025

    @Colin3191

    Same problem here

  3. etraut-openai commented on Jan 7, 2026

    @etraut-openai
    Contributor

    As mentioned above, AGENTS.md is not used for the /review command. The AGENTS.md file is used for normal code generation mode, and it is assumed that its instructions will likely not be appropriate for code review mode.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcode-reviewIssues relating to code reviews performed by codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions