Skip to content

Honor personality = "none" in model instructions#32277

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/452c88d3ac6001c2ac7d4fef269cd75dc239fa61
Jul 10, 2026
Merged

Honor personality = "none" in model instructions#32277
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/452c88d3ac6001c2ac7d4fef269cd75dc239fa61

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 10, 2026

Copy link
Copy Markdown

Honor personality = "none" in model instructions

Why

Model catalog instructions can include a baked-in # Personality section. An
explicit none setting should omit that section instead of sending it as part
of the model's base instructions.

What changed

  • Pass the configured personality into the models manager.
  • When personality support is enabled and the setting is explicitly none,
    remove the # Personality section through the next level-one heading from
    catalog base instructions and instruction templates.
  • Preserve explicit base_instructions overrides and avoid warning when no
    personality was requested.

Testing

Added unit and integration coverage for section removal, heading boundaries,
CRLF input, preserved configurations, and explicit base instructions.

## Why

Model catalog instructions can include a baked-in `# Personality` section. An
explicit `none` setting should omit that section instead of sending it as part
of the model's base instructions.

## What changed

- Pass the configured personality into the models manager.
- When personality support is enabled and the setting is explicitly `none`,
  remove the `# Personality` section through the next level-one heading from
  catalog base instructions and instruction templates.
- Preserve explicit `base_instructions` overrides and avoid warning when no
  personality was requested.

## Testing

Added unit and integration coverage for section removal, heading boundaries,
CRLF input, preserved configurations, and explicit base instructions.

GitOrigin-RevId: 452c88d3ac6001c2ac7d4fef269cd75dc239fa61
@copyberry copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/452c88d3ac6001c2ac7d4fef269cd75dc239fa61 branch from d665750 to 09ccae2 Compare July 10, 2026 21:41
@copyberry copyberry Bot merged commit 09ccae2 into main Jul 10, 2026
13 of 32 checks passed
@copyberry copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/452c88d3ac6001c2ac7d4fef269cd75dc239fa61 branch July 10, 2026 21:42
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants