WEFT_OS/crates
Marco Allegretti 57f364890f
fix(runtime): end the runtime when its session's IPC connection closes
A runtime outlived the weft-appd that started it. Runtimes run in their
own systemd scopes, outside weft-appd's service, and a component that
waits for messages, as the Counter and Notes demos do, keeps polling a
closed connection forever. Each time weft-appd stopped or restarted and
restored the previous session, the earlier runtimes stayed behind.

The connection is the session: a thread waits for it to hang up, without
reading from it, and the runtime then exits whatever the component is
doing. That covers weft-appd closing the connection, weft-appd ending,
and the runtime ending the connection itself after a failed send or an
overlong message. A runtime given an IPC socket it cannot connect to now
fails instead of running unreachable. weft-appd's relay notes that it
must not shut down half of the connection, which would now end the
session.

tests/runtime/check_grants.py runs the real runtime on the Counter
component over a Unix socket: it answers an increment, and once the test
closes its end the runtime exits with status 0 within 10 seconds; with
the watcher removed it keeps running and the check fails. A unit test
checks that the wait sees a hangup but neither wakes on nor consumes
pending data; CI's runtime-grants job now runs the runtime's unit tests
with its features. The nested desktop Counter and Notes checks pass with
this runtime.
2026-10-09 21:11:23 +00:00
..
weft-app-shell Merge remote-tracking branch 'origin/fix/confine-app-renderer' into fix/resolve-verified-package 2026-10-09 10:29:32 +00:00
weft-appd fix(runtime): end the runtime when its session's IPC connection closes 2026-10-09 21:11:23 +00:00
weft-build-meta Initialize Rust workspace and repository metadata 2026-03-10 18:47:06 +01:00
weft-compositor fix(compositor): collapse nested submit condition in winit backend 2026-10-09 08:09:41 +00:00
weft-file-portal fix(runtime): enforce effective capability grants per session 2026-10-09 08:08:58 +00:00
weft-ipc-types test(appd): launch complete packages in the supervisor tests 2026-10-09 10:18:36 +00:00
weft-mount-helper fix(appd): resolve each launch to one package and fail closed on images 2026-10-09 10:03:40 +00:00
weft-pack test(appd): launch complete packages in the supervisor tests 2026-10-09 10:18:36 +00:00
weft-runtime fix(runtime): end the runtime when its session's IPC connection closes 2026-10-09 21:11:23 +00:00
weft-servo-shell build(servo): trace pending classic scripts instead of rooting them 2026-10-09 10:29:24 +00:00