mirror of
https://github.com/openai/codex.git
synced 2026-11-06 16:32:29 +00:00
feat: memory read path (#11459)
This commit is contained in:
1 parent
0697d43aba
commit
d4b2c230f1
4 files changed
+100
-24
No files matched your search
@@ -2295,6 +2295,14 @@ impl Session {
|
||||
DeveloperInstructions::new(SEARCH_TOOL_DEVELOPER_INSTRUCTIONS.to_string()).into(),
|
||||
);
|
||||
}
|
||||
// Add developer instructions for memories.
|
||||
if let Some(memory_prompt) =
|
||||
memories::build_memory_tool_developer_instructions(&turn_context.config.codex_home)
|
||||
.await
|
||||
&& turn_context.features.enabled(Feature::MemoryTool)
|
||||
{
|
||||
items.push(DeveloperInstructions::new(memory_prompt).into());
|
||||
}
|
||||
// Add developer instructions from collaboration_mode if they exist and are non-empty
|
||||
let (collaboration_mode, base_instructions) = {
|
||||
let state = self.state.lock().await;
|
||||
|
||||
Reference in new issue
Block a user