From 5d136b58c61b695c4ae71d908f594420fbdf9c71 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Tue, 7 Apr 2026 03:26:00 +0000 Subject: [PATCH] fix: remove unnecessary rm of msg file to avoid race condition --- skills/kugetsu/scripts/kugetsu-session.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/skills/kugetsu/scripts/kugetsu-session.sh b/skills/kugetsu/scripts/kugetsu-session.sh index 47f371f..cc5f2c0 100755 --- a/skills/kugetsu/scripts/kugetsu-session.sh +++ b/skills/kugetsu/scripts/kugetsu-session.sh @@ -403,8 +403,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 & - sleep 0.5 - rm -f "$msg_file" echo "Session started for '$issue_ref': $new_session_id" echo "Worktree: $worktree_path" @@ -478,8 +476,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 & - sleep 0.5 - rm -f "$msg_file" } cmd_list() {