F1: lutra starts the desktop without passing on any handle

lutra_proc::spawn_detached starts a program through CreateProcessW with
bInheritHandles = FALSE and null standard handles (DETACHED_PROCESS |
CREATE_NEW_PROCESS_GROUP as before), so lutra's output pipe closes when
lutra exits. launch.rs uses it. Helper roles detached-plain/-proc show the
standard library keeping the pipe open and spawn_detached not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
danny 2026-11-02 19:04:54 +01:00
parent 8a05f508c8
commit f4dbc9188e
7 changed files with 340 additions and 33 deletions

1
Cargo.lock generated
View file

@ -2589,6 +2589,7 @@ dependencies = [
"lutra-control",
"lutra-engine",
"lutra-mcp",
"lutra-proc",
"lutra-testkit",
"proptest",
"serde_json",