From 3f48082c6a61951135474d51bd6f2169ca32a2d7 Mon Sep 17 00:00:00 2001 From: notplants <@notplants> Date: Mon, 23 Nov 2026 18:28:45 +0000 Subject: [PATCH] fix: clear root-owned opencode scratch files before web start --- nix/modules/orchestrator-host.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/modules/orchestrator-host.nix b/nix/modules/orchestrator-host.nix index 207a0eb..056fa5b 100644 --- a/nix/modules/orchestrator-host.nix +++ b/nix/modules/orchestrator-host.nix @@ -288,7 +288,8 @@ SSHCFG User = "loops"; Group = "users"; WorkingDirectory = "/srv/cc-ci-orch/cc-ci"; EnvironmentFile = [ "-/srv/cc-ci/cc-ci/.env.public" "/srv/cc-ci/.testenv" ]; - ExecStartPre = "${pkgs.coreutils}/bin/rm -rf /tmp/opencode"; + # Test tools can leave root-owned files here; only cleanup needs root. + ExecStartPre = "+${pkgs.coreutils}/bin/rm -rf /tmp/opencode"; ExecStart = "/home/loops/.local/bin/opencode serve --hostname 127.0.0.1 --port 4096"; Restart = "on-failure"; RestartSec = "5s"; -- 2.54.0