[PythonSDK] The send_and_wait function hangs and fails to return

Abierto
#2,853 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github, python, typescript
Área
api, backend

Línea de trabajo

Start at the Python SDK's send_and_wait implementation and inspect how it handles the session.idle event and on_event callbacks. Reproduce the reported hang using the supplied logs and check whether the idle event is missed or not sent. Done means send_and_wait returns when the session has finished, including this reported edge case.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

waiting on response

There is a very rare edge case where the send_and_wait function hangs and never returns. About once per two days.

The latest logs explicitly show an on_event callback with the following payload:

  • the assistant.message content is "Work completed, report saved to xxxx",
  • while assistant.reasoning is empty.

Based on these logs, it is highly likely that copilot-cli has already finished its task. However, the send_and_wait function remains stuck and does not return.

I suspect that the CLI either failed to send the session.idle event, or the event was lost for some reason.

"copilot_version": "1.0.96",
"copilot_sdk_version": "v1.0.19"
Lenguaje dominante
Java
Estrellas
10.7k
Forks
1.5k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de github/copilot-sdk

Todos los issues de github/copilot-sdk

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.