telnyx examples: temp Call Control App leaks when the process is killed; no --log-level flag
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 68/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- python
- Área
- developer-experience
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Go
- Estrellas
- 8.2k
- Forks
- 703
- Merge medio
- 6 h 36 min
- PR fusionados (30 d)
- 828
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Sin guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de GetStream/Agents
-
Callum default voice ID expires December 31, 2026Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 49/100
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
GetStream/Agents#657 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
Los mantenedores suelen responder en 1 día
Todos los issues de GetStream/Agents
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
siyuan-note/siyuan#21692 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
router-for-me/CLIProxyAPI#8147 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 74/100
rossoctl/context-guru#1413 ·
Los mantenedores suelen responder en 1 día