Fixes from the v0.15.0 release review (v0.14.0..67bf3fe1). Four reviewers found 18 issues; all are resolved here, then the fixes were re-reviewed by two more reviewers.
Packaging and logs
neferwl-session: keep the graphical session, environment and portals when neferwl-server takes over (also while its start job is still queued).
Session logs: a root lifecycle lock serializes session creation and pruning; a live session directory is never removed.
Rendering, capture, screencast
Capture DMA-BUF: when sync-file export fails, finish the GPU copy before returning the buffer (fence wait, then queue/device idle fallback; otherwise keep the copy and report device loss).
Screencast allocates on the current render device after recovery; releases go to the creating device.
DRM supervisor publishes the render device atomically for cross-goroutine readers.
Headless continuous capture: probe directory write access before acknowledging; a later write error stops the recording, not the compositor; a start on an already-recording output is refused (bad-request).
Built-in HEADLESS-N outputs are paced at their advertised 60 Hz.
Raw HDR capture follows the confirmed live HDR state; virtual renderers always allow readback (no cost until used).
Core, config, Wayland
Removing the focused output moves its workspaces to a reachable output, not an isolated one.
output..keep-focus survives a later output. declaration.
Each queued commit reports the configure acknowledged when it was submitted.
Control socket and CLI
Injection translation is transactional: core acknowledges admission before executing events (ports.ControlAdmission); XKB state is committed only on admission and rolled back on refusal or cancellation.
do quit (and an injected quit bind) returns its committed reply and exits 0.
state honours an explicit NEFERWL_CONTROL target instead of falling back to another session.
session new: SIGINT/SIGTERM during startup kills and reaps the detached child.
Synthetic input devices use reserved ID ranges (virtual pointer 1<<62, control 1<<63) and no longer collide with libinput.
Skill recipes spawn their client inside the mapping wait.
make check, make race, make mocks-check, staticcheck ./... pass.
Headless end-to-end on the branch binary: spawn + keybind recipe, /proc capture refused with session alive, duplicate recording refused, output add/rm, explicit control target error, do quit exit 0. Busy-refused Super then q (no quit) verified on the control branch.
Not verified
Live systemd handover, real GPU device loss, rare Vulkan wait failures (mock-tested only), Xwayland and wayvnc e2e.
// newMockcopyCompletion creates a new instance of mockcopyCompletion. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13
+
// The first argument is typically a *testing.T value.
14
+
func newMockcopyCompletion(t interface {
15
+
mock.TestingT
16
+
Cleanup(func())
17
+
}) *mockcopyCompletion {
18
+
if helper, ok := t.(interface{ Helper() }); ok {
19
+
helper.Helper()
20
+
}
21
+
22
+
mock := &mockcopyCompletion{}
23
+
mock.Mock.Test(t)
24
+
25
+
t.Cleanup(func() {
26
+
if helper, ok := t.(interface{ Helper() }); ok {
27
+
helper.Helper()
28
+
}
29
+
mock.AssertExpectations(t)
30
+
})
31
+
32
+
return mock
33
+
}
34
+
35
+
// mockcopyCompletion is an autogenerated mock type for the copyCompletion type
// newMockcopyCompletion creates a new instance of mockcopyCompletion. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
13
+
// The first argument is typically a *testing.T value.
14
+
func newMockcopyCompletion(t interface {
15
+
mock.TestingT
16
+
Cleanup(func())
17
+
}) *mockcopyCompletion {
18
+
if helper, ok := t.(interface{ Helper() }); ok {
19
+
helper.Helper()
20
+
}
21
+
22
+
mock := &mockcopyCompletion{}
23
+
mock.Mock.Test(t)
24
+
25
+
t.Cleanup(func() {
26
+
if helper, ok := t.(interface{ Helper() }); ok {
27
+
helper.Helper()
28
+
}
29
+
mock.AssertExpectations(t)
30
+
})
31
+
32
+
return mock
33
+
}
34
+
35
+
// mockcopyCompletion is an autogenerated mock type for the copyCompletion type