mirror of
https://github.com/openai/codex.git
synced 2026-11-08 20:40:33 +00:00
feat(tui): add managed worktree flow
This commit is contained in:
@@ -94,7 +94,8 @@ impl CommandExecRequestProcessor {
|
||||
}
|
||||
|
||||
let CommandExecParams {
|
||||
command,
|
||||
mut command,
|
||||
use_codex_self_exe,
|
||||
process_id,
|
||||
tty,
|
||||
stream_stdin,
|
||||
@@ -115,6 +116,13 @@ impl CommandExecRequestProcessor {
|
||||
));
|
||||
}
|
||||
|
||||
if use_codex_self_exe {
|
||||
let codex_self_exe = self.arg0_paths.codex_self_exe.as_ref().ok_or_else(|| {
|
||||
internal_error("app-server does not know its Codex executable path")
|
||||
})?;
|
||||
command[0] = codex_self_exe.to_string_lossy().into_owned();
|
||||
}
|
||||
|
||||
if size.is_some() && !tty {
|
||||
return Err(invalid_params("command/exec size requires tty: true"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user