fix(gateway): clarify systemd service scope

This commit is contained in:
Vincent Koc
2026-05-04 03:33:49 -07:00
parent 23eb44b045
commit 97d35f4c57
3 changed files with 3 additions and 2 deletions

View File

@@ -64,6 +64,7 @@ Docs: https://docs.openclaw.ai
### Fixes
- Gateway/status: label Linux managed gateway services as `systemd user`, making status output explicit about the user-service scope instead of implying a system-level unit. Thanks @vincentkoc.
- Plugins/install: remove the previous managed plugin directory when a reinstall switches sources, so stale ClawHub and npm copies no longer keep duplicate plugin ids in discovery after the new install wins. Thanks @vincentkoc.
- Plugins/install: let official plugin reinstall recovery repair source-only installed runtime shadows, so `openclaw plugins install npm:@openclaw/discord --force` can replace the bad package instead of stopping at stale config validation. Thanks @vincentkoc.
- Plugins/commands: allow the official ClawHub Codex plugin package to keep reserved `/codex` command ownership, matching the existing npm-managed Codex package behavior. Thanks @vincentkoc.

View File

@@ -41,7 +41,7 @@ function createService(overrides: Partial<GatewayService> = {}): GatewayService
describe("resolveGatewayService", () => {
it.each([
{ platform: "darwin" as const, label: "LaunchAgent", loadedText: "loaded" },
{ platform: "linux" as const, label: "systemd", loadedText: "enabled" },
{ platform: "linux" as const, label: "systemd user", loadedText: "enabled" },
{ platform: "win32" as const, label: "Scheduled Task", loadedText: "registered" },
])("returns the registered adapter for $platform", ({ platform, label, loadedText }) => {
setPlatform(platform);

View File

@@ -262,7 +262,7 @@ const GATEWAY_SERVICE_REGISTRY: Record<SupportedGatewayServicePlatform, GatewayS
readRuntime: readLaunchAgentRuntime,
},
linux: {
label: "systemd",
label: "systemd user",
loadedText: "enabled",
notLoadedText: "disabled",
stage: ignoreServiceWriteResult(stageSystemdService),