From 2aa6785f75b67b5cdea9aeadf19795fbfdfef9e3 Mon Sep 17 00:00:00 2001 From: shokollm <270575765+shokollm@users.noreply.github.com> Date: Wed, 8 Apr 2026 10:36:49 +0000 Subject: [PATCH] fix(session): run delegate synchronously when no issue ref is provided When kugetsu delegate is called without an issue ref, it now runs interactively and synchronously instead of fire-and-forget with nohup. This allows users to see PM response immediately for guidance/creation requests rather than having the interaction run in background. --- skills/kugetsu/scripts/kugetsu-session.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/skills/kugetsu/scripts/kugetsu-session.sh b/skills/kugetsu/scripts/kugetsu-session.sh index b6ffaf5..dbce40a 100755 --- a/skills/kugetsu/scripts/kugetsu-session.sh +++ b/skills/kugetsu/scripts/kugetsu-session.sh @@ -228,8 +228,7 @@ cmd_delegate() { local msg_file="$LOGS_DIR/msg-$new_session.txt" printf '%s' "$message" > "$msg_file" - nohup sh -c "GITEA_TOKEN='${GITEA_TOKEN:-}' opencode run '@$msg_file' --session '$new_session'" >> "$log_file" 2>&1 & - echo "Delegated to new session (logged to $(basename "$log_file"))" + sh -c "GITEA_TOKEN='${GITEA_TOKEN:-}' opencode run '@$msg_file' --session '$new_session'" 2>&1 | tee "$log_file" } create_session() { -- 2.49.1