mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Retire the personality feature flag and document deprecated settings (#45809)
## What changed - Accept and ignore `features.personality` in user configuration, profiles, and managed requirements. - Remove feature gating from `personality = "none"`, which strips the literal `# Personality` section when preparing model catalog instructions. Preserve explicit base instructions and existing thread instructions. - Document deprecated personality fields in configuration, app-server schemas, and the Python SDK: `friendly` and `pragmatic` no longer select a style, and `supportsPersonality` is always `false`. ## Testing Add regression coverage for ignored legacy flag values and managed requirements, personality opt-out behavior with the flag absent or set to either value, role overrides, and preservation of explicit base instructions, including empty strings. GitOrigin-RevId: 4e12c66b42bfc59d6f151a5b3c28fadc6654ae99
This commit is contained in:
1 parent
4d2807023a
commit
883af106b9
54 files changed
+389
-264
No files matched your search
@@ -1089,8 +1089,8 @@ pub struct ConfigBatchWriteParams {
|
||||
#[ts(optional = nullable)]
|
||||
pub expected_version: Option<String>,
|
||||
/// When true, hot-reload updated runtime settings into loaded threads after writing.
|
||||
/// Session-static model, reasoning-effort, Plan-mode reasoning-effort, service-tier, and
|
||||
/// personality defaults are not reloaded.
|
||||
/// Session-static model, reasoning-effort, Plan-mode reasoning-effort, and service-tier
|
||||
/// defaults are not reloaded. The deprecated personality setting is also not reloaded.
|
||||
#[serde(default, skip_serializing_if = "std::ops::Not::not")]
|
||||
pub reload_user_config: bool,
|
||||
}
|
||||
|
||||
@@ -131,6 +131,7 @@ pub struct Model {
|
||||
pub default_reasoning_effort: ReasoningEffort,
|
||||
#[serde(default = "default_input_modalities")]
|
||||
pub input_modalities: Vec<InputModality>,
|
||||
/// @deprecated Always false; models no longer support personality selection.
|
||||
#[serde(default)]
|
||||
pub supports_personality: bool,
|
||||
/// Multi-agent runtime declared by this model, when available.
|
||||
|
||||
@@ -104,6 +104,7 @@ pub struct ThreadStartParams {
|
||||
pub base_instructions: Option<String>,
|
||||
#[ts(optional = nullable)]
|
||||
pub developer_instructions: Option<String>,
|
||||
/// @deprecated `friendly` and `pragmatic` no longer select a style.
|
||||
#[ts(optional = nullable)]
|
||||
pub personality: Option<Personality>,
|
||||
/// @deprecated Ignored. Use Ultra reasoning effort for proactive multi-agent behavior.
|
||||
@@ -286,7 +287,8 @@ pub struct ThreadSettingsUpdateParams {
|
||||
#[experimental("thread/settings/update.multiAgentMode")]
|
||||
#[ts(optional = nullable)]
|
||||
pub multi_agent_mode: Option<MultiAgentMode>,
|
||||
/// Override the personality for subsequent turns.
|
||||
/// @deprecated `friendly` and `pragmatic` no longer select a style.
|
||||
/// Changing this does not rewrite the thread's existing instructions.
|
||||
#[ts(optional = nullable)]
|
||||
pub personality: Option<Personality>,
|
||||
}
|
||||
@@ -318,6 +320,7 @@ pub struct ThreadSettings {
|
||||
#[experimental("thread/settings.multiAgentMode")]
|
||||
#[serde(default)]
|
||||
pub multi_agent_mode: MultiAgentMode,
|
||||
/// @deprecated Reports the saved setting; `friendly` and `pragmatic` no longer select a style.
|
||||
pub personality: Option<Personality>,
|
||||
}
|
||||
|
||||
@@ -409,6 +412,8 @@ pub struct ThreadResumeParams {
|
||||
pub base_instructions: Option<String>,
|
||||
#[ts(optional = nullable)]
|
||||
pub developer_instructions: Option<String>,
|
||||
/// @deprecated `friendly` and `pragmatic` no longer select a style.
|
||||
/// Changing this does not rewrite the thread's existing instructions.
|
||||
#[ts(optional = nullable)]
|
||||
pub personality: Option<Personality>,
|
||||
/// When true, return only thread metadata and live-resume state without
|
||||
|
||||
@@ -248,7 +248,8 @@ pub struct TurnStartParams {
|
||||
/// Override the reasoning summary for this turn and subsequent turns.
|
||||
#[ts(optional = nullable)]
|
||||
pub summary: Option<ReasoningSummary>,
|
||||
/// Override the personality for this turn and subsequent turns.
|
||||
/// @deprecated `friendly` and `pragmatic` no longer select a style.
|
||||
/// Changing this does not rewrite the thread's existing instructions.
|
||||
#[ts(optional = nullable)]
|
||||
pub personality: Option<Personality>,
|
||||
/// Optional JSON Schema used to constrain the final assistant message for
|
||||
|
||||
Reference in new issue
Block a user