mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
Add safer TUI defaults for cyber models (#37055)
## What changed - Propagate the optional `modelSpecialty` field through the model catalog and app-server `model/list` response. - When a newly selected model has the `cyber` specialty, default an active TUI thread to workspace-write permissions with on-request approval. Use auto review when available, otherwise keep the user as reviewer, while respecting configured permission requirements. - Show a notice when auto review is applied and strengthen the full-access warning for cyber models. - Preserve explicitly selected permissions when only reasoning settings change. ## Testing - Cover auto-review defaults, requirement-aware fallback behavior, permission preservation across reasoning changes, and the new warning notice. GitOrigin-RevId: 8f25b0082d3051d9ff91f7355921236d0f82f758
This commit is contained in:
@@ -87,6 +87,8 @@ pub struct Model {
|
||||
pub availability_nux: Option<ModelAvailabilityNux>,
|
||||
pub display_name: String,
|
||||
pub description: String,
|
||||
#[serde(default)]
|
||||
pub model_specialty: Option<String>,
|
||||
pub hidden: bool,
|
||||
pub supported_reasoning_efforts: Vec<ReasoningEffortOption>,
|
||||
pub default_reasoning_effort: ReasoningEffort,
|
||||
|
||||
Reference in New Issue
Block a user