Skip to content

feat(personality) introduce model_personality config#9459

Merged
dylan-hurd-oai merged 6 commits intomainfrom
dh--personality
Jan 20, 2026
Merged

feat(personality) introduce model_personality config#9459
dylan-hurd-oai merged 6 commits intomainfrom
dh--personality

Conversation

@dylan-hurd-oai
Copy link
Collaborator

@dylan-hurd-oai dylan-hurd-oai commented Jan 19, 2026

Summary

Introduces the concept of a config model_personality. I would consider this an MVP for testing out the feature. There are a number of follow-ups to this PR:

  • More sophisticated templating with validation
  • In-product experience to manage this

Testing

  • Testing locally

@dylan-hurd-oai
Copy link
Collaborator Author

@codex review

Copy link
Contributor

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64e0e9d393

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +91 to +97
let template = include_str!(
"../../templates/model_instructions/gpt-5.2-codex_instructions_template.md"
);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve model-specific prompts when personality is set

When model_personality is configured, this always loads the GPT‑5.2 Codex template and (a few lines below) replaces model.base_instructions with it. That means any non‑GPT‑5.2 model (e.g., o3, gpt-4.1, or codex-mini) loses its model‑specific prompt content such as BASE_INSTRUCTIONS_WITH_APPLY_PATCH, so users who enable personality while using those models will get mismatched GPT‑5.2 wording and may lose tool guidance. Consider injecting the personality into the existing model instructions (or selecting a template per model) instead of unconditionally switching to the GPT‑5.2 template.

Useful? React with 👍 / 👎.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to leave this as a follow-up for now, to resolve once #9427 lands. It should make it simpler to manage this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for now - going to defer until we have a proper templating system in place.

@dylan-hurd-oai dylan-hurd-oai marked this pull request as ready for review January 20, 2026 08:33
@dylan-hurd-oai dylan-hurd-oai merged commit 714151e into main Jan 20, 2026
32 checks passed
@dylan-hurd-oai dylan-hurd-oai deleted the dh--personality branch January 20, 2026 19:06
@github-actions github-actions bot locked and limited conversation to collaborators Jan 20, 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.

2 participants