mirror of
https://github.com/openai/codex.git
synced 2026-11-03 08:22:30 +00:00
Update user instruction message format (#6010)
This commit is contained in:
1 parent
9a638dbf4e
commit
2371d771cc
8 files changed
+144
-34
No files matched your search
@@ -1003,7 +1003,13 @@ impl Session {
|
||||
items.push(DeveloperInstructions::new(developer_instructions.to_string()).into());
|
||||
}
|
||||
if let Some(user_instructions) = turn_context.user_instructions.as_deref() {
|
||||
items.push(UserInstructions::new(user_instructions.to_string()).into());
|
||||
items.push(
|
||||
UserInstructions {
|
||||
text: user_instructions.to_string(),
|
||||
directory: turn_context.cwd.to_string_lossy().into_owned(),
|
||||
}
|
||||
.into(),
|
||||
);
|
||||
}
|
||||
items.push(ResponseItem::from(EnvironmentContext::new(
|
||||
Some(turn_context.cwd.clone()),
|
||||
|
||||
Reference in new issue
Block a user