You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_run_in_systemd_scope() in polylogue/maintenance/resources.py:199-203 calls systemd-run --user --scope --property=Nice=19. When systemd-run rejects the Nice property (some systemd builds/configs don't allow unprivileged nice in user scopes), the function raises SystemExit(nonzero) which bypasses the except ScopeLaunchUnavailableError handler and kills the process.
The error: Unknown assignment: Nice=19 from systemd-run, exit code 1, then SystemExit(1) propagates uncaught through the call stack.
Acceptance Criteria
When systemd-run fails, _run_in_systemd_scope raises ScopeLaunchUnavailableError instead of SystemExit, so the caller falls through to _apply_process_demotion (process-local os.nice() + ionice)
--resource-mode auto (the default) gracefully degrades to process-local demotion
--resource-mode scope reports the unavailability clearly
Closing: with the daemon architecture (#717), Polylogue CLI never executes heavy work and --resource-mode was removed (#715). systemd Nice=19 on the daemon service is a Sinnix host concern (polylogued.service unit), not a Polylogue product concern. The Polylogue product should not ship systemd-specific resource properties.
Activity
Sinity commentedon May 2, 2026
Closing: with the daemon architecture (#717), Polylogue CLI never executes heavy work and --resource-mode was removed (#715). systemd Nice=19 on the daemon service is a Sinnix host concern (polylogued.service unit), not a Polylogue product concern. The Polylogue product should not ship systemd-specific resource properties.