mirror of
https://github.com/openai/codex.git
synced 2026-05-05 22:01:37 +03:00
This reverts commit daf0f03ac8.
# External (non-OpenAI) Pull Request Requirements
Before opening this Pull Request, please read the dedicated
"Contributing" markdown file or your PR may be closed:
https://github.com/openai/codex/blob/main/docs/contributing.md
If your PR conforms to our contribution guidelines, replace this text
with a detailed and high quality description of your changes.
Include a link to a bug report or enhancement request.
This commit is contained in:
@@ -62,7 +62,6 @@ pub(crate) const MAX_EXEC_OUTPUT_DELTAS_PER_CALL: usize = 10_000;
|
||||
#[derive(Debug)]
|
||||
pub struct ExecParams {
|
||||
pub command: Vec<String>,
|
||||
pub original_command: String,
|
||||
pub cwd: PathBuf,
|
||||
pub expiration: ExecExpiration,
|
||||
pub env: HashMap<String, String>,
|
||||
@@ -181,7 +180,6 @@ pub async fn process_exec_tool_call(
|
||||
|
||||
let ExecParams {
|
||||
command,
|
||||
original_command: _,
|
||||
cwd,
|
||||
mut env,
|
||||
expiration,
|
||||
@@ -251,8 +249,6 @@ pub(crate) async fn execute_exec_env(
|
||||
} = env;
|
||||
|
||||
let params = ExecParams {
|
||||
original_command: shlex::try_join(command.iter().map(String::as_str))
|
||||
.unwrap_or_else(|_| command.join(" ")),
|
||||
command,
|
||||
cwd,
|
||||
expiration,
|
||||
@@ -1125,8 +1121,6 @@ mod tests {
|
||||
];
|
||||
let env: HashMap<String, String> = std::env::vars().collect();
|
||||
let params = ExecParams {
|
||||
original_command: shlex::try_join(command.iter().map(String::as_str))
|
||||
.unwrap_or_else(|_| command.join(" ")),
|
||||
command,
|
||||
cwd: std::env::current_dir()?,
|
||||
expiration: 500.into(),
|
||||
@@ -1180,8 +1174,6 @@ mod tests {
|
||||
let cancel_token = CancellationToken::new();
|
||||
let cancel_tx = cancel_token.clone();
|
||||
let params = ExecParams {
|
||||
original_command: shlex::try_join(command.iter().map(String::as_str))
|
||||
.unwrap_or_else(|_| command.join(" ")),
|
||||
command,
|
||||
cwd: cwd.clone(),
|
||||
expiration: ExecExpiration::Cancellation(cancel_token),
|
||||
|
||||
Reference in New Issue
Block a user