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
This commit is contained in:
shokollm
2026-04-03 15:00:41 +00:00
parent 324dcfd62b
commit 71e6bd5783

View File

@@ -1248,6 +1248,10 @@ cmd_init() {
# Verbosity level for PM agent output (verbose, default, or quiet) # Verbosity level for PM agent output (verbose, default, or quiet)
# KUGETSU_VERBOSITY=default # 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 # Git server configurations
# Format: GIT_SERVERS["hostname"]="https://hostname" # Format: GIT_SERVERS["hostname"]="https://hostname"
# Add servers with: kugetsu server add <name> <url> # Add servers with: kugetsu server add <name> <url>