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:
starr-openai
2026-04-21 11:13:27 -07:00
co-authored by Codex
parent 154be3fc66
commit 0642d36ae4
3 changed files with 8 additions and 12 deletions
+2 -4
View File
@@ -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 }
}
}