mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
Share remote environment exec-server client
Create one lazy exec-server client per remote environment and pass clones into the remote process and filesystem backends. This keeps ExecServerClient as the connected-client type while avoiding duplicate websocket clients for one environment. Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
@@ -25,11 +25,9 @@ struct RemoteExecProcess {
|
||||
}
|
||||
|
||||
impl RemoteProcess {
|
||||
pub(crate) fn new(websocket_url: String) -> Self {
|
||||
pub(crate) fn new(client: LazyRemoteExecServerClient) -> Self {
|
||||
trace!("remote process new");
|
||||
Self {
|
||||
client: LazyRemoteExecServerClient::new(websocket_url),
|
||||
}
|
||||
Self { client }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user