Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions codex-rs/exec-server/src/client_recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,19 @@ impl ExecServerClient {
return;
};
match event {
RpcClientEvent::Request(request) => {
let error = crate::rpc::method_not_found(format!(
"exec-server client does not implement `{}` yet",
request.method
));
if rpc_client.respond_error(request.id, error).await.is_err() {
inner.request_recovery(
rpc_client,
disconnected_message(/*reason*/ None),
);
return;
}
}
RpcClientEvent::Notification(notification) => {
if let Err(error) = handle_server_notification(&inner, notification).await {
rpc_client.close_transport().await;
Expand Down
2 changes: 2 additions & 0 deletions codex-rs/exec-server/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ mod fs_helper_main;
mod fs_sandbox;
mod local_file_system;
mod local_process;
mod network_policy_decisions;
mod noise_channel;
mod noise_relay;
mod process;
Expand All @@ -27,6 +28,7 @@ mod remote_file_system;
mod remote_process;
mod resolved_capability;
mod rpc;
mod rpc_server_requests;
mod runtime_paths;
mod sandboxed_file_system;
mod server;
Expand Down
Loading
Loading