mirror of
https://github.com/openai/codex.git
synced 2026-04-24 22:54:54 +00:00
Fix spawn_agent input type (#11304)
This commit is contained in:
@@ -392,6 +392,10 @@ async fn run_memory_consolidation_for_cwd(
|
||||
}
|
||||
|
||||
let prompt = memories::build_consolidation_prompt(&memory_root);
|
||||
let input = vec![UserInput::Text {
|
||||
text: prompt,
|
||||
text_elements: vec![],
|
||||
}];
|
||||
let mut consolidation_config = config.as_ref().clone();
|
||||
consolidation_config.cwd = memory_root.clone();
|
||||
let source = SessionSource::SubAgent(SubAgentSource::Other(
|
||||
@@ -400,7 +404,7 @@ async fn run_memory_consolidation_for_cwd(
|
||||
match session
|
||||
.services
|
||||
.agent_control
|
||||
.spawn_agent(consolidation_config, prompt, Some(source))
|
||||
.spawn_agent(consolidation_config, input, Some(source))
|
||||
.await
|
||||
{
|
||||
Ok(consolidation_agent_id) => {
|
||||
|
||||
Reference in New Issue
Block a user