remote: Recognize WSL interop to open browser for codex web login (#44136)

Closes #41521

Release Notes:

- Fixed codex web login not working on wsl remotes if no browser is
installed

Co-authored-by: Ben Brandt <benjamin.j.brandt@gmail.com>
This commit is contained in:
Lukas Wirth
2025-12-04 14:42:26 +00:00
committed by GitHub
co-authored by Ben Brandt
parent c978db8626
commit a33e881906
9 changed files with 79 additions and 17 deletions
+5
View File
@@ -59,6 +59,7 @@ pub trait ProtoClient: Send + Sync {
fn message_handler_set(&self) -> &parking_lot::Mutex<ProtoMessageHandlerSet>;
fn is_via_collab(&self) -> bool;
fn has_wsl_interop(&self) -> bool;
}
#[derive(Default)]
@@ -510,6 +511,10 @@ impl AnyProtoClient {
},
);
}
pub fn has_wsl_interop(&self) -> bool {
self.0.client.has_wsl_interop()
}
}
fn to_any_envelope<T: EnvelopedMessage>(