Skip to content

model_instructions_file config ignored when running via codex exec --profile since v0.114.0 #14515

Closed

Description

@grandtele

What version of Codex CLI is running?

0.114.0

What subscription do you have?

API

Which model were you using?

gpt-5.3-codex

What platform is your computer?

Linux 6.8.0-85-generic x86_64 unknown

What terminal emulator and version are you using (if applicable)?

N/A — running headless via codex exec

What issue are you seeing?

Since upgrading from rust-v0.113.0 to rust-v0.114.0, the model_instructions_file
configuration option is silently ignored when the agent is invoked via codex exec --profile default.

The agent responds as if no custom system prompt was provided — it produces generic,
default-behavior responses and does not follow any of the instructions defined in the
instructions file.

When the same profile is used interactively (without exec), the instructions file
is loaded and respected correctly.

What steps can reproduce the bug?

  1. Create a profile config with model_instructions_file pointing to a valid
    instructions file.

  2. Run the agent interactively using the profile:
    codex --profile default
    → Verify the agent loads and follows the instructions file. ✅

  3. Run the agent via exec using the same profile:
    codex exec --profile default "your task here"
    → Observe the agent ignores the instructions file entirely. ❌

  4. Downgrade to v0.113.0 and repeat step 3:
    → Agent correctly loads and follows the instructions file. ✅

Regression is isolated to v0.114.0 in the exec code path only.

What is the expected behavior?

The agent invoked via codex exec --profile <name> should load and apply the
system prompt from the file specified in model_instructions_file, exactly as
it does in interactive mode and as it did in v0.113.0.

Additional information

  • Last working version: rust-v0.113.0
  • First broken version: rust-v0.114.0
  • The issue is 100% reproducible.
  • Running inside a CI/automation pipeline (headless, no TTY).

Suspected PRs from the v0.114.0 changelog that touch the exec path
and tool output handling:

Activity

  1. added
    bug
    on Mar 12, 2026
  2. github-actions commented on Mar 12, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. added
    regression
    on Mar 12, 2026
  4. etraut-openai commented on Mar 12, 2026

    @etraut-openai
    Contributor

    Thanks for the bug report, and apologies for the regression. This will be addressed in the next release.

  5. added a commit that references this issue on Mar 13, 2026
    d32820a
  6. mercmobily commented on Apr 11, 2026

    @mercmobily

    @etraut-openai Sorry to pester... this problem is still there in the latest release. Do you know when you will release the fix?

  7. etraut-openai commented on Apr 11, 2026

    @etraut-openai
    Contributor

    @mercmobily, this was fixed a long time ago. If you're seeing a similar problem, please open a new bug report and provide all of the information requested in the bug report template.

  8. added a commit that references this issue on Jun 27, 2026
    977f1ee
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

    bugregression

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions