pub async fn run_http(binding: ProjectBinding, port: u16) -> Result<()>Expand description
Run tcode serve --http to completion.
Why: the top-level entry point main.rs calls for the serve --http
subcommand.
What (#6637): the persistent daemon binds its Unix socket FIRST and
fatally, then adds the HTTP listener on port (0 = OS-assigned
ephemeral port) on top of the SAME router and session registry — see
uds::run_daemon, which owns the whole body including the bounded
SessionRegistry::shutdown_executions drain. --http no longer selects a
transport; it selects whether the transient TCP listener
trusty-code-gui’s webview still needs is bound alongside the socket.
Test: uds::uds_tests::* cover the bind, the method surface and the
streams; http::tests cover the routing/dispatch logic on the HTTP half.