anthropics / anthropics/claude-agent-sdk-python

ResultMessage is being sent while background agent is still working and turn is finished

Aberta
#1,138 4 comentários 1 reação 0 responsáveis Ver no GitHub
bug
Linguagem predominante
Python
Estrelas
8.1k
Forks
1.3k
Métricas de merge de PRs
Métricas de PR pendentes

Descrição

I'm using the SDK in streaming mode (calling `client.query()` and `client.receive_response()`), somewhere between `0.2.110` and `0.2.121`, the behavior of the Agent SDK broke for me.

Before, it would only send the `ResultMessage` at the complete end of the turn. However, I now notice behavior where a background agent is still running, but the `ResultMessage` has already been delivered and the `client.query()` already returned, this causes the Agent SDK to miss messages when the background agent finishes.

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.