From b306c96289782cca0392ad878aac3226409660ec Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Tue, 7 Apr 2026 03:11:07 +0000 Subject: [PATCH] fix: move msg file inside worktree to avoid external_directory permission error --- skills/kugetsu/scripts/kugetsu-session.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skills/kugetsu/scripts/kugetsu-session.sh b/skills/kugetsu/scripts/kugetsu-session.sh index c63066d..c40d7f8 100755 --- a/skills/kugetsu/scripts/kugetsu-session.sh +++ b/skills/kugetsu/scripts/kugetsu-session.sh @@ -379,7 +379,7 @@ cmd_start() { cd "$worktree_path" local sanitized_id=$(echo "$new_session_id" | sed 's/[^a-zA-Z0-9_-]/_/g') - local msg_file="$LOGS_DIR/msg-$sanitized_id.txt" + local msg_file="$worktree_path/.kugetsu-msg.txt" printf '%s' "$dev_message" > "$msg_file" nohup sh -c "GITEA_TOKEN='${GITEA_TOKEN:-}' opencode run '@$msg_file' --session '$new_session_id'" >> "$LOGS_DIR/dev-$sanitized_id.log" 2>&1 & rm -f "$msg_file" @@ -446,7 +446,7 @@ cmd_continue() { cd "$worktree_path" local sanitized_id=$(echo "$opencode_session_id" | sed 's/[^a-zA-Z0-9_-]/_/g') - local msg_file="$LOGS_DIR/msg-$sanitized_id.txt" + local msg_file="$worktree_path/.kugetsu-msg.txt" printf '%s' "$message" > "$msg_file" nohup sh -c "GITEA_TOKEN='${GITEA_TOKEN:-}' opencode run '@$msg_file' --session '$opencode_session_id'" >> "$LOGS_DIR/dev-$sanitized_id.log" 2>&1 & rm -f "$msg_file" -- 2.49.1