mirror of
https://github.com/openai/codex.git
synced 2026-11-16 06:54:36 +00:00
Source async user message descriptions from the model catalog (#41461)
## What changed - Add model message metadata for built-in tool descriptions. - Use the active step model's catalog description for `send_user_message_async`, including after a mid-turn model change. - Fall back to the built-in description when catalog metadata is absent, while preserving an explicitly empty description. ## Testing - Cover catalog serialization, fallback and empty-value behavior, and model changes within a turn. GitOrigin-RevId: 72b953214ab9708931065321debf12133f8d2d40
This commit is contained in:
1 parent
03861e69ef
commit
3c062df036
18 files changed
+298
-20
No files matched your search
@@ -377,6 +377,7 @@ async fn guardian_review_session_config_prefers_managed_policy_and_uses_catalog_
|
||||
parent_config.guardian_policy_config = Some(managed_policy.to_string());
|
||||
let model_messages = ModelMessages {
|
||||
persistent_instructions: None,
|
||||
tools: None,
|
||||
instructions_template: None,
|
||||
instructions_variables: None,
|
||||
approvals: None,
|
||||
@@ -417,6 +418,7 @@ async fn guardian_review_session_config_preserves_explicit_empty_catalog_policy(
|
||||
let parent_config = crate::config::test_config().await;
|
||||
let model_messages = ModelMessages {
|
||||
persistent_instructions: None,
|
||||
tools: None,
|
||||
instructions_template: None,
|
||||
instructions_variables: None,
|
||||
approvals: None,
|
||||
@@ -465,6 +467,7 @@ async fn guardian_review_session_config_preserves_explicit_empty_catalog_templat
|
||||
let catalog_policy = "Use the catalog Guardian policy.";
|
||||
let model_messages = ModelMessages {
|
||||
persistent_instructions: None,
|
||||
tools: None,
|
||||
instructions_template: None,
|
||||
instructions_variables: None,
|
||||
approvals: None,
|
||||
|
||||
Reference in new issue
Block a user