From cd5a3c13bdb30ff7c34280e1a65fd4902e485919 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Mon, 11 Aug 2025 22:06:56 -0400 Subject: [PATCH] Development runner: handle_sigint defaults to False --- src/pipecat/runner/run.py | 4 ---- src/pipecat/runner/types.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pipecat/runner/run.py b/src/pipecat/runner/run.py index eb45091b8..719bb0496 100644 --- a/src/pipecat/runner/run.py +++ b/src/pipecat/runner/run.py @@ -145,7 +145,6 @@ async def _run_telephony_bot(websocket: WebSocket): # Just pass the WebSocket - let the bot handle parsing runner_args = WebSocketRunnerArguments(websocket=websocket) - runner_args.handle_sigint = False await bot_module.bot(runner_args) @@ -223,7 +222,6 @@ def _setup_webrtc_routes(app: FastAPI, esp32_mode: bool = False, host: str = "lo bot_module = _get_bot_module() runner_args = SmallWebRTCRunnerArguments(webrtc_connection=pipecat_connection) - runner_args.handle_sigint = False background_tasks.add_task(bot_module.bot, runner_args) answer = pipecat_connection.get_answer() @@ -266,7 +264,6 @@ def _setup_daily_routes(app: FastAPI): # Start the bot in the background with empty body for GET requests bot_module = _get_bot_module() runner_args = DailyRunnerArguments(room_url=room_url, token=token) - runner_args.handle_sigint = False asyncio.create_task(bot_module.bot(runner_args)) return RedirectResponse(room_url) @@ -311,7 +308,6 @@ def _setup_daily_routes(app: FastAPI): # Start the bot in the background with extracted body data bot_module = _get_bot_module() runner_args = DailyRunnerArguments(room_url=room_url, token=token, body=bot_body) - runner_args.handle_sigint = False asyncio.create_task(bot_module.bot(runner_args)) # Match PCC /start endpoint response format: return {"dailyRoom": room_url, "dailyToken": token} diff --git a/src/pipecat/runner/types.py b/src/pipecat/runner/types.py index 1d4312e99..842765d25 100644 --- a/src/pipecat/runner/types.py +++ b/src/pipecat/runner/types.py @@ -25,7 +25,7 @@ class RunnerArguments: pipeline_idle_timeout_secs: int = field(init=False) def __post_init__(self): - self.handle_sigint = True + self.handle_sigint = False self.handle_sigterm = False self.pipeline_idle_timeout_secs = 300