fix(kugetsu): export KUGETSU_TEMP_DIR for subagent workflows #92

Merged
shoko merged 2 commits from fix/issue-73-temp-dir-v2 into main 2026-04-02 04:37:25 +02:00
Showing only changes of commit e184b1e5b0 - Show all commits

View File

@@ -563,8 +563,10 @@ cmd_delegate() {
mkdir -p "$LOGS_DIR"
local log_file="$LOGS_DIR/delegate-$(date +%s).log"
local temp_dir="${KUGETSU_TEMP_DIR:-$HOME/.local/share/opencode/tool-output}"
mkdir -p "$ENV_DIR"
local env_sh="set -a; "
local env_sh="set -a; export KUGETSU_TEMP_DIR='$temp_dir'; "
if [ -f "$ENV_DIR/pm-agent.env" ]; then
env_sh="${env_sh}source '$ENV_DIR/pm-agent.env'; "
elif [ -f "$ENV_DIR/default.env" ]; then