From efd25bac5949b5f5ee84538e446c650c880bf534 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Fri, 3 Apr 2026 15:00:41 +0000 Subject: [PATCH] fix: add KUGETSU_TEMP_DIR to config template Add KUGETSU_TEMP_DIR config option to cmd_init template with default value of ~/.local/share/opencode/tool-output (opencode-allowed directory). This allows users to configure a temp directory that opencode can access instead of /tmp which may be blocked in headless mode. Fixes #73 --- skills/kugetsu/scripts/kugetsu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skills/kugetsu/scripts/kugetsu b/skills/kugetsu/scripts/kugetsu index df16c43..c1e542c 100755 --- a/skills/kugetsu/scripts/kugetsu +++ b/skills/kugetsu/scripts/kugetsu @@ -1248,6 +1248,10 @@ cmd_init() { # Verbosity level for PM agent output (verbose, default, or quiet) # KUGETSU_VERBOSITY=default +# Temporary directory for agent operations (default: ~/.local/share/opencode/tool-output) +# Use this instead of /tmp which may be blocked by opencode in headless mode +# KUGETSU_TEMP_DIR="$HOME/.local/share/opencode/tool-output" + # Git server configurations # Format: GIT_SERVERS["hostname"]="https://hostname" # Add servers with: kugetsu server add