From 60e9817f166182c0cf891b1c527c4bd21256b7b2 Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Wed, 22 Oct 2025 16:48:30 -0400 Subject: [PATCH] fix: add support for DAILY_SAMPLE_ROOM_URL when calling /start for DailyTransport --- CHANGELOG.md | 5 +++++ src/pipecat/runner/run.py | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e727c42e..397d47123 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgraded `aws_sdk_bedrock_runtime` to v0.1.1 to resolve potential CPU issues when running `AWSNovaSonicLLMService`. +### Fixed + +- Fixed an issue in the runner where starting a DailyTransport room via + `/start` didn't support using the `DAILY_SAMPLE_ROOM_URL` env var. + ## [0.0.91] - 2025-10-21 ### Added diff --git a/src/pipecat/runner/run.py b/src/pipecat/runner/run.py index 4c1d3135d..b5a805c1f 100644 --- a/src/pipecat/runner/run.py +++ b/src/pipecat/runner/run.py @@ -573,8 +573,14 @@ def _setup_daily_routes(app: FastAPI): bot_module = _get_bot_module() + existing_room_url = os.getenv("DAILY_SAMPLE_ROOM_URL") + result = None - if create_daily_room: + + # Configure room if: + # 1. Explicitly requested via createDailyRoom in payload + # 2. Using pre-configured room from DAILY_SAMPLE_ROOM_URL env var + if create_daily_room or existing_room_url: import aiohttp from pipecat.runner.daily import configure