Skip to content

Commit 0ce8369

Browse files
committed
⚙️ replace sleep with explicit confirmation in ralph make target
1 parent 2a954a1 commit 0ce8369

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ docs: ## Run docs with bun
125125
ralph: check_jq ## Run Ralph agent loop
126126
@echo "$(RED)⚠️ WARNING: Ralph is an autonomous agent that can modify your codebase.$(RESET)"
127127
@echo "$(RED)⚠️ It is HIGHLY RECOMMENDED to run Ralph in a sandboxed environment.$(RESET)"
128-
@echo "$(YELLOW)Press Ctrl+C to abort, or wait 3 seconds to continue...$(RESET)"
129-
@sleep 3
128+
@printf "$(YELLOW)Are you sure you want to continue? [y/N] $(RESET)" && read ans && [ "$$ans" = "y" ] || (echo "$(RED)Aborted.$(RESET)"; exit 1)
130129
@echo "$(GREEN)🤖 Starting Ralph Agent...$(RESET)"
131130
@chmod +x scripts/ralph.sh
132131
@./scripts/ralph.sh $(ARGS)

0 commit comments

Comments
 (0)