[PythonSDK] The send_and_wait function hangs and fails to return · Issue #2853 · github/copilot-sdk · GitHub
Skip to content

[PythonSDK] The send_and_wait function hangs and fails to return #2853

Open

Description

@zeerd

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"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions