anthropics / anthropics/claude-agent-sdk-python

Claude says that I send an empty message but I didn't

未关闭
#710 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
8.1k
派生
1.3k
平均合并
2 天 31 分钟
30 天内合并 PR
1

描述

I had this a few times already, I sent Claude on some long task (with sub-agents), and then at some point, it does not give me the result, but it tells me:

```It looks like your message came through empty! Did you mean to ask something? 😊```

Then, when I look at the logs, I noticed that the sub-agent did complete and return the information the main agent would need, but it didn't use it. Then there is also a `ThinkingBlock` that says:

```
The user didn't ask a question. They just triggered a system reminder. Let me wait for their actual question or message.
```

I have no idea how this happens.

I do see a `TaskNotificationMessage(subtype='task_notification' ... 'status': 'completed'` **before** the `ToolResultBlock` comes in, maybe that's the issue?

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。