mirror of
https://github.com/openai/codex.git
synced 2026-10-24 18:18:41 +00:00
agents doc path passed as sessionconfigured instead
This commit is contained in:
@@ -1,17 +1,23 @@
|
||||
use codex_core::WireApi;
|
||||
use codex_core::agents_doc_path_string;
|
||||
use codex_core::config::Config;
|
||||
|
||||
use crate::sandbox_summary::summarize_sandbox_policy;
|
||||
|
||||
/// Build a list of key/value pairs summarizing the effective configuration.
|
||||
pub fn create_config_summary_entries(config: &Config) -> Vec<(&'static str, String)> {
|
||||
let mut entries = vec![
|
||||
("workdir", config.cwd.display().to_string()),
|
||||
let mut entries = vec![("workdir", config.cwd.display().to_string())];
|
||||
|
||||
entries.extend([
|
||||
(
|
||||
"agents.md",
|
||||
agents_doc_path_string(config).unwrap_or_else(|| "none".to_string()),
|
||||
),
|
||||
("model", config.model.clone()),
|
||||
("provider", config.model_provider_id.clone()),
|
||||
("approval", config.approval_policy.to_string()),
|
||||
("sandbox", summarize_sandbox_policy(&config.sandbox_policy)),
|
||||
];
|
||||
]);
|
||||
if config.model_provider.wire_api == WireApi::Responses
|
||||
&& config.model_family.supports_reasoning_summaries
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user