fix: preserve long tool output (#1062)

* fix: persist truncated foreground bash output

* fix: persist oversized tool results

* fix: link background task notifications to saved output

* fix: avoid lossy tool result budgeting

* fix

* fix: include fallback task output previews

* fix

* fix
This commit is contained in:
_Kerman 2026-06-24 14:42:11 +08:00 committed by GitHub
parent 4b837d6bfb
commit ea6a4bfe6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 450 additions and 83 deletions

View file

@ -99,7 +99,7 @@ Collaboration tools handle inter-Agent coordination, user interaction, and Skill
## Background Tasks
Background task tools manage tasks started via `Bash`, `Agent`, or `AskUserQuestion`. When a task reaches a terminal state, its status and trailing output are automatically delivered back to the Agent; use `TaskOutput` to check progress early.
Background task tools manage tasks started via `Bash`, `Agent`, or `AskUserQuestion`. When a task reaches a terminal state, its status and saved output path are automatically delivered back to the Agent; use `TaskOutput` to check progress early.
| Tool | Default Approval | Description |
| --- | --- | --- |

View file

@ -99,7 +99,7 @@ Plan 模式是一种受约束的工作状态:进入后 `Write` 与 `Edit` 只
## 后台任务
后台任务工具用于管理通过 `Bash``Agent``AskUserQuestion` 启动的后台任务。任务进入终止状态时会自动把状态和末尾输出送回 Agent如需提前检查进度使用 `TaskOutput`
后台任务工具用于管理通过 `Bash``Agent``AskUserQuestion` 启动的后台任务。任务进入终止状态时会自动把状态和已保存的输出路径送回 Agent如需提前检查进度使用 `TaskOutput`
| 工具 | 默认审批 | 说明 |
| --- | --- | --- |