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

View file

@ -18,6 +18,7 @@ path = "src/main.rs"
[dependencies]
lutra-control.workspace = true
lutra-mcp.workspace = true
lutra-proc.workspace = true
serde_json = "1.0.154"
[dev-dependencies]