app-server: Add transport for remote control (#15951)

This commit is contained in:
Ruslan Nigmatullin
2026-04-06 14:55:59 -07:00
committed by GitHub
parent 03c07956cf
commit 73dab2046f
23 changed files with 4557 additions and 81 deletions

View File

@@ -346,7 +346,7 @@ struct AppServerCommand {
subcommand: Option<AppServerSubcommand>,
/// Transport endpoint URL. Supported values: `stdio://` (default),
/// `ws://IP:PORT`.
/// `ws://IP:PORT`, `off`.
#[arg(
long = "listen",
value_name = "URL",
@@ -1993,6 +1993,12 @@ mod tests {
);
}
#[test]
fn app_server_listen_off_parses() {
let app_server = app_server_from_args(["codex", "app-server", "--listen", "off"].as_ref());
assert_eq!(app_server.listen, codex_app_server::AppServerTransport::Off);
}
#[test]
fn app_server_listen_invalid_url_fails_to_parse() {
let parse_result =