agentscope-ai / agentscope-ai/agentscope-java

[Bug]:HarnessAgent subagent task_output may be interrupted by default tool execution timeout

オープン
#1,451 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
area/harness bug
主要言語
Java
スター
5.6k
フォーク
1.3k
平均マージ
4日 12時間
マージ済み PR(30日)
77

説明

**Describe the bug**

When `HarnessAgent` enables subagent orchestration, the `task_output` tool supports blocking up to 10 minutes via its `timeout` parameter. However, the default tool execution configuration (`ExecutionConfig.TOOL_DEFAULTS`) times out after 5 minutes.

As a result, a long-running `task_output(block=true, timeout=600000)` call may be interrupted by the framework-level tool timeout before the task output wait reaches its own maximum timeout.

**To Reproduce**

1. Create a `HarnessAgent` with subagents enabled and no custom `toolExecutionConfig`.
2. Spawn a background subagent task that takes longer than 5 minutes but less than 10 minutes.
3. Call `task_output` with `block=true` and `timeout=600000`.
4. Observe that the tool execution may fail after about 5 minutes.

Example error:

```text
Tool execution failed: Tool execution timeout after PT5M

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。