From 6ad3e83d0243a14a6f94e4b81fbc2f564a7d5afa Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Tue, 7 Apr 2026 03:27:29 +0000 Subject: [PATCH] fix: remove unnecessary rm of msg file to avoid race condition --- skills/kugetsu/scripts/kugetsu-session.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/skills/kugetsu/scripts/kugetsu-session.sh b/skills/kugetsu/scripts/kugetsu-session.sh index c40d7f8..52676d6 100755 --- a/skills/kugetsu/scripts/kugetsu-session.sh +++ b/skills/kugetsu/scripts/kugetsu-session.sh @@ -382,7 +382,6 @@ cmd_start() { 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" echo "Session started for '$issue_ref': $new_session_id" echo "Worktree: $worktree_path" @@ -449,7 +448,6 @@ cmd_continue() { 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" } cmd_list() {