From 7580edb82c9628d2f509a4b33e2ed5550ab40f20 Mon Sep 17 00:00:00 2001 From: Miguel Palhas Date: Wed, 19 Aug 2026 19:06:33 +0100 Subject: [PATCH] fix(pr-daemon): pin TMUX_TMPDIR to the runtime dir Co-Authored-By: Claude Opus 5 (1M context) --- home/yolo/services.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/home/yolo/services.nix b/home/yolo/services.nix index 472fbc0..9205e3d 100644 --- a/home/yolo/services.nix +++ b/home/yolo/services.nix @@ -113,8 +113,13 @@ in WorkingDirectory = "%h"; ExecStart = "${pkgs.bun}/bin/bun %h/tea/agent-skills/bin/reviewer-poll.ts"; EnvironmentFile = "%h/.config/reviewer/env"; - # aoe and git come from the profile dirs, not from a user unit's default PATH. - Environment = [ "PATH=${toolPath}" ]; + # aoe and git come from the profile dirs, not from a user unit's default + # PATH. TMUX_TMPDIR keeps the sessions it starts on the same tmux server + # the shell and TUI use, instead of a second one under /tmp. + Environment = [ + "PATH=${toolPath}" + "TMUX_TMPDIR=%t" + ]; Restart = "always"; RestartSec = 5; # The agent tmux sessions this daemon starts land in its cgroup, so the