telnyx examples: temp Call Control App leaks when the process is killed; no --log-level flag

オープン
#650 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Souptik96 がすでに取り組んでいます。

2026年9月27日 から。

  • #673 @Souptik96 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

Start with the examples' main() cleanup flow and the argparse/logging setup in voice_agent_call.py, inbound_call.py, and outbound_call.py; also read plugins/telnyx/examples/README.md and the DEBUG logging condition in stt.py. Done means SIGTERM cleanup is handled, the three examples accept the expected log-level control, and the README documents the SIGKILL limitation.

索引モデルが issue の本文から書いたものです。

説明

Two DX issues found while testing the telnyx examples locally (2026-09-16, main at ba2fbf1d).

1. Temp Call Control App leaks when the process is killed

The examples' --setup-telnyx flow creates a temporary Call Control App, routes the phone number to it, and restores the original routing in a finally cleanup. That cleanup runs on Ctrl-C (KeyboardInterrupt unwinds through finally) but not on SIGTERM, because default SIGTERM handling terminates the process without unwinding. pkill sends SIGTERM by default, so the common developer flow of restarting with pkill leaks resources every time:

  • The temp Call Control App stays in the account.
  • The phone number stays routed to the temp app's webhook, which now points at a dead tunnel, so inbound calls ring and die.

Verified during testing: two leaked apps (vision-agents-example-*) had to be deleted via the API and the number's connection restored manually.

Suggestion: install a SIGTERM handler in the examples' main() so cleanup runs on kill <pid>, and document the behavior in plugins/telnyx/examples/README.md. SIGKILL cannot be caught, so the README warning matters for that case.

2. Telnyx examples hardcode INFO logging and ignore the --log-level flag

voice_agent_call.py, inbound_call.py, and outbound_call.py call logging.basicConfig(level=logging.INFO) and their argparse does not accept --log-level. The Runner-based examples (for example examples/01_simple_agent_example) expose --log-level and --debug.

This matters because the telnyx STT plugin only logs received WebSocket messages at DEBUG (stt.py gates "Telnyx STT message: ..." behind logger.isEnabledFor(logging.DEBUG)). Debugging transcript issues without the flag requires wrapping the module in a runpy script that calls basicConfig(level=DEBUG) before running it.

Suggestion: accept --log-level in the three telnyx examples (or read an env var), matching the Runner examples.

Both are small. Happy to PR either if that is useful.

主要言語
Go
スター
8.2k
フォーク
703
平均マージ
6時間 36分
マージ済み PR(30日)
828

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GetStream/Agents のほかの issue

GetStream/Agents の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。