INNER CODE UNIT · Python
console
Dicklesworthstone/claude_code_agent_farm · claude_code_agent_farm.py:44
console = Console(stderr=True) # Use stderr for progress/info so stdout remains clean
# ─────────────────────────────── Configuration ────────────────────────────── #
def interruptible_confirm(message: str, default: bool = False) -> bool:
"""Confirmation prompt that returns default on KeyboardInterrupt"""
try:
return Confirm.ask(message, default=default)
except KeyboardInterrupt:
console.print("\n[yellow]Interrupted - using default response[/yellow]")
return default
# ─────────────────────────────── Constants ────────────────────────────────── #