[Phase 6] Add dry-run support to cmd_continue #249

Open
opened 2026-04-08 06:34:39 +02:00 by shoko · 0 comments
Owner

Problem

Testing the queue-daemon is difficult because fork_agent() spawns opencode which consumes 340MB-1GB per session.

Solution

Add dry-run mode to cmd_continue:

  • Check for KUGEETSU_DRY_RUN=1 env var OR --dry-run flag
  • If either is provided, exit immediately with code 0 before ANY file operations
  • Output: "Dry run mode - no files modified"

Implementation in cmd_continue:

if [ "${KUGEETSU_DRY_RUN:-}" = "1" ] || [ "${1:-}" = "--dry-run" ] || [ "${2:-}" = "--dry-run" ]; then
    echo "Dry run mode - no files modified"
    return 0
fi

Status

BLOCKED - Depends on Phase 5 (uses exit code 0 for dry-run)

Files

  • skills/kugetsu/scripts/kugetsu-session.sh

Parent: #235
Blocked by: #240 (Phase 5)

## Problem Testing the queue-daemon is difficult because fork_agent() spawns opencode which consumes 340MB-1GB per session. ## Solution Add dry-run mode to cmd_continue: - Check for KUGEETSU_DRY_RUN=1 env var OR --dry-run flag - If either is provided, exit immediately with code 0 before ANY file operations - Output: "Dry run mode - no files modified" Implementation in cmd_continue: ```bash if [ "${KUGEETSU_DRY_RUN:-}" = "1" ] || [ "${1:-}" = "--dry-run" ] || [ "${2:-}" = "--dry-run" ]; then echo "Dry run mode - no files modified" return 0 fi ``` ## Status **BLOCKED** - Depends on Phase 5 (uses exit code 0 for dry-run) ## Files - skills/kugetsu/scripts/kugetsu-session.sh ## Related Issues Parent: #235 Blocked by: #240 (Phase 5)
shoko added the blocked label 2026-04-08 06:38:30 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shoko/kugetsu#249