fix(pr-daemon): pin TMUX_TMPDIR to the runtime dir
CI / lint (push) Successful in 30s
CI / eval (push) Successful in 1m53s

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Miguel Palhas
2026-08-19 19:06:33 +01:00
parent 88abb49340
commit 7580edb82c
+7 -2
View File
@@ -113,8 +113,13 @@ in
WorkingDirectory = "%h"; WorkingDirectory = "%h";
ExecStart = "${pkgs.bun}/bin/bun %h/tea/agent-skills/bin/reviewer-poll.ts"; ExecStart = "${pkgs.bun}/bin/bun %h/tea/agent-skills/bin/reviewer-poll.ts";
EnvironmentFile = "%h/.config/reviewer/env"; EnvironmentFile = "%h/.config/reviewer/env";
# aoe and git come from the profile dirs, not from a user unit's default PATH. # aoe and git come from the profile dirs, not from a user unit's default
Environment = [ "PATH=${toolPath}" ]; # 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"; Restart = "always";
RestartSec = 5; RestartSec = 5;
# The agent tmux sessions this daemon starts land in its cgroup, so the # The agent tmux sessions this daemon starts land in its cgroup, so the