fix(kugetsu): export KUGETSU_TEMP_DIR for subagent workflows #92
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user